Skip to main content

analytics_toolbox

A toolbox for Analytics and Research.

Install

pip install analytics_toolbox

Documentation

Help With Postges Connection Setup

Step 1. Formatting Your Database Config Files

For example, you have the following config.ini file.

[dev_db]
hostname = dev.yourhost.com
port = 5432
database = dbname 
user = htpeter

[prod_db]
hostname = prod.yourhost.com
port = 5432
database = dbname 
user = htpeter

Step 2. Ensuring you have .pgpass setup

You don't pass passwords to analytics_toolbox in its current form. Instead it leverages pgpass. Simply paste a record for each database in a text file ~/.pgpass with the following information.

hostname:port:database:username:password

When psycopg2 or even psql attempt to connect to a server, it will look in this file and if it finds matching server information, it will use that password.

Ensure you limit the permissions on this file using chmod 600 ~/.pgpass

Usage Examples

import analytics_toolbox as atb

Download files

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

Source Distribution

analytics_toolbox-0.1.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

analytics_toolbox-0.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file analytics_toolbox-0.1.0.tar.gz.

File metadata

  • Download URL: analytics_toolbox-0.1.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.10

File hashes

Hashes for analytics_toolbox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c79ab6c84d6531badfeac8c238f606ab6d48e6b030512ac653f0fa7e56be9278
MD5 2353ad6ad5830930e90c23bea7455c39
BLAKE2b-256 e5d815978c99a6ac631ce50d0b57951460fb4c19c75930bc43bc14ac5d9a5c11

See more details on using hashes here.

File details

Details for the file analytics_toolbox-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: analytics_toolbox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.10

File hashes

Hashes for analytics_toolbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5353ac71d4d19d17abe76150c57734807f2001952b181efee2b539af34fdfe53
MD5 99aa7af1dd8b3f590396f06b387c5431
BLAKE2b-256 cc2777cc8685effd609ecaf34ed958b20bc3574f24e230c308e938baa34e790a

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 Sentry Error logging StatusPage Status page