daniel-cavazos-sdk


Namedaniel-cavazos-sdk JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryAccesses The One API
upload_time2023-05-08 20:54:52
maintainer
docs_urlNone
authorDaniel Cavazos
requires_python>=3.6
license
keywords sdk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Daniel Cavazos SDK

The `daniel-cavazos-sdk` package provides a Python client library for interacting with The One API. This library provides a convenient `TheOneClient` class that provides methods for interacting with The One API.

## Installation

You can install the `daniel-cavazos-sdk` package using `pip`:

```
pip install daniel-cavazos-sdk
```

## Usage

First, import the `TheOneClient` class from the `daniel_cavazos_sdk` module:

```python
from daniel_cavazos_sdk.client import TheOneClient
```

Then, create an instance of the `TheOneClient` class with your API token:

```python
client = TheOneClient(token="your-api-token")
```

Now, you can use the various methods available in the `TheOneClient` class to interact with TheOneAPI:

```python
# get all movies
all_movies = client.get_movies()

# get a specific movie by ID
movie = client.get_movie(id="123")

# get all quotes for a specific movie by ID
movie_quotes = client.get_movie_quotes(id="123")

# get all quotes
all_quotes = client.get_quotes()

# get a specific quote by ID
quote = client.get_quote(id="123")
```

Each method returns the parsed JSON response from the API. If the response has a non-2xx status code, a `requests.exceptions.HTTPError` is raised.

## Contributing

If you find any bugs or issues with this package, please report them on the [GitHub Issues page](https://github.com/Caaz/daniel-cavazos-sdk/issues).

If you would like to contribute to the development of this package, please fork the repository and submit a pull request with your changes.

## License

This package is distributed under the MIT License. See the `LICENSE` file for more information.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "daniel-cavazos-sdk",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "sdk",
    "author": "Daniel Cavazos",
    "author_email": "dcaazy@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b7/75/5a761904ae1eb4dead572d1b815a010de25bb3bc33944cad7dd2a2dafea3/daniel-cavazos-sdk-0.1.0.tar.gz",
    "platform": null,
    "description": "# Daniel Cavazos SDK\r\n\r\nThe `daniel-cavazos-sdk` package provides a Python client library for interacting with The One API. This library provides a convenient `TheOneClient` class that provides methods for interacting with The One API.\r\n\r\n## Installation\r\n\r\nYou can install the `daniel-cavazos-sdk` package using `pip`:\r\n\r\n```\r\npip install daniel-cavazos-sdk\r\n```\r\n\r\n## Usage\r\n\r\nFirst, import the `TheOneClient` class from the `daniel_cavazos_sdk` module:\r\n\r\n```python\r\nfrom daniel_cavazos_sdk.client import TheOneClient\r\n```\r\n\r\nThen, create an instance of the `TheOneClient` class with your API token:\r\n\r\n```python\r\nclient = TheOneClient(token=\"your-api-token\")\r\n```\r\n\r\nNow, you can use the various methods available in the `TheOneClient` class to interact with TheOneAPI:\r\n\r\n```python\r\n# get all movies\r\nall_movies = client.get_movies()\r\n\r\n# get a specific movie by ID\r\nmovie = client.get_movie(id=\"123\")\r\n\r\n# get all quotes for a specific movie by ID\r\nmovie_quotes = client.get_movie_quotes(id=\"123\")\r\n\r\n# get all quotes\r\nall_quotes = client.get_quotes()\r\n\r\n# get a specific quote by ID\r\nquote = client.get_quote(id=\"123\")\r\n```\r\n\r\nEach method returns the parsed JSON response from the API. If the response has a non-2xx status code, a `requests.exceptions.HTTPError` is raised.\r\n\r\n## Contributing\r\n\r\nIf you find any bugs or issues with this package, please report them on the [GitHub Issues page](https://github.com/Caaz/daniel-cavazos-sdk/issues).\r\n\r\nIf you would like to contribute to the development of this package, please fork the repository and submit a pull request with your changes.\r\n\r\n## License\r\n\r\nThis package is distributed under the MIT License. See the `LICENSE` file for more information.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Accesses The One API",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b7755a761904ae1eb4dead572d1b815a010de25bb3bc33944cad7dd2a2dafea3",
                "md5": "eacfce55b8745cdb66d6c40898ca8799",
                "sha256": "0f9d8238af56758d74f7ee4544abd25f97e13f90d3b501c52fa77f2f58ec59df"
            },
            "downloads": -1,
            "filename": "daniel-cavazos-sdk-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "eacfce55b8745cdb66d6c40898ca8799",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3124,
            "upload_time": "2023-05-08T20:54:52",
            "upload_time_iso_8601": "2023-05-08T20:54:52.774507Z",
            "url": "https://files.pythonhosted.org/packages/b7/75/5a761904ae1eb4dead572d1b815a010de25bb3bc33944cad7dd2a2dafea3/daniel-cavazos-sdk-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-08 20:54:52",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "daniel-cavazos-sdk"
}
        
Elapsed time: 0.08095s