Skip to main content

coopio

Library for creating data services

CsvDataService Example:

class Dummy:
    def __init__(self, a, b, c):
        self.a = a
        self.b = b
        self.c = c

    def __str__(self):
        return f"a: {self.a}, b: {self.b}, c: {self.c}"

    def __repr__(self):
        return self.__str__()

class CsvDataService_Dummy(ICsvDataService):

    def __init__(self, data_file_path: str):
        ICsvDataService.__init__(self, data_file_path)

    def translate_from_data_rows(self, df: pd.DataFrame) -> List[T]:
        ret_dummies = []

        for i, row in df.iterrows():
            new_dummy = Dummy(
                a=row['a'],
                b=row['b'],
                c=row['c']
            )
            ret_dummies.append(new_dummy)

        return ret_dummies

After Establishing the data service, data can be stored or retrieved as follows:

    dummies = []
    for ii in range(0, 5):
        dummies.append(Dummy(ii, 2, 3))

    data_service.add_or_update(obj_identifier='a', objs=dummies)

    stored = data_service.retrieve_data(obj_identifier='a')

Metadata

Release files for coopio 1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coopio 1.11
File Size Uploaded Provenance Actions
coopio-1.11.tar.gz 29.8 kB Without provenance Details for coopio-1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coopio 1.11
File Interpreter ABI Platform Actions
coopio-1.11-py3-none-any.whl Python 3 none any Details for coopio-1.11-py3-none-any.whl

Total release size: 66.3 kB

Release files / coopio-1.11.tar.gz

Download URL coopio-1.11.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
be0e0552697a49e91365c88754d15d973efd2f86a3b5d060645aa401806a3a96
BLAKE2b-256 checksum
How to use checksums
9c46ea52618e15578c7d565ef28f37136214fb490c545b0e456e4ea88a49f332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / coopio-1.11-py3-none-any.whl

Download URL coopio-1.11-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eebbd4c18671d63f3ab758b440c12fd5f027c6b5ff5bb362db75bfe33e49987
BLAKE2b-256 checksum
How to use checksums
59ddcf57859706eb3d96919ab6ea1f954bbbcea2604b275c81a8e0f0ddb19ea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for coopio 1.11

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page