This is a package for requesting and processing data from Solvis's results API.
Project description
Solvis Results API
This is a package for requesting and processing data from Solvis's results API. The package is designed to handle complex nested data structures, efficiently transforming them into a tabular format (pandas dataframe) suitable for analysis.
Features
- Request data from the following endpoints:
- Devices
- Evaluations
- Questionnaire
- Surveyed Units
- Suspicious Occurrences
- Converts nested data into a flat pandas dataframe.
- Handles various evaluations question types, including:
- NPS (Net Promoter Score)
- Scale
- Multiple Choice
- Text and Short Text
- Multiple Response
- Special Types (Phone, CPF, CNPJ, Email)
- Robust handling of unexpected or malformed data.
- Logging for process tracking and debugging.
Installation
Install the package via pip (or your favorite package manager):
pip install solvis-results-api
Usage
Importing the Module
from solvis_results_api import GetEvaluations, ProcessEvaluations
Example
# Initialize modules
api = GetEvaluations()
processor = ProcessEvaluations()
# Request API
evaluations = api.get_evaluations(
user='',
password='',
survey_id='',
start_datetime='2025-01-01T00:00:00',
end_datetime='2025-01-31T23:59:59',
)
# Process the data
df = processor.process_evaluations(evaluations)
# Print output
print(df)
Dependencies
- Python 3.12+
- Pandas
- Requests
Contact
For questions or feedback, feel free to reach out:
- Author: Paulo Victor
- Email: paulo.barbosa@solvis.com.br
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solvis_results_api-0.1.5.tar.gz.
File metadata
- Download URL: solvis_results_api-0.1.5.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0643a1342f78436c1b4ac1108a61adbcc429524e306912f59dabd932e70ef08f
|
|
| MD5 |
ce3d483c245c9854e80d7c8f053d396b
|
|
| BLAKE2b-256 |
b80ec9b962b637caeb7a960e59c1bcdab2548533fab37044060b3cf4eb6786f8
|
File details
Details for the file solvis_results_api-0.1.5-py3-none-any.whl.
File metadata
- Download URL: solvis_results_api-0.1.5-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1aa0444af3399fda964719bac6047778611787ec3692b8067da85f894ae4ab2
|
|
| MD5 |
0189a80d0f9ad6d2f63df1ec681310c9
|
|
| BLAKE2b-256 |
3dbd105ee8aa6793b43991d152515b50f0138ef232b03474f8c85564dc099639
|