{"id":23703309,"url":"https://github.com/crisboleda/facturas-fast-api","last_synced_at":"2026-05-17T00:08:03.552Z","repository":{"id":269261134,"uuid":"906689419","full_name":"crisboleda/facturas-fast-api","owner":"crisboleda","description":"Sistema de facturación con FastAPI","archived":false,"fork":false,"pushed_at":"2025-01-29T00:22:47.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T23:11:41.618Z","etag":null,"topics":["desing-patterns","fastapi","good-practices","python","python3","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crisboleda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-21T16:07:55.000Z","updated_at":"2025-01-29T00:22:50.000Z","dependencies_parsed_at":"2024-12-22T08:33:31.045Z","dependency_job_id":"b634944a-98d6-4a99-8ee9-47ac2ee290cf","html_url":"https://github.com/crisboleda/facturas-fast-api","commit_stats":null,"previous_names":["crisboleda/facturas-fast-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crisboleda/facturas-fast-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisboleda%2Ffacturas-fast-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisboleda%2Ffacturas-fast-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisboleda%2Ffacturas-fast-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisboleda%2Ffacturas-fast-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crisboleda","download_url":"https://codeload.github.com/crisboleda/facturas-fast-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisboleda%2Ffacturas-fast-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002372,"owners_count":26083356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["desing-patterns","fastapi","good-practices","python","python3","testing"],"created_at":"2024-12-30T13:00:59.610Z","updated_at":"2025-10-10T00:11:13.764Z","avatar_url":"https://github.com/crisboleda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# API Creación de facturas\n\nSistema para la creación de facturas y calculo de IVA según los productos de la factura.\n\n- En el proyecto se usaron patrones de diseño: **(Factory, Strategy)** los cuales nos permiten la creación de los tipos de facturas y su comportamiento propio para el calculo del IVA para los productos de la factura.\n\n\n## ¿Como usar?\n\n1. `Clone repository`\n2. `python3 -m venv .env`\n3. `source .env/bin/activate`\n4. `pip install requirements.txt`\n5. `python main.py`\n\n\n### Documentación API:\nhttp://127.0.0.1:8083/docs\n\n\n### Ejecutar tests\n`cd src/`\n\n`python -m unittest`\n\n\n## Endpoints\n\n```\nPOST -\u003e /invoices/\n```\n##### Body de entrada:\n```\n{\n    \"type\": \"A\", \n    \"details\": [\n        {\"product\": \"Product X\", \"quantity\": 2, \"unit_price\": 250.0}, \n        {\"product\": \"Service Y\", \"quantity\": 1, \"unit_price\": 500.0}\n    ]\n}\n```\n##### Respuesta con los calculos\n```\n{\n    \"type\": \"A\",\n    \"subtotal\": 1000,\n    \"applied_tax\": {\n        \"percentage\": 21,\n        \"amount\": 210\n    },\n    \"total\": 1210,\n    \"details\": [\n        {\n            \"product\": \"Product X\",\n            \"quantity\": 2,\n            \"unit_price\": 250\n        },\n        {\n            \"product\": \"Service Y\",\n            \"quantity\": 1,\n            \"unit_price\": 500\n        }\n    ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrisboleda%2Ffacturas-fast-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrisboleda%2Ffacturas-fast-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrisboleda%2Ffacturas-fast-api/lists"}