A Python package to process text with the Receptiviti API.
An R package is also available at Receptiviti/receptiviti-r.
Installation
If needed, download Python from python.org, then install the package with pip:
Release (version 0.2.2)
pip install receptiviti
Development
pip install git+https://github.com/receptiviti/receptiviti-python.git
And load the package in a Python console:
import receptiviti
Examples
# score a single text
single = receptiviti.request("a text to score")
# score multiple texts, and write results to a file
multi = receptiviti.request(["first text to score", "second text"], "filename.csv")
# score texts in separate files
## defaults to look for .txt files
file_results = receptiviti.request(directory = "./path/to/txt_folder")
## could be .csv
file_results = receptiviti.request(
directory = "./path/to/csv_folder",
text_column = "text", file_type = "csv"
)
# score texts in a single file
results = receptiviti.request("./path/to/file.csv", text_column = "text")
API Access
To access the API, you will need to load your key and secret, as found on your dashboard.
You can enter these as arguments in each function call, but by default they will be looked for in these environment variables:
RECEPTIVITI_KEY="32lettersandnumbers"
RECEPTIVITI_SECRET="56LettersAndNumbers"
You can store these in a .env file (in the current directory or ~/Documents) permanently, or set them temporarily:
import os
os.environ["RECEPTIVITI_KEY"]="32lettersandnumbers"
os.environ["RECEPTIVITI_SECRET"]="56LettersAndNumbers"
Metadata
Release files for receptiviti 0.2.2
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 | |
|---|---|---|---|---|
| receptiviti-0.2.2.tar.gz | 22.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| receptiviti-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.4 kB
Release files / receptiviti-0.2.2.tar.gz
| Download URL | receptiviti-0.2.2.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0d3b698dde316aa37852e5e1960f8a2acc5ffdde2ade88ed0f6ff38d3eae5f6
|
|
BLAKE2b-256 checksum How to use checksums |
dc000211a764db639dbed822698c5c413fee6cbe796795a48f4234ed2e1fa4c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.2 cpython/3.14.2 HTTPX/0.28.1
|
Release files / receptiviti-0.2.2-py3-none-any.whl
| Download URL | receptiviti-0.2.2-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6bad539ad6bdeb57e5723935a2d56b6a821b6e4e125104ef76b5c263ce4a77b
|
|
BLAKE2b-256 checksum How to use checksums |
8a7541652f2ea8452b7a040787a539e12c60f6d7b0be810221b52d6a5d455ae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.2 cpython/3.14.2 HTTPX/0.28.1
|
Security for receptiviti 0.2.2
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.