tatsu.py


Nametatsu.py JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/PumPum7/Tatsu.py
SummaryAn async python API Wrapper for the Tatsu API.
upload_time2024-08-05 17:28:45
maintainerNone
docs_urlNone
authorPum
requires_pythonNone
licenseMIT License
keywords api tatsu api wrapper
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Tatsumaki.py

An async python api wrapper for the [Tatsu API](https://dev.tatsu.gg/).

---

## Set up guide:

1. Download the library with the `pip install tatsu.py` command
2. Import the library: `from tatsu.wrapper import ApiWrapper`
3. Check the wiki for more information: [Wiki](https://github.com/PumPum7/Tatsu.py/wiki/Guide)

## Code examples:

- Get the information of a user

```python
from tatsu.wrapper import ApiWrapper


async def get_profile():
    wrapper = ApiWrapper(key="API_KEY_HERE")
    user_profile = await wrapper.get_profile(274561812664549376)
    return user_profile.credits
```

- Get the ranking of a user:
```python
from tatsu.wrapper import ApiWrapper

async def get_member_ranking():
    wrapper = ApiWrapper(key="API_KEY_HERE")
    result = await wrapper.get_member_ranking(573885009820254239, 274561812664549376)
    return result.rank
```

- Get the rankings of a server with an offset

```python
from tatsu.wrapper import ApiWrapper


async def get_ranks():
    wrapper = ApiWrapper(key="API_KEY_HERE")
    result = await wrapper.get_guild_rankings(573885009820254239, offset=100)
    return result.rankings[0].rank  # This will be 101
```





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PumPum7/Tatsu.py",
    "name": "tatsu.py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "api, tatsu, api wrapper",
    "author": "Pum",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/90/1f/82bcaaeaa598338cc0cb163dfb8b018ddb37f16df4e213c80f663db89ece/tatsu_py-1.1.0.tar.gz",
    "platform": null,
    "description": "# Tatsumaki.py\n\nAn async python api wrapper for the [Tatsu API](https://dev.tatsu.gg/).\n\n---\n\n## Set up guide:\n\n1. Download the library with the `pip install tatsu.py` command\n2. Import the library: `from tatsu.wrapper import ApiWrapper`\n3. Check the wiki for more information: [Wiki](https://github.com/PumPum7/Tatsu.py/wiki/Guide)\n\n## Code examples:\n\n- Get the information of a user\n\n```python\nfrom tatsu.wrapper import ApiWrapper\n\n\nasync def get_profile():\n    wrapper = ApiWrapper(key=\"API_KEY_HERE\")\n    user_profile = await wrapper.get_profile(274561812664549376)\n    return user_profile.credits\n```\n\n- Get the ranking of a user:\n```python\nfrom tatsu.wrapper import ApiWrapper\n\nasync def get_member_ranking():\n    wrapper = ApiWrapper(key=\"API_KEY_HERE\")\n    result = await wrapper.get_member_ranking(573885009820254239, 274561812664549376)\n    return result.rank\n```\n\n- Get the rankings of a server with an offset\n\n```python\nfrom tatsu.wrapper import ApiWrapper\n\n\nasync def get_ranks():\n    wrapper = ApiWrapper(key=\"API_KEY_HERE\")\n    result = await wrapper.get_guild_rankings(573885009820254239, offset=100)\n    return result.rankings[0].rank  # This will be 101\n```\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "An async python API Wrapper for the Tatsu API.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/PumPum7/Tatsu.py",
        "Source": "https://github.com/PumPum7/Tatsu.py",
        "Tatsu": "https://tatsu.gg/"
    },
    "split_keywords": [
        "api",
        " tatsu",
        " api wrapper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a3e124095417e09cc38939a5bd137b5283fb58b35e0fc4f57c8a8f365615097e",
                "md5": "f0229d9aa27ff7d5952a084193ef9915",
                "sha256": "91c6c412f2927adfbbdc4ca2665665d67877f9a849ce44aed545f202e05b5fc8"
            },
            "downloads": -1,
            "filename": "tatsu.py-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f0229d9aa27ff7d5952a084193ef9915",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6874,
            "upload_time": "2024-08-05T17:28:43",
            "upload_time_iso_8601": "2024-08-05T17:28:43.756069Z",
            "url": "https://files.pythonhosted.org/packages/a3/e1/24095417e09cc38939a5bd137b5283fb58b35e0fc4f57c8a8f365615097e/tatsu.py-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "901f82bcaaeaa598338cc0cb163dfb8b018ddb37f16df4e213c80f663db89ece",
                "md5": "8307265c30c20c4eebab0fca7b6d28e7",
                "sha256": "9273d9046f824943d2e00673d618334580e2c2d9054376540b2d7dfd82f047ab"
            },
            "downloads": -1,
            "filename": "tatsu_py-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8307265c30c20c4eebab0fca7b6d28e7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6995,
            "upload_time": "2024-08-05T17:28:45",
            "upload_time_iso_8601": "2024-08-05T17:28:45.031582Z",
            "url": "https://files.pythonhosted.org/packages/90/1f/82bcaaeaa598338cc0cb163dfb8b018ddb37f16df4e213c80f663db89ece/tatsu_py-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-05 17:28:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PumPum7",
    "github_project": "Tatsu.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tatsu.py"
}
        
Pum
Elapsed time: 9.00216s