Common developer utilities for Python projects.
Project description
SigmaEpsilon.Core - Common developer utilities for Python projects
The package contains some usefull stuff for general Python development activites that turned out to be highly reusable during developing projects in the SigmaEpsilon namespace.
Some of the most notable contents:
-
Metaprogramming
- A collection of meta and abstract base classes.
- A
classproperty
decorator. - A solution to enforce abstract class properties on a class.
- Reusable facilities for project configuration, testing, exceptions, etc.
-
Wrapping
- An extendible
Wrapper
class and a few factory functions to help you safely wrap objects.
- An extendible
Documentation
The documentation is built with Sphinx using the PyData Sphinx Theme and hosted on ReadTheDocs.
Installation
Before attempting to install the package, it is suggested to upgrade pip:
python -m pip install --upgrade pip
sigmaepsilon.core
can be installed (either in a virtual enviroment or globally) from PyPI using pip
on Python >= 3.7:
>>> pip install sigmaepsilon.core
or chechkout with the following command using GitHub CLI
gh repo clone sigma-epsilon/sigmaepsilon.core
and install from source by typing
>>> pip install .
If you want to run the tests, you can install the package along with the necessary optional dependencies like this
>>> pip install ".[test]"
Development mode
For development purposes, it is suggested to install the package in editable mode, with the optional dependencies for both testing, development and documentation
>>> pip install -e ".[test, dev, docs]"
Testing and coverage
To run the tests, run the following command in the root of the project:
python -m pytest --cov-report html --cov-config=.coveragerc --cov sigmaepsilon.core
License
This package is licensed under the MIT license. See the attached LICENSE file for the details.
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
Built Distribution
File details
Details for the file sigmaepsilon_core-1.2.1.tar.gz
.
File metadata
- Download URL: sigmaepsilon_core-1.2.1.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/5.15.0-1053-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06d492b03715b4ecb8e17245b61199cdd8f0cbc3b43e25e9c70540f782b8524e |
|
MD5 | 86f52d77e5b1bdac56f808e9b1195164 |
|
BLAKE2b-256 | 8274f36757c1ce28df905008526621d34f633fb688b34b758ab8bf70197be571 |
File details
Details for the file sigmaepsilon_core-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: sigmaepsilon_core-1.2.1-py3-none-any.whl
- Upload date:
- Size: 34.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/5.15.0-1053-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7007b488c3956551dfe35885ec03f033c2a264dd9a4f62d0319514c36018591 |
|
MD5 | 8cd2647fb6069dae482348ea5a3f8af0 |
|
BLAKE2b-256 | e3ad6b888ce129fd7ed130277479adc50473c98ecf424518ef031794b69dd813 |