Skip to main content

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)

๐Ÿ“ง juan654.pablo@gmail.com

๐Ÿ”— GitHub Profile

โš–๏ธ License

This project is licensed under the MIT License โ€“ see the LICENSE file for details.

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

unifisa_core-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

unifisa_core-0.1.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

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

Hashes for unifisa_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e47393d21893bf30238e93b0ee1c5816990b2fd27c142bdcd8ee3d8e6cc96062
MD5 e1423fac3f254f9311544a76254118cf
BLAKE2b-256 b1bccfe720665e53ebda515aa7bc88f9d454b92ba053a1bf4892e9341fd1c226

See more details on using hashes here.

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

Hashes for unifisa_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04048511a5a2bdb5b262e28d06ce6f8d90fccceeb7c8d83a790f37f9b6299509
MD5 8d94e56605b0da4070d8041ace443fe1
BLAKE2b-256 7ac84bf8f2be82188de34f57bfa639171d8fcd4e7ea11a48e2cef4ea02dc26ca

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