A ZoomRx - Ferma Congress package for internal usage
Project description
Ferma Congress
This is a Python package built for Internal Purposes of ZoomRx - Ferma Congress which does some operation related in planning.
🔐 Authentication Setup
To access the Ferma API, you need a .env file with your Authorized Ferma credentials.
✅ Option 1: Non-Encoded Credentials (default)
FERMA_USERNAME=your_email@domain.com
FERMA_PASSWORD=your_password
✅ Option 2: Base64-Encoded Credentials (for format="ENCODED")
FERMA_USERNAME_ENC=encoded_username
FERMA_PASSWORD_ENC=encoded_password
Then use:
from FermaCongress.ExtractFerma import *
login("path/to/.env") # Default: In Case of Non-Encoded Credentials
login("path/to/.env", format="ENCODED") # Encoded: In Case of Encoded Credentials
ExtractFerma
To use the ExtractFerma functionality, you must first authenticate using the login() function. Once authenticated, you can call various data extraction functions to retrieve Ferma Congress data. Each function returns a pandas.DataFrame for easy analysis or export.
from FermaCongress.ExtractFerma import *
get_all_sessions(congress_id) # Fetches Session-Level Metadata
get_skg(congress_id) # Fetches Session Entities Data
get_tweets(congress_id) # Fetches tweet-level data linked to sessions
get_priority(congress_id, include=None, exclude=None) # Fetches session priorities across planners
# Usage Examples
from FermaCongress.ExtractFerma import *
get_all_sessions("217")
get_skg("217")
get_tweets("217")
get_priority("217")
get_priority("217", include=["ClientA", "ClientB"]) # Include only specific clients
get_priority("217", exclude=["ClientX"]) # Exclude specific clients
FormatExcel
The FormatExcel utility is used to apply styling and export your Ferma data (from a DataFrame or input file) into a clean, Ferma-styled Excel format.
from FermaCongress.FormatExcel import format
format(dataframe=df, output_path="priority_report.xlsx") # Format from a DataFrame
format(input_path="raw_sessions.xlsx", output_path="formatted_sessions.xlsx") # Format from Excel file
format(input_path="raw_data.csv", output_path="formatted_output.xlsx") # Format from CSV file
| Parameter | Type | Description |
|---|---|---|
input_path |
str |
Path to an input Excel or CSV file. |
dataframe |
pandas.DataFrame |
DataFrame to format. |
output_path |
str |
File path to save the formatted Excel output. |
headers |
bool |
True to convert headers to proper casing (e.g., buzz_score → Buzz Score). |
input_sheet |
str |
Name of the sheet to read from (Excel only). Optional if only one sheet. |
output_sheet |
str |
Name of the sheet to write into in the output Excel file. |
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 fermacongress-0.1.0.tar.gz.
File metadata
- Download URL: fermacongress-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2a8ce8787581cd99e3a8c245162f0ae579078522aedbf44007c2166803875dc
|
|
| MD5 |
8d2a73e7a2e132f62fb0fc7de7aee25a
|
|
| BLAKE2b-256 |
4c625f4b3da0f4f02bd232c048490c1d1eedd62d4596c815d030887c97a5da80
|
File details
Details for the file fermacongress-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fermacongress-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95d5c7fa6d1c05ed6b00520c3fd5a557304f9411c675d5ca16c7e2455772cc4e
|
|
| MD5 |
0711fe0e346f5edd0874ea7af97bc7b0
|
|
| BLAKE2b-256 |
8a458cdb7987ab4253576eb357be8b0b145ba171b21b0b3c1bd5a8a39ddaece6
|