{"id":19797355,"url":"https://github.com/laspavel/foreman-api","last_synced_at":"2026-06-15T07:33:20.621Z","repository":{"id":173126082,"uuid":"650271452","full_name":"laspavel/foreman-api","owner":"laspavel","description":"Simple Python Foreman api client","archived":false,"fork":false,"pushed_at":"2025-04-12T16:14:25.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T17:27:46.798Z","etag":null,"topics":["foreman","foreman-api","python3","rest-api","rest-api-client"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laspavel.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}},"created_at":"2023-06-06T17:59:51.000Z","updated_at":"2025-04-12T16:14:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"26739dc2-08d1-45d8-a129-b25eb8c904be","html_url":"https://github.com/laspavel/foreman-api","commit_stats":null,"previous_names":["laspavel/foreman-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laspavel/foreman-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laspavel%2Fforeman-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laspavel%2Fforeman-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laspavel%2Fforeman-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laspavel%2Fforeman-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laspavel","download_url":"https://codeload.github.com/laspavel/foreman-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laspavel%2Fforeman-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34353193,"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-15T02:00:07.085Z","response_time":63,"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":["foreman","foreman-api","python3","rest-api","rest-api-client"],"created_at":"2024-11-12T07:24:53.952Z","updated_at":"2026-06-15T07:33:20.616Z","avatar_url":"https://github.com/laspavel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foreman API – Python Client for Foreman\n\nForeman API is a lightweight Python client designed to interact with the Foreman RESTful API. It simplifies the process of automating tasks such as provisioning, configuration, and monitoring of servers managed by Foreman.​\n\n## 📌 Features\n\n* Simple and intuitive interface for making API requests​\n* Support for GET, POST, PUT, and DELETE HTTP methods​\n* Handles authentication seamlessly​\n* Flexible parameter handling for various API endpoints​\n\n## ⚙️ Requirements\n\n* Python 3.8 or higher​\n* Access to a Foreman instance with API credentials​\n\n## 🚀 Installation\n\nClone the repository and include ForemanApi.py in your project:​\n\n```bash\ngit clone https://github.com/laspavel/foreman-api.git\n```\n\nAlternatively, you can copy the ForemanApi.py file directly into your project directory.​\n\n## 🧪 Usage Example\nHere's a basic example of how to use the Foreman API client:​\n\n```python\nimport ForemanApi\n\n# Initialize the Foreman API client\nrapi = ForemanApi.ForemanAPI('https://foreman.example.com/api/', 'apiuser', 'apipassword')\n\n# Retrieve information about a specific host\nhost_info = rapi.api_request(api_type='get', api_method='hosts/1')\n\n# Alternatively, using the shorthand method\n# host_info = rapi.get.hosts(id=1)\n\nprint(host_info)\n```\n\nFor more examples, refer to the example.py file included in the repository.​\n\n## 📄 License\n\nMIT License.​\n\n## 🤝 Contributions\n\nSuggestions and improvements are welcome! Feel free to open an issue or submit a pull request.\n\n## 📬 Contact\n\nAuthor: [laspavel](https://github.com/laspavel)\n\nFeel free to reach out with questions or ideas.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaspavel%2Fforeman-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaspavel%2Fforeman-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaspavel%2Fforeman-api/lists"}