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 all available datasets in the catalog
datasets = unifier.list_data_catalog()
print(datasets)
# Get detailed metadata for a specific dataset
details = unifier.get_dataset_details(name='dataset_name')
print(details)
# 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.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unifier-0.1.22.tar.gz | 22.2 kB | Without provenance | Details for unifier-0.1.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unifier-0.1.22-py3-none-any.whl | Python 3 | none | any | Details for unifier-0.1.22-py3-none-any.whl |
Total release size: 43.3 kB
Release files / unifier-0.1.22.tar.gz
| Download URL | unifier-0.1.22.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5637aa96e3c6724d0ad2138572198f85cf6fc9c76f1401f11f1d6f9a54b990f3
|
|
BLAKE2b-256 checksum How to use checksums |
01bab74af892e7e95d699bc83618cad4649adc0158e73ab3bf297200503079cb
|
| 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.22-py3-none-any.whl
| Download URL | unifier-0.1.22-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0195478c22f01f9f9ba5bd54c0fe32880a6810ec63383617e7e02a4ed3cb3a3
|
|
BLAKE2b-256 checksum How to use checksums |
b62f5b68dd5edbbe105ad1ecc567ca87ce6db851c6927c54a77ef753a4b9c2af
|
| 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.22
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.