{"id":27926010,"url":"https://github.com/wearymench/book_manager","last_synced_at":"2026-05-17T03:34:03.521Z","repository":{"id":291639437,"uuid":"978269240","full_name":"WearyMench/book_manager","owner":"WearyMench","description":"A Flask-based RESTful API for managing books","archived":false,"fork":false,"pushed_at":"2025-05-06T00:16:59.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T00:51:38.449Z","etag":null,"topics":["flask","python"],"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/WearyMench.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}},"created_at":"2025-05-05T18:17:07.000Z","updated_at":"2025-05-06T00:17:02.000Z","dependencies_parsed_at":"2025-05-05T19:53:12.671Z","dependency_job_id":"adc49056-c560-4c8e-b2b2-9f2918006804","html_url":"https://github.com/WearyMench/book_manager","commit_stats":null,"previous_names":["wearymench/book_manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WearyMench/book_manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WearyMench%2Fbook_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WearyMench%2Fbook_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WearyMench%2Fbook_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WearyMench%2Fbook_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WearyMench","download_url":"https://codeload.github.com/WearyMench/book_manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WearyMench%2Fbook_manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269527567,"owners_count":24432442,"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-08-09T02:00:10.424Z","response_time":111,"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":["flask","python"],"created_at":"2025-05-07T00:50:59.606Z","updated_at":"2026-05-17T03:34:03.479Z","avatar_url":"https://github.com/WearyMench.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Book Manager API\n\nA Flask-based RESTful API for managing books with features like input validation, rate limiting, logging, and API documentation.\n\n## Features\n\n- RESTful API endpoints for CRUD operations on books\n- Input validation using Marshmallow\n- Rate limiting to prevent abuse\n- Swagger/OpenAPI documentation\n- Error handling\n- CORS support\n- Unit tests\n\n## Installation\n\n### Option 1: Local Installation\n\n1. Clone the repository\n2. Create a virtual environment:\n```bash\npython -m venv env\nsource env/bin/activate  # On Windows: .\\env\\Scripts\\activate\n```\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n4. Create a .env file with your configuration:\n- `FLASK_ENV`: Application environment (development)\n- `SECRET_KEY`: Flask secret key\n- `POSTGRES_USER`: PostgreSQL username\n- `POSTGRES_PASSWORD`: PostgreSQL password\n- `POSTGRES_DB`: PostgreSQL database name\n- `SQLALCHEMY_DATABASE_URI`: Database connection string\n\n### Option 2: Docker Installation\n\n1. Make sure you have Docker and Docker Compose installed\n2. Clone the repository\n3. Build and run the containers:\n```bash\ndocker-compose up --build\n```\n\nThe API will be available at `http://localhost:5000`\n\n## Database Migrations\n\nInitialize the database:\n```bash\nflask db upgrade\n```\n\nCreate a new migration after model changes:\n```bash\nflask db migrate -m \"Migration description\"\nflask db upgrade\n```\n\n## Running the Application\n\n### Local Development\n\nDevelopment mode:\n```bash\nflask run\n```\n\nProduction mode:\n```bash\ngunicorn -w 4 -b 0.0.0.0:5000 app:app\n```\n\n### Using Docker\n\nStart the application:\n```bash\ndocker-compose up\n```\n\nRun in detached mode:\n```bash\ndocker-compose up -d\n```\n\nStop the application:\n```bash\ndocker-compose down\n```\n\n## API Documentation\n\nOnce running, visit `http://localhost:5000/` to access the Swagger UI documentation.\n\n## Testing\n\nRun tests using pytest:\n```bash\npytest\n```\n\n## API Endpoints\n\n- GET /books - List all books\n- POST /books - Create a new book\n- PUT /books/{id} - Update a book\n- DELETE /books/{id} - Delete a book\n\n## Rate Limits\n\n- List books: 100 requests per hour\n- Create/Update/Delete: 20 requests per hour\n- Overall: 200 requests per day\n\n## Directory Structure\n\n```\n.\n├── app.py              # Main application file\n├── config.py           # Configuration settings\n├── models.py           # Database models\n├── schemas.py          # Validation schemas\n├── errors.py          # Error handling\n├── logging.py         # Logging configuration\n├── tests/             # Test files\n├── logs/              # Log files\n└── requirements.txt   # Project dependencies\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearymench%2Fbook_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwearymench%2Fbook_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearymench%2Fbook_manager/lists"}