Skip to main content

Package of various helper modules to support various People Analytics projects

Project description

Python for People Analytics

Installation

Download and install the package on your machine:

pip install py4pa

If you need to bypass SSL verification on your machine (if you are behind a proxy for example), you can use the following install command:

pip install py4pa --trusted-host pypi.org --trusted-host files.pythonhosted.org

Import the package into your Python script:

import py4pa
# or
from py4pa import [arm]

Usage

py4pa.ona

  • py4pa.ona.clean_email_data(dir, files='all', include_subject=False, engine='c', encoding='latin', delete_old_file=False)
  • py4pa.ona.generate_node_edge_lists(email_data, demographic_data, demographic_key, output_dir, include_subject=False)
  • py4pa.ona.generate_nx_digraph(node_list, edge_list)
  • py4pa.ona.calc_density(df_nodes, df_edges, target_attribute)
  • py4pa.ona.calc_modularity(df_nodes, df_edges, target_attribute, weighted=False, direction='outbound')

py4pa.arm

  • py4pa.arm.concat_fields(df, fields)

py4pa.vis

  • py4pa.vis.gen_expn_colors()
  • py4pa.vis.gen_gradient_cmap(start, end, steps=50)

py4pa.nlp

py4pa.email_helper

  • py4pa.email_helper.send_plain_text_email(server, sender, recip, subject, body)

py4pa.http

  • py4pa.http.get_random_useragent(browser=None):
  • py4pa.http.Visier

py4pa.misc

  • py4pa.misc.csv_to_utf8(file)
  • py4pa.misc.upgradeAllPackages()
  • py4pa.misc.installPackage(package)
  • py4pa.misc.getDateTimeStamp(time=True)
  • py4pa.misc.continuous_logging(msg)

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

py4pa-0.1.2.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

py4pa-0.1.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file py4pa-0.1.2.tar.gz.

File metadata

  • Download URL: py4pa-0.1.2.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for py4pa-0.1.2.tar.gz
Algorithm Hash digest
SHA256 048ecb19314cc0077927bee71d6ed268385d5b109b424162b085241b11c5748d
MD5 8b88b356ebbb75ca4488a92bd1c9c6b7
BLAKE2b-256 d2ef24811a7f7ff0eae0c134a8fe27302b4dbf10495ff6adc6fc5e341c9f28f4

See more details on using hashes here.

File details

Details for the file py4pa-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: py4pa-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for py4pa-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a4f22f49cd3195c596a7cc812719baa9f534c8a3629bc17dcca7c9e3b8caa32
MD5 2e87ff8713a6f8ad990505784b3aba0d
BLAKE2b-256 928f0dbd8640c3a31576221b62241ba545c985b847c48db8d5f1e6f4d2ebd783

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