Skip to content

Commit 4a16253

Browse files
authored
Rename project to YouTubeaio (#47)
1 parent c23d29e commit 4a16253

File tree

15 files changed

+30
-30
lines changed

15 files changed

+30
-30
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This package allows you to interact with the YouTube V3 API.
1919
## Installation
2020

2121
```bash
22-
pip install async-python-youtube
22+
pip install youtubeaio
2323
```
2424

2525
## Changelog & Releases
@@ -124,9 +124,9 @@ SOFTWARE.
124124
[poetry]: https://python-poetry.org
125125
[pre-commit]: https://pre-commit.com/
126126
[project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg
127-
[python-versions-shield]: https://img.shields.io/pypi/pyversions/async-python-youtube
127+
[python-versions-shield]: https://img.shields.io/pypi/pyversions/youtubeaio
128128
[releases-shield]: https://img.shields.io/github/release/joostlek/python-youtube.svg
129129
[releases]: https://github.com/joostlek/python-youtube/releases
130130
[semver]: http://semver.org/spec/v2.0.0.html
131131
[sonarcloud]: https://sonarcloud.io/summary/new_code?id=joostlek_python-youtube
132-
[pypi]: https://pypi.org/project/async-python-youtube/
132+
[pypi]: https://pypi.org/project/youtubeaio/

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "async_python_youtube"
2+
name = "youtubeaio"
33
version = "0.0.0"
44
description = "Asynchronous Python client for YouTube V3 API."
55
authors = ["Joost Lekkerkerker <[email protected]>"]
@@ -21,7 +21,7 @@ classifiers = [
2121
"Topic :: Software Development :: Libraries :: Python Modules",
2222
]
2323
packages = [
24-
{ include = "async_python_youtube", from = "src" },
24+
{ include = "youtubeaio", from = "src" },
2525
]
2626

2727
[tool.poetry.dependencies]
@@ -57,7 +57,7 @@ show_missing = true
5757

5858
[tool.coverage.run]
5959
plugins = ["covdefaults"]
60-
source = ["async_python_youtube"]
60+
source = ["youtubeaio"]
6161

6262
[tool.mypy]
6363
# Specify the target platform details in config, so your developers are
@@ -146,7 +146,7 @@ ignore = [
146146
"D417", # False positives in some occasions
147147
"PLR2004", # Just annoying, not really useful
148148
"TCH001",
149-
"SLOT000",
149+
"TRY301",
150150
"FBT001", # Boolean positional arg
151151
"FBT002", # Boolean default arg
152152
"PLR0913", # A lot of arguments
@@ -158,7 +158,7 @@ fixture-parentheses = false
158158
mark-parentheses = false
159159

160160
[tool.ruff.isort]
161-
known-first-party = ["async_python_youtube"]
161+
known-first-party = ["youtubeaio"]
162162

163163
[tool.ruff.mccabe]
164164
max-complexity = 25
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from enum import Enum
55
from typing import Any, TypeVar
66

7-
from async_python_youtube.types import AuthScope
7+
from youtubeaio.types import AuthScope
88

99
__all__ = [
1010
"YOUTUBE_AUTH_BASE_URL",
@@ -25,7 +25,7 @@
2525
def build_scope(scopes: list[AuthScope]) -> str:
2626
"""Build a valid scope string from list.
2727
28-
:param scopes: list of :class:`~async_python_youtube.types.AuthScope`
28+
:param scopes: list of :class:`~youtubeaio.types.AuthScope`
2929
:returns: the valid auth scope string
3030
"""
3131
return " ".join([s.value for s in scopes])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from pydantic import BaseModel, Field
66

7-
from async_python_youtube.const import LiveBroadcastContent
7+
from youtubeaio.const import LiveBroadcastContent
88

99
__all__ = [
1010
"YouTubeThumbnail",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Oauth helpers for YouTube."""
22
import aiohttp
33

4-
from async_python_youtube.helper import YOUTUBE_AUTH_TOKEN_URL, build_url
5-
from async_python_youtube.types import InvalidRefreshTokenError, UnauthorizedError
4+
from youtubeaio.helper import YOUTUBE_AUTH_TOKEN_URL, build_url
5+
from youtubeaio.types import InvalidRefreshTokenError, UnauthorizedError
66

77
__all__ = ["refresh_access_token"]
88

@@ -21,9 +21,9 @@ async def refresh_access_token(
2121
:param ~aiohttp.ClientSession session: optionally a active client session to be
2222
used for the web request to avoid having to open a new one
2323
:return: access_token, refresh_token
24-
:raises ~async_python_youtube.types.InvalidRefreshTokenException: if refresh token
24+
:raises ~youtubeaio.types.InvalidRefreshTokenException: if refresh token
2525
is invalid
26-
:raises ~async_python_youtube.types.UnauthorizedException: if both refresh and
26+
:raises ~youtubeaio.types.UnauthorizedException: if both refresh and
2727
access token are invalid (e.g. if the user changes their password of the app gets
2828
disconnected)
2929
:rtype: (str, str)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
import async_timeout
99
from aiohttp import ClientResponse, ClientSession
1010

11-
from async_python_youtube.helper import (
11+
from youtubeaio.helper import (
1212
build_url,
1313
first,
1414
)
15-
from async_python_youtube.models import YouTubeVideo
16-
from async_python_youtube.types import (
15+
from youtubeaio.models import YouTubeVideo
16+
from youtubeaio.types import (
1717
AuthScope,
1818
MissingScopeError,
1919
YouTubeAPIError,
@@ -144,9 +144,9 @@ async def set_user_authentication(
144144
:attr:`auto_refresh_auth` is True |default| :code:`None`
145145
:raises ValueError: if :attr:`auto_refresh_auth` is True but refresh_token is
146146
not set
147-
:raises ~async_python_youtube.types.MissingScopeException: if given token is
147+
:raises ~youtubeaio.types.MissingScopeException: if given token is
148148
missing one of the required scopes
149-
:raises ~async_python_youtube.types.InvalidTokenException: if the given token
149+
:raises ~youtubeaio.types.InvalidTokenException: if the given token
150150
is invalid or for a different client id
151151
"""
152152
if refresh_token is None and self.auto_refresh_auth:

0 commit comments

Comments
 (0)