cobaltgit / CobaltAPI

A general purpose, in-development API with many endpoints

Home Page:https://api.cobaltonline.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cobalt API

An unfinished, minimalistic, general purpose API with versatility in mind.

Public instance: https://api.cobaltonline.net/

Endpoints

See / for a list of endpoints.

Install your own instance

You'll need Git, Python 3.8+, and Poetry installed for this.

    1. Clone this Git repository
git clone https://github.com/cobaltgit/CobaltAPI.git
    1. Install dependencies* with Poetry
poetry install

* to install development dependencies, do poetry install --dev

    1. Modify the settings.py file

To run your instance on a different host, port, turn off debug mode, etc... just manipulate the settings.py file - the start script will handle the rest.

private_settings.py contains sensitive information (e.g API tokens) that should not be committed to the Git repository. You can copy its template and adjust it to your needs.

The number of workers will scale to the number of CPU threads available on your system, as per Gunicorn's recommendations (nproc * 2 + 1) - for example, a virtual machine with 2 CPU threads will run 5 workers.

    1. Serve it up!
python3 run.py

About

A general purpose, in-development API with many endpoints

https://api.cobaltonline.net

License:Mozilla Public License 2.0


Languages

Language:Python 100.0%