{"id":24044471,"url":"https://github.com/pjecz/pjecz-hercules-cli","last_synced_at":"2026-03-15T09:08:59.707Z","repository":{"id":271160988,"uuid":"912480983","full_name":"PJECZ/pjecz-hercules-cli","owner":"PJECZ","description":"CLI (Command Line Interface) para trabajar con RAG (Retrieval-Augmented Generation) y enviar los resultados a la API OAuth2 de Hercules","archived":false,"fork":false,"pushed_at":"2025-04-04T14:19:30.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T20:58:28.770Z","etag":null,"topics":["fastapi","python","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PJECZ.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":"2025-01-05T17:33:59.000Z","updated_at":"2025-04-04T14:19:33.000Z","dependencies_parsed_at":"2025-01-06T00:27:19.531Z","dependency_job_id":"7643d87b-f811-458a-9c68-7705929c3c49","html_url":"https://github.com/PJECZ/pjecz-hercules-cli","commit_stats":null,"previous_names":["pjecz/pjecz-hercules-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PJECZ/pjecz-hercules-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJECZ%2Fpjecz-hercules-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJECZ%2Fpjecz-hercules-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJECZ%2Fpjecz-hercules-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJECZ%2Fpjecz-hercules-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PJECZ","download_url":"https://codeload.github.com/PJECZ/pjecz-hercules-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJECZ%2Fpjecz-hercules-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30539582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T07:17:37.589Z","status":"ssl_error","status_checked_at":"2026-03-15T07:17:31.738Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fastapi","python","sqlalchemy"],"created_at":"2025-01-08T23:31:16.607Z","updated_at":"2026-03-15T09:08:59.676Z","avatar_url":"https://github.com/PJECZ.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pjecz-hercules-cli\n\nCLI (Command Line Interface) para trabajar con RAG (Retrieval-Augmented Generation) y enviar los resultados a la API OAuth2 de Hercules\n\n## Instalación\n\nCrear el entorno virtual con **Python 3.11**\n\n```bash\npython3.11 -m venv .venv\n```\n\nIngresar al entorno virtual\n\n```bash\n. .venv/bin/activate\n```\n\nActualizar e instalar **poetry 2**\n\n```bash\npip install --upgrade pip setuptools wheel poetry\n```\n\nCrear un archivo para las variables de entorno\n\n```bash\nnano .env\n```\n\nEscriba las siguientes variables cambiándolas a sus requerimientos\n\n```ini\n# Ollama\nOPENAI_API_KEY=\"NONE\"\nOPENAI_ENDPOINT=\"http://127.0.0.1:11434/v1\"\nOPENAI_MODEL=\"dolphin-mistral\"\nOPENAI_ORG_ID=\"NONE\"\nOPENAI_PROJECT_ID=\"NONE\"\nOPENAI_PROMPT=\"\"\n\n# API OAuth2\nAPI_BASE_URL=\"http://localhost:8000\"\nUSERNAME=\"nombre@servidor.com\"\nPASSWORD=\"XXXXXXXXXXXXXXXX\"\nLIMIT=100\nTIMEOUT=20\n\n# Edictos\nEDICTOS_BASE_DIR=\"/mnt/unidad/archivista/Edictos\"\nEDICTOS_GCS_BASE_URL=\"https://storage.googleapis.com/XXXX/XXXX\"\n\n# Sentencias\nSENTENCIAS_BASE_DIR=\"/mnt/unidad/archivista/Sentencias\"\nSENTENCIAS_GCS_BASE_URL=\"https://storage.googleapis.com/XXXX/XXXX\"\n```\n\nInstalar en este entorno el comando `hercules`\n\n```bash\npip install --editable .\n```\n\nProbar que funcione el CLI\n\n```bash\nhercules --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjecz%2Fpjecz-hercules-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjecz%2Fpjecz-hercules-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjecz%2Fpjecz-hercules-cli/lists"}