strapi-client


Namestrapi-client JSON
Version 2.9.1 PyPI version JSON
download
home_pagehttps://github.com/Roslovets-Inc/strapi-client
SummaryWork with Strapi from Python via REST API
upload_time2023-09-25 00:38:47
maintainer
docs_urlNone
authorPavel Roslovets
requires_python>=3.6
licenseMIT
keywords strapi cms api rest
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Strapi Client

Work with Strapi from Python via REST API

## Install

```bash
pip install strapi-client
```

## Documentation

[Full API Reference](./docs)

## Examples

Quick start:

```python
import asyncio
from strapi_client import StrapiClient

async def main():
    strapi = StrapiClient(strapi_url)
    await strapi.authorize(your_identifier, your_password) # optional
    users = await strapi.get_entries('users', filters={'username': {'$eq': 'Pavel'}})
    user_id = users['data'][0]['id']
    await strapi.update_entry('users', user_id, data={'username': 'Mark'})

asyncio.run(main())
```

## Development

### Create new release

Push changes to 'main' branch following [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).

### Update documentation

`docs` folder is being updated automatically by GitHub Actions when source files are changed.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Roslovets-Inc/strapi-client",
    "name": "strapi-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "strapi,cms,api,rest",
    "author": "Pavel Roslovets",
    "author_email": "p.v.roslovets@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1e/39/128469b0aac218ceb0ff76a2fc52022a581179f0acb8ed49b1acc4a79780/strapi_client-2.9.1.tar.gz",
    "platform": null,
    "description": "# Strapi Client\n\nWork with Strapi from Python via REST API\n\n## Install\n\n```bash\npip install strapi-client\n```\n\n## Documentation\n\n[Full API Reference](./docs)\n\n## Examples\n\nQuick start:\n\n```python\nimport asyncio\nfrom strapi_client import StrapiClient\n\nasync def main():\n    strapi = StrapiClient(strapi_url)\n    await strapi.authorize(your_identifier, your_password) # optional\n    users = await strapi.get_entries('users', filters={'username': {'$eq': 'Pavel'}})\n    user_id = users['data'][0]['id']\n    await strapi.update_entry('users', user_id, data={'username': 'Mark'})\n\nasyncio.run(main())\n```\n\n## Development\n\n### Create new release\n\nPush changes to 'main' branch following [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).\n\n### Update documentation\n\n`docs` folder is being updated automatically by GitHub Actions when source files are changed.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Work with Strapi from Python via REST API",
    "version": "2.9.1",
    "project_urls": {
        "Homepage": "https://github.com/Roslovets-Inc/strapi-client",
        "Repository": "https://github.com/Roslovets-Inc/strapi-client"
    },
    "split_keywords": [
        "strapi",
        "cms",
        "api",
        "rest"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c7a479f3987c67011801f9705f1d0f3329646ada9366c6694c70afc031374fc1",
                "md5": "c5958c19116d01518571523afa92c73d",
                "sha256": "1e7d96bca4005103467d8b3b8ac9bcb9e192f77cd73018e7e42d34276e435cec"
            },
            "downloads": -1,
            "filename": "strapi_client-2.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c5958c19116d01518571523afa92c73d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6372,
            "upload_time": "2023-09-25T00:38:46",
            "upload_time_iso_8601": "2023-09-25T00:38:46.450719Z",
            "url": "https://files.pythonhosted.org/packages/c7/a4/79f3987c67011801f9705f1d0f3329646ada9366c6694c70afc031374fc1/strapi_client-2.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e39128469b0aac218ceb0ff76a2fc52022a581179f0acb8ed49b1acc4a79780",
                "md5": "e6fb6bd0e4644efbe1bb542819205968",
                "sha256": "da2b3c39db341728cd1461342b7a951e4ced12242e06aa91b2a069e3c6d0c31c"
            },
            "downloads": -1,
            "filename": "strapi_client-2.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e6fb6bd0e4644efbe1bb542819205968",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5054,
            "upload_time": "2023-09-25T00:38:47",
            "upload_time_iso_8601": "2023-09-25T00:38:47.982245Z",
            "url": "https://files.pythonhosted.org/packages/1e/39/128469b0aac218ceb0ff76a2fc52022a581179f0acb8ed49b1acc4a79780/strapi_client-2.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-25 00:38:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Roslovets-Inc",
    "github_project": "strapi-client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "strapi-client"
}
        
Elapsed time: 0.12208s