Skip to main content

Utils for the YouTube Predictive Analytics system

Project description

ytpa-utils

Description

This package contains utility functions used by the YouTube video predictive analytics (YTPA) system. They support extended functionality for:

  • pandas: df_utils.py
  • gensim (text processing): gensim_utils.py
  • data I/O: io_utils.py
  • numpy: np_utils.py
  • SQL: sql_utils.py
  • timing: time_utils.py
  • object type validation: val_utils.py
  • other: misc_utils.py

Installation

Install from PyPI with pip install ytpa-utils.

Make commands

Several make commands are implemented in Makefile.

Testing

Tests are implemented in the test/ directory, one file per module. Run them locally with make test.

Deploying a new package version

A new version of the package can be deployed by incrementing the version number in pyproject.toml and running make deploy. A better practice is to git push and allow the Github Actions pipeline to take care of running tests and deploying the new version only when the entire pipeline succeeds. Make sure to use the right version of the package in your other environments (update it in a requirements file and update the environment).

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

ytpa_utils-0.1.16.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

ytpa_utils-0.1.16-py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page