Rogue Scholar API
The backend server for the Rogue Scholar science blog archive. The Rogue Scholar API is a Python Quart application that provides a RESTful API for the Rogue Scholar service.
Installation
Requires Python 3.8 or higher (Python 3.11 recommended). Uses Poetry for dependency management. Depends on credentials for the Rogue Scholar Postgres database (hosted by Supabase) and Rogue Scholar search index (hosted by Typesense):
# required environment variables
SUPABASE_URL
SUPABASE_ANON_KEY
TYPESENSE_HOST
TYPESENSE_API_KEY
The API uses Poetry for dependency management. To install Poetry, see the Poetry documentation. Then install the dependencies and run the server:
poetry install
poetry run quart --app rogue_scholar_api run
The API will then be available at http://localhost:5000.
Development
We use pytest for testing:
poetry run pytest
Follow along via Github Issues. Please open an issue if you encounter a bug or have a feature request.
Note on Patches/Pull Requests
- Fork the project
- Write tests for your new feature or a test that reproduces a bug
- Implement your feature or make a bug fix
- Do not mess with Rakefile, version or history
- Commit, push and make a pull request. Bonus points for topical branches.
Documentation
Documentation (work in progress) for using Rogue Scholar is available at the Rogue Scholar Documentation website.
The Rogue Scholar API documentation is served by default at /openapi.json according to the OpenAPI standard, or at /docs for a SwaggerUI interface, or at /redocs for a redoc interface.
Meta
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
License: MIT
Metadata
Release files for rogue-scholar-api 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rogue_scholar_api-0.7.1.tar.gz | 18.4 kB | Without provenance | Details for rogue_scholar_api-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rogue_scholar_api-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for rogue_scholar_api-0.7.1-py3-none-any.whl |
Total release size: 38.2 kB
Release files / rogue_scholar_api-0.7.1.tar.gz
| Download URL | rogue_scholar_api-0.7.1.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d665f21d2351328792ce0d60836c82952c7a896dfd7a26d53ccee44ec0164363
|
|
BLAKE2b-256 checksum How to use checksums |
33b97321b8e51b01240241af9ff1ef2abfd1bf3a904c63a5ff8e772c73c6d7f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.16 Darwin/23.1.0
|
Release files / rogue_scholar_api-0.7.1-py3-none-any.whl
| Download URL | rogue_scholar_api-0.7.1-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d58ccad232c6d27ffd75175fa5e9ecf33502f3f953366c8c55b5288eaf283d42
|
|
BLAKE2b-256 checksum How to use checksums |
bceaca19bcf670b2498b28c8af49fd3606ea0df6064cb286eddad5bdf4da9e43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.16 Darwin/23.1.0
|
Security for rogue-scholar-api 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.