{"id":28402118,"url":"https://github.com/agentops-ai/clickorm","last_synced_at":"2025-06-10T14:35:44.268Z","repository":{"id":282130647,"uuid":"947588081","full_name":"AgentOps-AI/clickorm","owner":"AgentOps-AI","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-13T00:11:49.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"devin/1741822960-python-orm-framework","last_synced_at":"2025-06-01T22:43:16.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AgentOps-AI.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}},"created_at":"2025-03-12T23:40:23.000Z","updated_at":"2025-04-18T19:00:45.000Z","dependencies_parsed_at":"2025-03-13T00:28:06.873Z","dependency_job_id":"e536d449-ac21-4643-92d6-a738bb644b98","html_url":"https://github.com/AgentOps-AI/clickorm","commit_stats":null,"previous_names":["agentops-ai/clickorm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentOps-AI%2Fclickorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentOps-AI%2Fclickorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentOps-AI%2Fclickorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentOps-AI%2Fclickorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgentOps-AI","download_url":"https://codeload.github.com/AgentOps-AI/clickorm/tar.gz/refs/heads/devin/1741822960-python-orm-framework","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentOps-AI%2Fclickorm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258723090,"owners_count":22747275,"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","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":[],"created_at":"2025-06-01T14:36:33.311Z","updated_at":"2025-06-10T14:35:44.260Z","avatar_url":"https://github.com/AgentOps-AI.png","language":"Python","readme":"# ClickORM\n\nA Python ORM framework for ClickHouse with Pydantic integration.\n\n## Features\n\n- Seamless integration with Pydantic for data validation and serialization\n- Type-safe query building\n- Automatic schema generation and migration\n- Support for all ClickHouse data types\n- Efficient connection management\n- Comprehensive error handling\n\n## Installation\n\n```bash\npip install clickorm\n```\n\n## Quick Start\n\n```python\nfrom datetime import datetime\nfrom typing import List, Optional\nfrom clickorm import Model, Column, ConnectionManager, types\n\n# Define your model\nclass User(Model):\n    id: int = Column(primary_key=True)\n    name: str = Column()\n    email: str = Column(index=True)\n    created_at: datetime = Column(default=datetime.utcnow)\n    \n    class Meta:\n        table_name = \"users\"\n        engine = \"MergeTree()\"\n        order_by = \"id\"\n\n# Connect to ClickHouse\nconn = ConnectionManager(host=\"localhost\", port=9000, database=\"default\")\nconn.set_as_default()\n\n# Create the table\nUser.create_table()\n\n# Insert a user\nuser = User(name=\"John Doe\", email=\"john@example.com\")\nuser.save()\n\n# Query users\nusers = User.query.filter(User.name.like(\"John%\")).all()\nfor user in users:\n    print(f\"User: {user.name}, Email: {user.email}\")\n\n# Update a user\nuser.name = \"Jane Doe\"\nuser.save()\n\n# Delete a user\nuser.delete()\n```\n\n## Documentation\n\nFor more detailed documentation, see [the full documentation](https://github.com/AgentOps-AI/clickorm).\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentops-ai%2Fclickorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentops-ai%2Fclickorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentops-ai%2Fclickorm/lists"}