microsky


Namemicrosky JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/nakagami/microsky
SummarySimple bsky.app client
upload_time2025-01-05 07:36:15
maintainerNone
docs_urlNone
authorHajime Nakagami
requires_pythonNone
licenseMIT
keywords bluesky
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =============
microsky
=============

A Bluesky client for Python and MicoroPython.

Usage
-----------------

See microsky.py and the Bluesky HTTP API reference https://docs.bsky.app/docs/category/http-reference for usage.

Install
-----------------

Python
+++++++++++++++

::

   pip install microsky

MicroPython
+++++++++++++++

Go interactive shell and install with mip as follow.
::

   >>> import mip
   >>> mip.install("urequests")
   >>> mip.install("https://github.com/nakagami/microsky/blob/master/microsky.py")

Example
-----------------

Here is an example of doing the following

- Retrieving a list of your posts
- Post
- Delete a post

::

   import microsky

   with microsky.createSession("xxx.bsky.social", "password") as session:
       print(session.listPosts(did=session.did))
       post = session.sendPost("Hello Bluesky!")
       print(post)
       print(session.listPosts(did=session.did))
       print("delete")
       print(session.deletePost(post["uri"]))
       print(session.listPosts(did=session.did))

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nakagami/microsky",
    "name": "microsky",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Bluesky",
    "author": "Hajime Nakagami",
    "author_email": "nakagami@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bb/34/6d1ae246b82682b97703e0160871ede7c8abbd18ca5e00e64ab2ffba29e2/microsky-0.1.2.tar.gz",
    "platform": null,
    "description": "=============\nmicrosky\n=============\n\nA Bluesky client for Python and MicoroPython.\n\nUsage\n-----------------\n\nSee microsky.py and the Bluesky HTTP API reference https://docs.bsky.app/docs/category/http-reference for usage.\n\nInstall\n-----------------\n\nPython\n+++++++++++++++\n\n::\n\n   pip install microsky\n\nMicroPython\n+++++++++++++++\n\nGo interactive shell and install with mip as follow.\n::\n\n   >>> import mip\n   >>> mip.install(\"urequests\")\n   >>> mip.install(\"https://github.com/nakagami/microsky/blob/master/microsky.py\")\n\nExample\n-----------------\n\nHere is an example of doing the following\n\n- Retrieving a list of your posts\n- Post\n- Delete a post\n\n::\n\n   import microsky\n\n   with microsky.createSession(\"xxx.bsky.social\", \"password\") as session:\n       print(session.listPosts(did=session.did))\n       post = session.sendPost(\"Hello Bluesky!\")\n       print(post)\n       print(session.listPosts(did=session.did))\n       print(\"delete\")\n       print(session.deletePost(post[\"uri\"]))\n       print(session.listPosts(did=session.did))\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple bsky.app client",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/nakagami/microsky"
    },
    "split_keywords": [
        "bluesky"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bb346d1ae246b82682b97703e0160871ede7c8abbd18ca5e00e64ab2ffba29e2",
                "md5": "8af067a5d72cb79d3220fc831bb8bb0d",
                "sha256": "e3617091b4c70ae90482a397bcec73338571d96ef40cb534c2ad2cacb7dc75a9"
            },
            "downloads": -1,
            "filename": "microsky-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "8af067a5d72cb79d3220fc831bb8bb0d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4538,
            "upload_time": "2025-01-05T07:36:15",
            "upload_time_iso_8601": "2025-01-05T07:36:15.512403Z",
            "url": "https://files.pythonhosted.org/packages/bb/34/6d1ae246b82682b97703e0160871ede7c8abbd18ca5e00e64ab2ffba29e2/microsky-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-05 07:36:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nakagami",
    "github_project": "microsky",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "microsky"
}
        
Elapsed time: 6.26698s