Skip to main content

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:

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

solvis_results_api-0.1.5.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

solvis_results_api-0.1.5-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

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

Hashes for solvis_results_api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0643a1342f78436c1b4ac1108a61adbcc429524e306912f59dabd932e70ef08f
MD5 ce3d483c245c9854e80d7c8f053d396b
BLAKE2b-256 b80ec9b962b637caeb7a960e59c1bcdab2548533fab37044060b3cf4eb6786f8

See more details on using hashes here.

File details

Details for the file solvis_results_api-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for solvis_results_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a1aa0444af3399fda964719bac6047778611787ec3692b8067da85f894ae4ab2
MD5 0189a80d0f9ad6d2f63df1ec681310c9
BLAKE2b-256 3dbd105ee8aa6793b43991d152515b50f0138ef232b03474f8c85564dc099639

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