{"id":20687050,"url":"https://github.com/mnogu/chitose","last_synced_at":"2025-10-24T02:03:52.432Z","repository":{"id":157746108,"uuid":"633596482","full_name":"mnogu/chitose","owner":"mnogu","description":"Python client library for the AT Protocol (Bluesky)","archived":false,"fork":false,"pushed_at":"2024-10-05T11:06:13.000Z","size":477,"stargazers_count":17,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-22T17:18:06.607Z","etag":null,"topics":["atproto","atprotocol","bluesky","bluesky-client","bsky","python","python3"],"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/mnogu.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-04-27T21:26:15.000Z","updated_at":"2024-11-13T02:51:23.000Z","dependencies_parsed_at":"2023-12-02T12:25:36.682Z","dependency_job_id":"c89bf265-d621-4116-bd9c-3dc500014669","html_url":"https://github.com/mnogu/chitose","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mnogu/chitose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fchitose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fchitose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fchitose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fchitose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnogu","download_url":"https://codeload.github.com/mnogu/chitose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fchitose/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262151543,"owners_count":23266916,"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":["atproto","atprotocol","bluesky","bluesky-client","bsky","python","python3"],"created_at":"2024-11-16T22:55:36.246Z","updated_at":"2025-10-24T02:03:47.408Z","avatar_url":"https://github.com/mnogu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chitose\n\n[![Python](https://img.shields.io/pypi/pyversions/chitose.svg)](https://badge.fury.io/py/chitose)\n[![PyPI](https://badge.fury.io/py/chitose.svg)](https://badge.fury.io/py/chitose)\n[![Read the Docs](https://readthedocs.org/projects/chitose/badge/?version=latest\u0026style=flat)](https://chitose.readthedocs.io/en/latest/)\n\nChitose is a Python client library for the AT Protocol (Bluesky).\n\n## Usage\n\nThe API of Chitose is similar to [the ATP API](https://github.com/bluesky-social/atproto/blob/main/packages/api/README.md).\n\nFor example, you can use `get_timeline()` in `BskyAgent` to get the timeline as shown below. Replace `YOUR_USERNAME` and `YOUR_PASSWORD` with your username and your password respectively:\n\n```\n$ git clone https://github.com/mnogu/chitose.git\n$ cd chitose\n$ python3 -m pip install -r requirements.txt\n$ python3\n\u003e\u003e\u003e from chitose import BskyAgent\n\u003e\u003e\u003e agent = BskyAgent(service='https://bsky.social')\n\u003e\u003e\u003e agent.login(identifier='YOUR_USERNAME', password='YOUR_PASSWORD')\n\u003e\u003e\u003e agent.get_timeline(limit=1)\n```\nFor available methods in `BskyAgent`, refer to [the documentation of `BskyAgent`](https://chitose.readthedocs.io/en/latest/chitose.html#chitose.BskyAgent).\n\nAlternatively, you can use `app.bsky.feed.get_timeline()` as in [the advanced API calls](https://github.com/bluesky-social/atproto/blob/main/packages/api/README.md#advanced-api-calls):\n\n```\n$ git clone https://github.com/mnogu/chitose.git\n$ cd chitose\n$ python3 -m pip install -r requirements.txt\n$ python3\n\u003e\u003e\u003e from chitose import BskyAgent\n\u003e\u003e\u003e agent = BskyAgent(service='https://bsky.social')\n\u003e\u003e\u003e agent.login(identifier='YOUR_USERNAME', password='YOUR_PASSWORD')\n\u003e\u003e\u003e agent.app.bsky.feed.get_timeline(limit=1)\n```\n\nYou can also post with `com.atproto.repo.create_record()`:\n```python\nfrom datetime import datetime\nfrom datetime import timezone\nfrom chitose import BskyAgent\nfrom chitose.app.bsky.feed.post import Post\n\nagent = BskyAgent(service='https://example.com')\nagent.login(identifier='alice@mail.com', password='hunter2')\n\nrecord = Post(text='Hello, world!',\n              created_at=datetime.now(timezone.utc).isoformat())\nagent.com.atproto.repo.create_record(\n    repo=alice.did, collection='app.bsky.feed.post', record=record)\n```\n\nSee also the [`examples`](https://github.com/mnogu/chitose/tree/main/examples) directory for sample code.\n\n## Documentation\n\nFor all the functions and classes available in Chitose, refer to [the Chitose’s documentation](https://chitose.readthedocs.io/en/latest/).\n\n## Install\n\nWhile you can use Chitose without installing its Python package, you can install [the package](https://pypi.org/project/chitose/):\n```\n$ python3 -m pip install chitose\n```\n\nAlternatively, you can build a Python package and install it:\n```\n$ git clone https://github.com/mnogu/chitose.git\n$ cd chitose\n$ python3 -m pip install -r requirements.txt\n$ python3 -m pip install --upgrade build\n$ python3 -m build\n$ python3 -m pip install dist/chitose-*-py3-none-any.whl\n```\n\n## Generating Code\n\nMost source files of Chitose are generated from the Lexicon files in the `atproto` directory, and you can generate Python code from these files by yourself:\n```\n$ git clone --recursive https://github.com/mnogu/chitose.git\n$ cd chitose\n$ python3 generate.py\n```\n\nYou can also update the `atproto` directory and regenerate Python code:\n```\n$ git submodule update --remote atproto\n$ python3 generate.py\n```\n\nYou may want to add new Python code to the repository or update the documentation:\n```\n$ git add chitose\n$ git commit\n```\n```\n$ python3 -m pip install -r docs/source/requirements.txt\n$ cd docs\n$ sphinx-apidoc -o ./source ../chitose -f\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnogu%2Fchitose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnogu%2Fchitose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnogu%2Fchitose/lists"}