Getting Started
To get started with instarest for your application, visit the docs at https://instarest.erob.io/
To contribute to instarest, see the contributing section below.
Contributing
Getting Started Locally
-
Launch postgres and pgadmin via docker-compose
docker-compose up --build. -
Keeping your containers running, open a new terminal with the root of this repo as the working directory. Install
poetry:pip install poetry(or usepipxon link here if you prefer isolated envs, or consider usingconda). -
Create and enter the virtual environment:
poetry shell -
Install the dependencies
poetry install -
Start the app:
uvicorn examples.example_app:auto_app --reload. -
Open
localhost:8000/v1/docsand start interacting with swagger! -
You can shut down and your db / minio data will persist via docker volumes.
pgAdmin
pgAdminconsole is available atlocalhost:5050if you launch viadocker-compose. Login with email:user@test.comand password:admin. Make sure that you login to the server with hostnamedbinpgAdmin(under the "connection" tab in server properties). This is because thepgAdmincontainer is launched in the same docker network as the postgres container, so it uses the service name, whereas launching this app from command line uses port forwarding tolocalhost. The user, password, and db name will all bepostgres, port5432.
Hooks and Tests
-
Set up the precommit hook with
pre-commit install. -
Run tests and get coverage with
pytest --cov, and get html reports for vs code live server (or any server) withpytest --cov --cov-report=html:coverage_re -
Open a pull request against the repo! Please write tests, your coverage will automatically be added as a comment to any PR via GH actions.
Viewing Docs Locally
- Install docs dependencies with
pip install -r requirements-docs.txt. - Install
mkdocswithpip install mkdocs-material. - Move into the
docs/endirectory viacd docs/en. - Run
mkdocs serveto start a local server.
Metadata
Release files for instarest 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| instarest-0.0.13.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| instarest-0.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.2 kB
Release files / instarest-0.0.13.tar.gz
| Download URL | instarest-0.0.13.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ca43441f058c3f0a39cf4b80dc417492f70faa88da73ac5f0d25dfb3d52830a
|
|
BLAKE2b-256 checksum How to use checksums |
6d1401d5d4c31aa8b35daa6ad6df7806217a62423892fde1d015925f36f85a10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.2 Linux/6.2.0-1018-azure
|
Release files / instarest-0.0.13-py3-none-any.whl
| Download URL | instarest-0.0.13-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83aa443a4e8d4d80d8e984484fc6ec4f34932d748e3a84f0183af3f4de90d0e8
|
|
BLAKE2b-256 checksum How to use checksums |
afbf47b19ad9c595aa24f34163f9a68d30ed5f7c39ea09446c0626ba01ac6d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.2 Linux/6.2.0-1018-azure
|