yet another core library
Project description
yacore
Yet Another CORE library
Reason
- Reduce daily routine to start new service.
- Reduce errors on copy/paste things from previous projects.
Features
- Build on top of
facet
,cock
andgiveme
. This means services, configuration and dependency injection. - Flexible installation (install only what you need for current service, e.g.
pip install yacore[db-postgresql,net-http]
) - Couple backends for databases, logging, networking and whatever in strict service-like style.
Current implementation matrix
database | logging | network | executors |
---|---|---|---|
postgres | stdlib | httpx + fastapi + hypercorn | thread pool executor |
loguru |
Requirements
- python 3.9+
Usage
You can start new project from scratch with cookiecutter template via:
cookiecutter gh:pohmelie/cookiecutter-yacore
Read more at cookiecutter-yacore.
Documentation
TBD
License
yacore
is offered under MIT license.
Development
Installation
pip install -e ./[dev]
Run tests
Since coverage issue/feature, plugins coverage is broken by default. Workaround:
COV_CORE_SOURCE=yacore COV_CORE_CONFIG=.coveragerc COV_CORE_DATAFILE=.coverage.eager pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yacore-0.1.1.tar.gz
(15.8 kB
view details)
Built Distribution
yacore-0.1.1-py3-none-any.whl
(12.9 kB
view details)
File details
Details for the file yacore-0.1.1.tar.gz
.
File metadata
- Download URL: yacore-0.1.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6835d57fdaaa7c64242fc71285d9b1fcde7292befbb402a23cc693705e1f97 |
|
MD5 | 5fd12d30edf2cc94fead2ac13282b7c3 |
|
BLAKE2b-256 | d3aa98187422cb0008a271f71d8634acff8aef26d3e72f5907bc7deb62768daf |
File details
Details for the file yacore-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: yacore-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b457478eff57d451f21737d25bb56da35ecd177e739850a7bedee100418d8c3 |
|
MD5 | 5200b514935deb790262693db79ed2e9 |
|
BLAKE2b-256 | c34db306603b679f4c0d1141b987ecb453a5ffd99522a427a1aa5901efd795e6 |