Skip to main content

Unifier

Unifier is a Python package that provides a simple interface to interact with the Unifier API, allowing for Point-In-Time and streaming data access.

Features

  • Query the Unifier API for data.
  • Retrieve data in JSON format.
  • Convert API responses into pandas DataFrames for easy data manipulation and analysis.
  • Efficiently replicate large datasets to local storage using rclone integration.
  • List and retrieve detailed metadata for datasets in the catalog.
  • Check which datasets you are entitled to, now or as of any past date or range.

Installation

You can install the package via pip:

pip install unifier

To use the Data Replication feature, it is recommended to install rclone for better performance. If rclone is not available, the package will automatically fall back to a native Python implementation for downloads.

Usage

Here's a basic example of how to use the unifier package:

from unifier import unifier

# Set your user and token
unifier.user = 'your_username'
unifier.token = 'your_api_token'

# Query the API
response = unifier.query(name='your_dataset_name')

# Convert the response to a DataFrame
df = unifier.get_dataframe(name='your_dataset_name')

print(df.head())

# Get list asof_date available for a dataset
dates_df = unifier.get_asof_dates(name='dataset_name')
print(dates_df.head())

# List the datasets in the catalog you are entitled to
datasets = unifier.list_data_catalog()
print(datasets)

# Include publicly available datasets alongside your entitled ones
all_datasets = unifier.list_data_catalog(show_all_datasets=True)

# Optionally limit the public datasets to a single product
product_datasets = unifier.list_data_catalog(
    show_all_datasets=True,
    product_type='product_name'
)

# Get detailed metadata for a specific dataset
details = unifier.get_dataset_details(name='dataset_name')
print(details)

# Look up a dataset you have no entitlement for, if it is publicly displayed
public_details = unifier.get_dataset_details(
    name='dataset_name',
    show_all_datasets=True
)

# List the datasets you are entitled to right now
entitled = unifier.list_entitled_datasets()
print(entitled)

# Entitlements as of a past date, or at any point across a range
entitled_then = unifier.list_entitled_datasets(date='2024-03-15')
entitled_range = unifier.list_entitled_datasets(
    from_date='2024-01-01',
    to_date='2024-06-30'
)

# Replicate a large dataset to a local folder
# Note: uses rclone if installed, otherwise uses native python download
unifier.replicate(
    name="large_dataset_name",
    target_location="./data/downloads",
    back_to="2023-01-01",    # Optional: fetch history back to this date
    up_to="2024-12-16",    # Optional: fetch history up to this date
    bandwidth_limit=20       # Optional: limit download speed to 20MB/s
)

Configuration

Before using the package, ensure you set your user and token attributes in the unifier class to authenticate with the API.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Contributing

Contributions are welcome! Please read the contributing guidelines for more information.

Support

For support, please contact support@exponential-tech.ai.

Acknowledgments

  • Thanks to the team at Exponential Tech for their support and contributions.

Metadata

Release files for unifier 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unifier 0.1.23
File Size Uploaded Provenance Actions
unifier-0.1.23.tar.gz 22.7 kB Without provenance Details for unifier-0.1.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unifier 0.1.23
File Interpreter ABI Platform Actions
unifier-0.1.23-py3-none-any.whl Python 3 none any Details for unifier-0.1.23-py3-none-any.whl

Total release size: 44.4 kB

Release files / unifier-0.1.23.tar.gz

Download URL unifier-0.1.23.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3633061e8369b13cc3645c24435a956db951fe518756d2040d26bda7732466bf
BLAKE2b-256 checksum
How to use checksums
9eb0a3aa3f90fde036c4d9a01560fbad7d11e41237731180eda251c7075f6a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / unifier-0.1.23-py3-none-any.whl

Download URL unifier-0.1.23-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
495616e363b1ea06c9f6cff60b3695973c948f54cba04ad0c066160669b7bd8e
BLAKE2b-256 checksum
How to use checksums
0d5f6a4505b81f7af7550c1763c297fe8de7219f48e639d3f98dc14570e0f717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for unifier 0.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page