{"id":21275661,"url":"https://github.com/devxt-llc/convertanything","last_synced_at":"2025-07-11T08:30:34.244Z","repository":{"id":221587210,"uuid":"754807993","full_name":"DevXT-LLC/convertanything","owner":"DevXT-LLC","description":"Convert your data to Pydantic models with help from language models.","archived":false,"fork":false,"pushed_at":"2024-05-07T20:17:14.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-10T23:11:57.078Z","etag":null,"topics":["ai","artificial-intelligence","data-manipulation"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/DevXT-LLC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["Josh-XT"],"ko_fi":"joshxt"}},"created_at":"2024-02-08T20:01:21.000Z","updated_at":"2024-08-02T01:57:02.000Z","dependencies_parsed_at":"2024-02-08T21:57:05.182Z","dependency_job_id":"9e25a9b7-97da-4a39-a1eb-89278fdfc3ae","html_url":"https://github.com/DevXT-LLC/convertanything","commit_stats":null,"previous_names":["devxt-llc/convertanything"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevXT-LLC%2Fconvertanything","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevXT-LLC%2Fconvertanything/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevXT-LLC%2Fconvertanything/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevXT-LLC%2Fconvertanything/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevXT-LLC","download_url":"https://codeload.github.com/DevXT-LLC/convertanything/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225706950,"owners_count":17511578,"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":["ai","artificial-intelligence","data-manipulation"],"created_at":"2024-11-21T09:35:32.556Z","updated_at":"2024-11-21T09:35:33.102Z","avatar_url":"https://github.com/DevXT-LLC.png","language":"Jupyter Notebook","funding_links":["https://github.com/sponsors/Josh-XT","https://ko-fi.com/joshxt"],"categories":[],"sub_categories":[],"readme":"# convertanything\n\n`convertanything` is a simple way to convert any unstructured texts into pydantic models in Python with the use of language models. See the [examples notebook](https://github.com/DevXT-LLC/convertanything/blob/main/example.ipynb) for more details.\n\n## Installation\n\n```bash\npip install convertanything\n```\n\n## Usage Examples\n\n### ezLocalai\n\nTo use with [ezLocalai](https://github.com/DevXT-LLC/ezlocalai) in Python, make sure your ezLocalai server is running then run the following code:\n\n```python\nfrom convertanything import convertanything\nfrom pydantic import BaseModel\nfrom typing import List\n\n\nclass Person(BaseModel):\n    name: str\n    age: int\n    email: str\n    interests: List[str]\n\n\nresponse = convertanything(\n    input_string=\"Hi my name is John Doe, I am 30 years old, my email is johndoe@example.com . I like to go fishing and watching football.\",\n    model=Person,\n    api_key=\"Your ezlocalai API Key\",\n    server=\"http://localhost:8091\",\n)\nprint(response)\n```\n\n### AGiXT\n\nTo use with [AGiXT](https://github.com/Josh-XT/AGiXT) in Python, make sure your AGiXT server is running then run the following code:\n\n```python\nfrom convertanything import convertanything\nfrom pydantic import BaseModel\nfrom typing import List\n\n\nclass Person(BaseModel):\n    name: str\n    age: int\n    email: str\n    interests: List[str]\n\n\nresponse = convertanything(\n    input_string=\"Hi my name is John Doe, I am 30 years old, my email is johndoe@example.com . I like to go fishing and watching football.\",\n    model=Person,\n    api_key=\"Your AGiXT API Key\",\n    server=\"http://localhost:7437\",\n    llm=\"Your AGiXT Agent Name\",\n    prompt_name=\"User Input\",\n)\nprint(response)\n```\n\n### OpenAI\n\nIf you have an OpenAI API key, you can use it as follows with OpenAI language models:\n\n```python\nfrom convertanything import convertanything\nfrom pydantic import BaseModel\nfrom typing import List\n\nclass Person(BaseModel):\n    name: str\n    age: int\n    email: str\n    interests: List[str]\n\nresponse = convertanything(\n    input_string=\"Hi my name is John Doe, I am 30 years old, my email is johndoe@example.com . I like to go fishing.\",\n    model=Person,\n    api_key=\"Your OpenAI API Key\",\n    llm=\"gpt-3.5-turbo\",\n)\nprint(response)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxt-llc%2Fconvertanything","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxt-llc%2Fconvertanything","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxt-llc%2Fconvertanything/lists"}