Skip to main content

Build PyPI version Coverage Maintainability Rating docs GitHub

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rogue_scholar_api-0.6.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rogue_scholar_api-0.6.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file rogue_scholar_api-0.6.2.tar.gz.

File metadata

  • Download URL: rogue_scholar_api-0.6.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.16 Darwin/23.1.0

File hashes

Hashes for rogue_scholar_api-0.6.2.tar.gz
Algorithm Hash digest
SHA256 413413b1a512f41edf81d93467c5d6cef109db819d5f7dba6157e45457328808
MD5 82bf2318963576c7a3b8fd17a979e5bd
BLAKE2b-256 fdbb0ca270c04cc71d03a5d69cf433fdb0a5f0c44d096bebce23ab7a33c8bf01

See more details on using hashes here.

File details

Details for the file rogue_scholar_api-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: rogue_scholar_api-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.16 Darwin/23.1.0

File hashes

Hashes for rogue_scholar_api-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f5f2a8cd2d580fb969daa89b536173e06692a9032c5664e5f3ea8b4194d5392
MD5 c9f1ee60242dd05985f94aff3d04882c
BLAKE2b-256 b2deb99f92bee65a1dbe7a1efa1c025e2558d7ac5b476c30e0ccd02f6a3bf18e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page