{"id":18916926,"url":"https://github.com/chainlit/literalai-python","last_synced_at":"2025-04-15T09:31:23.153Z","repository":{"id":251769342,"uuid":"715690817","full_name":"Chainlit/literalai-python","owner":"Chainlit","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-07T12:26:54.000Z","size":559,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-11-07T12:33:56.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.getliteral.ai/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chainlit.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-11-07T16:31:43.000Z","updated_at":"2024-11-07T12:26:36.000Z","dependencies_parsed_at":"2024-09-06T17:58:45.677Z","dependency_job_id":"e6f022f0-b84c-4d05-b661-e9c1c8daef7f","html_url":"https://github.com/Chainlit/literalai-python","commit_stats":null,"previous_names":["chainlit/literalai-python"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chainlit%2Fliteralai-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chainlit%2Fliteralai-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chainlit%2Fliteralai-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chainlit%2Fliteralai-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chainlit","download_url":"https://codeload.github.com/Chainlit/literalai-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223665662,"owners_count":17182353,"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":"2024-11-08T10:22:45.827Z","updated_at":"2024-11-08T10:22:46.367Z","avatar_url":"https://github.com/Chainlit.png","language":"Python","readme":"# Literal AI client\n\n## Installation\n\n```bash\npip install literalai\n```\n\n## Usage\n\nThe full documentation is available [here](https://docs.getliteral.ai/python-client).\n\nCreate a `.env` file with the `LITERAL_API_KEY` environment variable set to your API key.\n\n```python\nfrom literalai import LiteralClient\nfrom dotenv import load_dotenv\n\nload_dotenv()\n\nliteralai_client = LiteralClient()\n\n@literalai_client.step(type=\"run\")\ndef my_step(input):\n    return f\"World\"\n\n\n@literalai_client.thread\ndef main():\n    print(my_step(\"Hello\"))\n\n\nmain()\nclient.flush_and_stop()\nprint(\"Done\")\n```\n\n## Development setup\n\n```bash\npip install -r requirements-dev.txt\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainlit%2Fliteralai-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainlit%2Fliteralai-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainlit%2Fliteralai-python/lists"}