Skip to main content

A utility package to handle data analytics

Project description

Markets Analytics Package

A utility package to that helps with data analytics by reducing boiler plate code and replacing them with helper function for database interactivity, ETL pipelines, Google Sheets, and dates.

Installation

pip install markets_analytics

To install specific version of the package then run the following command:

pip install markets_analytics==X.Y.Z 

Imports

The following examples showcase how to import packages for the areas you're interested in.

Although you can import original classes like RedshiftConnector, aliases have already been provided to reduce this step further.

Database connectivity:

from markets_analytics import redshift, datalake, exasol
from markets_analytics import Redshift, Datalake, Exasol # Actual class names

ETL pipelines:

from markets_analytics import etl
from markets_analytics import ETL # Actual class names

Google Sheets:

from markets_analytics import GSheetHelper
gsheet = GSheetHelper('<Name of the GSheet>')

Date utilities:

from markets_analytics import dateutil
from markets_analytics import DateUtil  # Actual class names

Google Chat:

from markets_analytics import GoogleChat
gchat = GoogleChat('<Webhook URL of the Google Chat Space>')

Email

from markets_analytics import Email
email = Email('<Your Email ID>', '<Your Email App Password>') # App Password is setup via Google 2FA Security tab

Releasing New Version

To release new versions after making changes, we need to update the pyproject.toml file and increment the version's minor or major counter by 1. You would then be able to run the following in your terminal (make sure dist only contains the new version files after build command has successfully completed):

python3 -m pip install --upgrade build twine
python3 -m build
python3 -m twine upload --repository testpypi dist/* # Repository tag is optional

Make sure to set your twine details before uploading the package distributions:

set TWINE_USERNAME=__token__
set TWINE_PASSWORD=<pypi-token>

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

markets_analytics-1.0.1.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

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

markets_analytics-1.0.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file markets_analytics-1.0.1.tar.gz.

File metadata

  • Download URL: markets_analytics-1.0.1.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for markets_analytics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5de22b858175c54e802be4908339f69c72b44973231a86b2a5434f7bda0ccaf3
MD5 5ac12fa6f672b6a1d50e38a452220863
BLAKE2b-256 f0bc5cb9bb78a8ecc5fe36e7c3cc2dd06c6e75146ca4401a579485466d6f39bd

See more details on using hashes here.

File details

Details for the file markets_analytics-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for markets_analytics-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4713deece90c5cad135af289088eb83d20e6e216a77d9e8f5a54b7719bd6c01b
MD5 6f905a14b1f0f476176050dd51ab3e88
BLAKE2b-256 17c8aaeb9358929764cc691c79122d58fe161544c697ccbe8fe80aa9b159a07d

See more details on using hashes here.

Supported by

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