gdriveplayer


Namegdriveplayer JSON
Version 0.2.7 PyPI version JSON
download
home_pagehttps://github.com/adenosinetp10/GDrivePlayerAPI
SummaryA python wrapper for gdriveplayer.co API
upload_time2022-12-22 12:19:20
maintainer
docs_urlNone
authoradenosinetp10
requires_python>=3.10,<4.0
licenseGPL-3.0-or-later
keywords poetry python api wrapper gdrive gdriveplayer
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GDrivePlayerAPI
A python wrapper for gdriveplayer.co API

### Instructions
```python 
pip install gdriveplayer
```

### Usage

The wrapper consists of 4 main classes.

* `GAnime`
* `GMovie`
* `GDrama`
* `GSeries`

Each of those classes contain very similar methods.

#### `GAnime`

#### Methods

```python
search(title: str | None = '', limit: int | str | None = 10, page: int | str | None = 1) -> List[Anime]
```

Search an Anime. Returns a list of `Anime` Objects.

The `Anime` Object consists of several attributes such as

* `id` 
* `title`
* `poster`
* `genre`
* `summary`
* `status`
* `type`
* `total_episode`
* `sub`
* `player_url`

#### Example

```python
from GDrivePlayer import GAnime

s = GAnime().search(title='Pokemon', limit=3)
print(s)
```
#### `Output`
```python
[<GDrivePlayer.anime.Anime object at 0x7f89b8d63370>, <GDrivePlayer.anime.Anime object at 0x7f89b8d633a0>, <GDrivePlayer.anime.Anime object at 0x7f89b8d63160>]
```

You can see the attributes of individual objects by doing 

```python
from GDrivePlayer import GAnime

s = GAnime().search(title='Bocchi the Rock')

print(s[0].title)
print(s[0].genre)
print(s[0].id)
print(s[0].status)
print(s[0].summary)
print(s[0].total_episode)
```

#### `Output`
```
Bocchi the Rock!
CGDCT, Comedy, Music, Slice of Life
290813
Ongoing
Hitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.
11
```

```python
LatestAnimes(limit: str | int | None = 10, page: str | int | None = 1, order: str | None = "last_updated", sort: str | None = "DESC") -> List[Anime]
```

Returns a list of `LatestAnime` objects. The `LatestAnime` object is very similar to `Anime` object. The only difference is that the former doesn't contain `summary` attribute. This is due to the original API's structure.

```python
animeDetail(id: str | int) -> Anime
```

Returns `Anime` Object of the `id` that is passed to the method.

#### Example

```python
from GDrivePlayer import GAnime

s = GAnime().animeDetail(id=290813)

print(s)
print(s.title)
print(s.summary)
```

#### `Output`

```
<GDrivePlayer.anime.Anime object at 0x7f7e68282290>
Bocchi the Rock!
Hitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.
```

The classes such as `GDrama`, `GMovie` and `GSeries` also contain similar methods and similar Objects like `Anime` and `LatestAnime`.


### Disclaimer

The developer of this wrapper is in no way responsible for how the user utilises, modifies and/or accesses this wrapper.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/adenosinetp10/GDrivePlayerAPI",
    "name": "gdriveplayer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "poetry,python,api,wrapper,gdrive,gdriveplayer",
    "author": "adenosinetp10",
    "author_email": "adenosinetp10@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b9/56/27015571831532098812b35bae1d33dcb12e7de3878f5117a34710cf1df4/gdriveplayer-0.2.7.tar.gz",
    "platform": null,
    "description": "# GDrivePlayerAPI\nA python wrapper for gdriveplayer.co API\n\n### Instructions\n```python \npip install gdriveplayer\n```\n\n### Usage\n\nThe wrapper consists of 4 main classes.\n\n* `GAnime`\n* `GMovie`\n* `GDrama`\n* `GSeries`\n\nEach of those classes contain very similar methods.\n\n#### `GAnime`\n\n#### Methods\n\n```python\nsearch(title: str | None = '', limit: int | str | None = 10, page: int | str | None = 1) -> List[Anime]\n```\n\nSearch an Anime. Returns a list of `Anime` Objects.\n\nThe `Anime` Object consists of several attributes such as\n\n* `id` \n* `title`\n* `poster`\n* `genre`\n* `summary`\n* `status`\n* `type`\n* `total_episode`\n* `sub`\n* `player_url`\n\n#### Example\n\n```python\nfrom GDrivePlayer import GAnime\n\ns = GAnime().search(title='Pokemon', limit=3)\nprint(s)\n```\n#### `Output`\n```python\n[<GDrivePlayer.anime.Anime object at 0x7f89b8d63370>, <GDrivePlayer.anime.Anime object at 0x7f89b8d633a0>, <GDrivePlayer.anime.Anime object at 0x7f89b8d63160>]\n```\n\nYou can see the attributes of individual objects by doing \n\n```python\nfrom GDrivePlayer import GAnime\n\ns = GAnime().search(title='Bocchi the Rock')\n\nprint(s[0].title)\nprint(s[0].genre)\nprint(s[0].id)\nprint(s[0].status)\nprint(s[0].summary)\nprint(s[0].total_episode)\n```\n\n#### `Output`\n```\nBocchi the Rock!\nCGDCT, Comedy, Music, Slice of Life\n290813\nOngoing\nHitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.\n11\n```\n\n```python\nLatestAnimes(limit: str | int | None = 10, page: str | int | None = 1, order: str | None = \"last_updated\", sort: str | None = \"DESC\") -> List[Anime]\n```\n\nReturns a list of `LatestAnime` objects. The `LatestAnime` object is very similar to `Anime` object. The only difference is that the former doesn't contain `summary` attribute. This is due to the original API's structure.\n\n```python\nanimeDetail(id: str | int) -> Anime\n```\n\nReturns `Anime` Object of the `id` that is passed to the method.\n\n#### Example\n\n```python\nfrom GDrivePlayer import GAnime\n\ns = GAnime().animeDetail(id=290813)\n\nprint(s)\nprint(s.title)\nprint(s.summary)\n```\n\n#### `Output`\n\n```\n<GDrivePlayer.anime.Anime object at 0x7f7e68282290>\nBocchi the Rock!\nHitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.\n```\n\nThe classes such as `GDrama`, `GMovie` and `GSeries` also contain similar methods and similar Objects like `Anime` and `LatestAnime`.\n\n\n### Disclaimer\n\nThe developer of this wrapper is in no way responsible for how the user utilises, modifies and/or accesses this wrapper.\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-or-later",
    "summary": "A python wrapper for gdriveplayer.co API",
    "version": "0.2.7",
    "split_keywords": [
        "poetry",
        "python",
        "api",
        "wrapper",
        "gdrive",
        "gdriveplayer"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "c15b3930db8eb2f7508f280febe19725",
                "sha256": "945c1d8d7bdbfd5fa5809b7a5b1738b6ed7b32af081934b6714fb6ec80d58c1c"
            },
            "downloads": -1,
            "filename": "gdriveplayer-0.2.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c15b3930db8eb2f7508f280febe19725",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 19889,
            "upload_time": "2022-12-22T12:19:18",
            "upload_time_iso_8601": "2022-12-22T12:19:18.239673Z",
            "url": "https://files.pythonhosted.org/packages/44/db/3faf0b7b13df3d5c93e0216f8dfc1539b70ef00c58afbcdc300542f25700/gdriveplayer-0.2.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "396cfae5ee8afef5db241888c7a83a9d",
                "sha256": "2bd8e522c55fc78f25d02358f1f18457bd05fdab0d81ab2daad53e3dcd67929d"
            },
            "downloads": -1,
            "filename": "gdriveplayer-0.2.7.tar.gz",
            "has_sig": false,
            "md5_digest": "396cfae5ee8afef5db241888c7a83a9d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 17302,
            "upload_time": "2022-12-22T12:19:20",
            "upload_time_iso_8601": "2022-12-22T12:19:20.077938Z",
            "url": "https://files.pythonhosted.org/packages/b9/56/27015571831532098812b35bae1d33dcb12e7de3878f5117a34710cf1df4/gdriveplayer-0.2.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-22 12:19:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "adenosinetp10",
    "github_project": "GDrivePlayerAPI",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        }
    ],
    "lcname": "gdriveplayer"
}
        
Elapsed time: 0.02026s