Skip to main content

CLI tool for Activesoft Siga automation

Project description

Activesoft Siga CLI

A Python SDK and CLI tool for automating interactions with the Activesoft Siga API. This tool simplifies retrieval of student and responsible party data.

Installation

Install via pip:

pip install activesoft-cli

Or from source:

git clone https://github.com/tsuriu/activesoft-cli.git
cd activesoft-cli
pip install .

CLI Usage

The package includes a command-line interface activesoft-cli with two main commands: run and responsaveis.

Student Management (run)

Lists students or retrieves details for a specific student.

# List students (defaults to 10)
activesoft-cli run --username <user> --password <pass>

# Fetch details for a specific student ID
activesoft-cli run --username <user> --password <pass> --student-id 103

Responsible Parties (responsaveis)

Lists responsible parties or retrieves specific details.

# List responsible parties (defaults to 21)
activesoft-cli responsaveis --username <user> --password <pass> --limit 10

# Fetch details for a specific responsible party ID
activesoft-cli responsaveis --username <user> --password <pass> --responsavel-id 10188

SDK Usage

You can also use the SigaClient directly in your Python scripts.

Initialization

from activesoft_cli import SigaClient

# Initialize and login
client = SigaClient(
    username="your-username", 
    password="your-password", 
    instituicao="TEST_INSTITUTION"
)

if client.login():
    print("Login successful")
else:
    print("Login failed")
    exit(1)

Working with Students (Alunos)

# List students
students = client.list_alunos(limit=10, offset=0)
for student in students:
    print(student)

# Get detailed info
detail = client.get_aluno_detail(aluno_id=103)
print(detail)

Working with Responsible Parties (Responsaveis)

# List responsible parties
guardians = client.list_responsaveis(limit=20)
for guardian in guardians:
    print(guardian)

# Get detailed info
guardian_detail = client.get_responsavel_detail(responsavel_id=10188)
print(guardian_detail)

Requirements

  • Python 3.8+
  • requests
  • httpx
  • loguru
  • click

License

This project is licensed under the MIT License.

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

activesoft_cli-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

activesoft_cli-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file activesoft_cli-0.1.0.tar.gz.

File metadata

  • Download URL: activesoft_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for activesoft_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8112a0ab05998624dec9da38de9febbd4caa7c0ce154dc0508cd014169abdd2
MD5 a439b6ba1e537000960dc03d498803ab
BLAKE2b-256 daa4769b2ab0fc799c9b2d571bef7bc91c509116e9b4104fef400681fed9e228

See more details on using hashes here.

File details

Details for the file activesoft_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: activesoft_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for activesoft_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5718fe88363afe74b9311fb9fcc627c7223a88b8e178203d279645ec548eec15
MD5 b84c02b35e95a053059a1738edae744b
BLAKE2b-256 5afb743848f158ca86410fd437a53ae5d3fe26febba94216a66aeb6cf827bf0e

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