Unifisa core utilities for automation, email, logging, selenium, and SQL Server integration.
Project description
๐ง Unifisa Core
Unifisa Core is a Python utility library that centralizes reusable modules for automation, email handling, logging, Selenium WebDriver setup, and SQL Server integration.
Originally created by Unifisa collaborators, this project is open source and welcomes contributions from the community.
๐ Installation
Install directly from PyPI:
pip install unifisa-core
Or, for a specific version:
pip install unifisa-core==0.1.0
๐ฆ Modules Overview
| Module | Description |
|---|---|
unifisa_core.email |
Send and manage emails easily via SMTP. |
unifisa_core.log |
Centralized logging configuration using Loguru. |
unifisa_core.selenium |
Manage Chrome WebDriver and helper functions for Selenium automation. |
unifisa_core.sqlserver |
Simplified connection and query execution with SQL Server using pyodbc. |
๐งฉ Usage Examples
๐ง Email Manager
from unifisa_core.email.email_manager import EmailManager
email = EmailManager(
smtp_server="smtp.gmail.com",
port=587,
sender="example@gmail.com",
password="your_password"
)
email.send_email(
to="recipient@example.com",
subject="Automation Report",
body="Your automation finished successfully!"
)
๐งพ Logger Configuration
from unifisa_core.log.logger_config import setup_logger
logger = setup_logger("automation.log")
logger.info("Process started successfully.")
๐ Selenium Helper
from unifisa_core.selenium.chrome_driver_settings import ChromeDriverSettings
from unifisa_core.selenium.selenium_helper import SeleniumHelper
driver = ChromeDriverSettings().get_driver()
helper = SeleniumHelper(driver)
helper.open_url("https://www.google.com")
๐๏ธ SQL Server Integration
from unifisa_core.sqlserver.sql_server_pyodbc import SQLServerConnection
db = SQLServerConnection(
server="SERVER_NAME",
database="DB_NAME",
username="user",
password="password"
)
data = db.query("SELECT TOP 10 * FROM employees")
print(data)
๐ Project Structure
unifisa-core/
โโโ src/
โ โโโ unifisa_core/
โ โโโ email/
โ โ โโโ email_manager.py
โ โโโ log/
โ โ โโโ logger_config.py
โ โโโ selenium/
โ โ โโโ chrome_driver_settings.py
โ โ โโโ selenium_helper.py
โ โโโ sqlserver/
โ โโโ sql_server_pyodbc.py
โโโ LICENSE
โโโ README.md
๐งโ๐ป Authors
vinicinhus (Vincius)
๐ GitHub Profile
Jpzinn654 (Juan Pablo)
๐ GitHub Profile
โ๏ธ License
This project is licensed under the MIT License โ see the LICENSE file for details.
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 unifisa_core-0.1.0.tar.gz.
File metadata
- Download URL: unifisa_core-0.1.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e47393d21893bf30238e93b0ee1c5816990b2fd27c142bdcd8ee3d8e6cc96062
|
|
| MD5 |
e1423fac3f254f9311544a76254118cf
|
|
| BLAKE2b-256 |
b1bccfe720665e53ebda515aa7bc88f9d454b92ba053a1bf4892e9341fd1c226
|
File details
Details for the file unifisa_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: unifisa_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04048511a5a2bdb5b262e28d06ce6f8d90fccceeb7c8d83a790f37f9b6299509
|
|
| MD5 |
8d94e56605b0da4070d8041ace443fe1
|
|
| BLAKE2b-256 |
7ac84bf8f2be82188de34f57bfa639171d8fcd4e7ea11a48e2cef4ea02dc26ca
|