Skip to main content

yet another core library

Project description

yacore

yacore


Github actions status for master branch Codecov coverage for master branch Pypi version Pypi downloads count

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 and giveme. 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


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.2.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

yacore-0.2.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file yacore-0.2.0.tar.gz.

File metadata

  • Download URL: yacore-0.2.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for yacore-0.2.0.tar.gz
Algorithm Hash digest
SHA256 12ebd9b4ac4be12c23fd92e3bdeb6a3a823a07fdb9d44813c7a62b7b5e3c4325
MD5 956a26ebdfefc2d2a947b9fe98e56b93
BLAKE2b-256 b044df68c987de1ce3a5568379ce7579eb85feb45abe19f161cfecc26a0d1a71

See more details on using hashes here.

File details

Details for the file yacore-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: yacore-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for yacore-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d013016533a8aac7213e6fc33660fa1afd6943a2c140b3a0684a353e9ebab575
MD5 18bcc7aa688e8921e5b5ce5c4ae72820
BLAKE2b-256 9b3f23eed689ce4938cdf2716e8bd1da87b98cbe6f0d5d0dc98315eaefadbf0e

See more details on using hashes here.

Supported by

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