{"id":50479497,"url":"https://github.com/liberatti/nxcore","last_synced_at":"2026-06-01T16:30:53.746Z","repository":{"id":354302122,"uuid":"1222783436","full_name":"liberatti/nxcore","owner":"liberatti","description":"Internal Python library designed to provide common and reusable functionalities for private web projects. It streamlines development by offering a robust set of tools for authentication, database integration, messaging, and AI-powered tasks.","archived":false,"fork":false,"pushed_at":"2026-04-28T01:57:25.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T02:35:05.880Z","etag":null,"topics":["library","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liberatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T17:48:24.000Z","updated_at":"2026-04-28T01:57:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/liberatti/nxcore","commit_stats":null,"previous_names":["liberatti/nxcore"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/liberatti/nxcore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberatti%2Fnxcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberatti%2Fnxcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberatti%2Fnxcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberatti%2Fnxcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liberatti","download_url":"https://codeload.github.com/liberatti/nxcore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberatti%2Fnxcore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33784625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","python3"],"created_at":"2026-06-01T16:30:52.001Z","updated_at":"2026-06-01T16:30:53.733Z","avatar_url":"https://github.com/liberatti.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nxcore\n\n[![Version](https://img.shields.io/badge/version-v0.0.7-blue.svg)](https://github.com/liberatti/nxcore)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)\n\nInternal Python library designed to provide common and reusable functionalities for private web projects. It streamlines development by offering a robust set of tools for authentication, database integration, messaging, and AI-powered tasks.\n\n## 🚀 Key Features\n\n- **🔐 Auth \u0026 Security**: Full JWT integration for authentication and authority-based authorization.\n- **🍃 MongoDB Integration**: Simplified DAO (Data Access Object) with built-in pagination and schema validation.\n- **🐰 RabbitMQ \u0026 Messaging**: Easy-to-use wrappers for asynchronous task handling.\n- **📦 Cloud Storage**: Seamless integration with MinIO for object storage.\n- **🛡️ OAuth Support**: Pre-configured handlers for Google and Microsoft authentication.\n- **👁️ Computer Vision**: Facial recognition powered by DeepFace and advanced image processing utilities.\n- **🛠️ Common Utilities**: A collection of helpers for deep merging, date formatting, and more.\n\n## 🛠️ Installation\n\nInstall the library in editable mode for development:\n\n```bash\npip install -e . --break-system-packages\n```\n\nTo install specific extras:\n\n```bash\npip install \"nxcore[web,mongo,image]\"\n```\n\n## 📖 Quick Start\n\n### Basic Controller \u0026 Auth\n\n```python\nfrom nxcore.controllers.base_controller import has_any_authority, response_data\n\n@has_any_authority([\"ROLE_ADMIN\"])\ndef get_user_profile(user_id):\n    # Logic to fetch user\n    user = {\"id\": user_id, \"name\": \"John Doe\"}\n    return response_data(user)\n```\n\n### MongoDB DAO\n\n```python\nfrom nxcore.repository.mongo import MongoDAO\n\nclass UserDAO(MongoDAO):\n    def __init__(self, url):\n        super().__init__(url, collection_name=\"users\")\n\nwith UserDAO(mongo_url) as dao:\n    users = dao.get_all(pagination={\"page\": 1, \"per_page\": 10})\n```\n\n## 📂 Project Structure\n\n- `nxcore/controllers/`: Base controllers and response helpers.\n- `nxcore/middleware/`: JWT handling, logging, and socket management.\n- `nxcore/repository/`: Data access tools for MongoDB, RabbitMQ, and MinIO.\n- `nxcore/tools/`: Integration with OAuth providers, DeepFace, and image processing.\n- `nxcore/common_utils.py`: General purpose utility functions.\n- `nxcore/config.py`: Centralized configuration management.\n\n## 🤝 Contribution\n\nThis is an internal library. For contributions, please follow the internal development workflow:\n1. Create a feature branch.\n2. Ensure all methods are documented.\n3. Submit a Pull Request.\n\n## ✍️ Author\n\n**Gustavo Liberatti**\n- Email: [liberatti.gustavo@gmail.com](mailto:liberatti.gustavo@gmail.com)\n- GitHub: [@liberatti](https://github.com/liberatti)\n\n## 📜 License\n\nDistributed under the Apache License 2.0. See `LICENSE` for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliberatti%2Fnxcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliberatti%2Fnxcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliberatti%2Fnxcore/lists"}