Skip to main content

data-ops

Coverage PyPI

data operations related code

motivation

data-ops is a library with tested and used code aligning on some standards regarding code structure and quality and to avoid reinventing the wheel. It builds on top of dataops-abs.

installation

    `pip install tgedr-dataops`

package namespaces and its contents

commons

  • S3Connector: base class to be extended, providing a connection session with aws s3 resources
  • utils_fs: utility module with file system related functions (example)

quality

  • PandasValidation : GreatExpectationsValidation implementation to validate pandas dataframes with Great Expectations library (example)

sink

  • LocalFsFileSink: Sink implementation class used to save/persist an object/file to a local fs location (example)
  • S3FileSink: Sink implementation class used to save/persist a local object/file to an s3 bucket (example)

source

  • AbstractS3FileSource: abstract Source class used to retrieve objects/files from s3 bucket to local fs location circumventing some formats download limitation
  • LocalFsFileSource: Source implementation class used to retrieve local objects/files to another local fs location (example)
  • PdDfS3Source: Source implementation class used to read a pandas dataframe from s3, whether a csv or an excel (xslx) file (example csv, example excel)
  • S3FileCopy: Source implementation class used to copy objects/files from an s3 bucket to another s3 bucket (example)
  • S3FileExtendedSource: Source implementation class used to retrieve objects/files from s3 bucket to local fs location with the extra method get_metadata providing sile metadata ("LastModified", "ContentLength", "ETag", "VersionId", "ContentType")(example)
  • S3FileSource: Source implementation class used to retrieve objects/files from s3 bucket to local fs location (example)

store

  • FsSinglePartitionParquetStore : abstract Store implementation defining persistence on parquet files with an optional single partition, regardless of the location it should persist
  • LocalFsSinglePartitionParquetStore : FsSinglePartitionParquetStore implementation using local file system (example)
  • S3FsSinglePartitionParquetStore : FsSinglePartitionParquetStore implementation using aws s3 file system (example)
  • ParquetStore : Store implementation class for interacting with Parquet files using a filesystem interface (example)

known issues/further development

development

  • main requirements:

    • uv
    • bash
  • Clone the repository like this:

    git clone git@github.com:tgedr/dataops
    
  • cd into the folder: cd dataops

  • install requirements: ./helper.sh reqs

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgedr_dataops-1.1.0.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgedr_dataops-1.1.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file tgedr_dataops-1.1.0.tar.gz.

File metadata

  • Download URL: tgedr_dataops-1.1.0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tgedr_dataops-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0a9af1b879a6c9cad012f516a7712a3854c9380e7749dfb3d5b12a28005f43c5
MD5 d8eda2a2fd931ff6b14dbc1fcca0892b
BLAKE2b-256 59a8b5591b7d6c8350937acf3309e755eb6216f1d63b76546903cc722602bff3

See more details on using hashes here.

File details

Details for the file tgedr_dataops-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tgedr_dataops-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tgedr_dataops-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90d36b378a7883209fb8c729b024b72bf35551eb9043f1e62de393ff00da9d22
MD5 5bb61abe4729d24e22ce1d1fa4238ab2
BLAKE2b-256 56938bdc726dd7cbd0351a1eb081c54f3dcc938d3c4383be12f90bf4ed17bf3c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.4

2 files

1.1.3

2 files

1.1.1

2 files

This release

1.1.0 This release

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

0.0.37

2 files

0.0.36

2 files

0.0.34

2 files

0.0.33

2 files

0.0.32

2 files

0.0.31

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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