py4ai core
A Python library defining data structures optimized for machine learning pipelines
What is it ?
py4ai-core is a Python package with modular design that provides powerful abstractions to build data ingestion pipelines and run end to end machine learning pipelines. The library offers lightweight object-oriented interface to MongoDB as well as Pandas based data structures. The aim of the library is to provide extensive support for developing machine learning based applications with a focus on practicing clean code and modular design.
Features
Some cool features that we are proud to mention are:
Logging
- configFromFiles: utility function to configure loggers according to configuration files, giving options to capture warnings and to define which logger to use to capture errors.
- WithLogging: Base class setting up the
loggerproperty defining a logger named according to the class to be used in descendant classes.
Configurations
Offers a unified framework to parse and store yaml configuration files:
- get_confs_in_path: Retrieve all configuration files from system path, with given extension.
- merge_confs : merge given configuration files.
- BaseConfig : Basic configuration class. This class implements utility methods to retrieve configuration sub-levels and values. An instance of this class can be updated merging other instances of the same class.
- Some pre-implemented configuration classes for some common use cases like: FileSystemConfig, LoggingConfig, MongoConfig and many more.
Installation
From pypi server
pip install py4ai-core
From source
git clone https://github.com/NicolaDonelli/py4ai-core
cd py4ai-core
make install
Tests
make tests
Checks
To run predefined checks (unit-tests, linting checks, formatting checks and static typing checks):
make checks
How to contribute ?
We are very much willing to welcome any kind of contribution whether it is bug report, bug fixes, contributions to the existing codebase or improving the documentation.
Where to start ?
Please look at the Github issues tab to start working on open issues
Contributing to py4ai-core
Please make sure the general guidelines for contributing to the code base are respected
- Fork the py4ai-core repository.
- Create/choose an issue to work on in the Github issues page.
- Create a new branch to work on the issue.
- Commit your changes and run the tests to make sure the changes do not break any test.
- Open a Pull Request on Github referencing the issue.
- Once the PR is approved, the maintainers will merge it on the main branch.
Metadata
Release files for py4ai-core 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py4ai-core-1.0.2.tar.gz | 38.9 kB | Without provenance | Details for py4ai-core-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py4ai_core-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for py4ai_core-1.0.2-py3-none-any.whl |
Total release size: 61.2 kB
Release files / py4ai-core-1.0.2.tar.gz
| Download URL | py4ai-core-1.0.2.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9caba9a198bcf0b06436ac2f5dea931373b113d287cf8cec8ee18624ce45f6d2
|
|
BLAKE2b-256 checksum How to use checksums |
036f1ec81ff49e68b51c6120fbd0d6764107297fe0c8cb9700f9749232e7dcfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / py4ai_core-1.0.2-py3-none-any.whl
| Download URL | py4ai_core-1.0.2-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2bb902b7966d61a095a66c2268ae05b43079d9826451d3bf4ee261caa466a16
|
|
BLAKE2b-256 checksum How to use checksums |
687ade8c232c82bd5cd3ce65b86b6b13d2bb51e0c152e8be887e30bccd197ea5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for py4ai-core 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.