sour-cereal
About
An abstraction of connections to real data sources for extraction applications usage.
It implements simple methods for extraction preparation, monitoring, execution and cleaning into a class, meant to be inherited.
The goal of this project consists in creating a standardized API for communicating with data sources in applications written in Python.
Installing
You can simply install it using pip as follows:
$ pip install sour-cereal
Usage
from sour_cereal import SourceConnection
class FooDataSource(SourceConnection):
def get_status_of_extraction(self: 'FooDataSource', *args, **kwargs):
return datetime.now()
def check_availability_of_extraction(self: 'FooDataSource', status: datetime):
return status.hour >= 7 # data is ready only after 7pm
def execute_extraction(self: 'FooDataSource', *args, **kwargs):
# Extract some data
return ['file1', 'file2']
For more examples, please check the files inside the sour_cereal/examples folder.
Metadata
Release files for sour-cereal 1.0.9
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 |
|---|---|---|---|---|
| sour-cereal-1.0.9.tar.gz | 5.2 kB | Without provenance | Details for sour-cereal-1.0.9.tar.gz |
Release files / sour-cereal-1.0.9.tar.gz
| Download URL | sour-cereal-1.0.9.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8dcaa28f34701f1efed12b27218c516b2d0eefd7644cd726b820a400d44c349
|
|
BLAKE2b-256 checksum How to use checksums |
2aaf8f172530fe60f6e3f82c9ec69ccbbfe3197b0c4ea9a62fb759fdb9a0df46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
|
Security for sour-cereal 1.0.9
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.