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.6a0.tar.gz (23.2 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.6a0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file solvis_results_api-0.1.6a0.tar.gz.

File metadata

File hashes

Hashes for solvis_results_api-0.1.6a0.tar.gz
Algorithm Hash digest
SHA256 02d174893dc35a38fe40a340ba7539969c6e42d5f40dd55fa100eee4bf09518f
MD5 952d2d8a1ebc2da6ac0543d94ceaa0f1
BLAKE2b-256 828c2354728ac93f4ed3b88f9525eca4ef4688e03ba606d15a6df86f9941fb1b

See more details on using hashes here.

File details

Details for the file solvis_results_api-0.1.6a0-py3-none-any.whl.

File metadata

File hashes

Hashes for solvis_results_api-0.1.6a0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cc20051ef3b5341d5d1026e0afc69d49fdc20428af9b7040da6113005623e38
MD5 d80598f4c0f13460fc0508fdcafdad81
BLAKE2b-256 93fb1c91480bb64b4492a45638a7970bc972dc4204b6ed6ff81940f862ea9231

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