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>')
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markets_analytics-1.0.0.tar.gz.
File metadata
- Download URL: markets_analytics-1.0.0.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeafdd067b2dbbbb1855b70e8754d159b4a499f9436faa708a79d994b3d69c16
|
|
| MD5 |
417ebcf99735d01ab1594ee2f6965cc3
|
|
| BLAKE2b-256 |
2a7af87ad2ab1b24801087305ee37fe51691bec0cb64e84098cc00e50dc70578
|
File details
Details for the file markets_analytics-1.0.0-py3-none-any.whl.
File metadata
- Download URL: markets_analytics-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9aa012cb43e1a75819b8e9692fd6bb10ec556cddd2b3aa74e4122c9972c0fec
|
|
| MD5 |
b8f59c7496264c3ce0145b268a4eeb51
|
|
| BLAKE2b-256 |
1d3db55813c17bdc6753e138af33fb5a01062fdc46c5502d2f5f914473c71eed
|