File tree 8 files changed +49
-42
lines changed
8 files changed +49
-42
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ---
6
+
7
+ ## [ 0.2.0] - 2023-03-01
8
+
5
9
### Changes
6
- - Updated for SlyAPI 0.4
10
+ - Updated for SlyAPI 0.4.3
7
11
- Awaiting ` YouTubeAnalytics ` is not longer necessary
8
12
- Methods now take ` T|set[T] ` for enum parameters
9
13
- ` Dimensions ` and ` Metrics ` are now just plain enums
10
- - the ` + ` operator has been overloaded to make a ` set `
14
+ - the ` + ` operator has been overloaded to make a ` set `
15
+
16
+ ## [ 0.1.0] - 2022-02-26
17
+
18
+ Initial release.
Original file line number Diff line number Diff line change 60
60
61
61
html_theme = 'furo'
62
62
html_static_path = ['_static' ]
63
- html_title = 'SlySheets for Python'
63
+ html_title = 'SlyYTAAPI for Python'
64
64
html_theme_options = {
65
65
"source_repository" : "https://github.com/dunkyl/SlyYTAAPI-Python/" ,
66
66
"source_branch" : "main" ,
Original file line number Diff line number Diff line change 2
2
hide-toc : true
3
3
---
4
4
5
- # Welcome to SlySheets for Python's documentation!
5
+ # Welcome to SlyYTAAPI for Python's documentation!
6
6
7
7
``` {include} ../README.md
8
8
:start-after: <!-- elevator begin -->
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ API Reference
6
6
:caption: API Reference
7
7
:recursive:
8
8
9
- SlySheets
9
+ SlyYTAAPI
Original file line number Diff line number Diff line change
1
+ [project ]
2
+ name = " SlyYTAAPI"
3
+ version = " 0.2.0"
4
+ description = " No-boilerplate, async and typed YouTube Analytics API access."
5
+ readme = " README.md"
6
+ requires-python = " >=3.10"
7
+ license = { file =" LICENSE" }
8
+ authors = [{name =" Dunkyl 🔣🔣" }]
9
+ classifiers = [ " Operating System :: OS Independent" ]
10
+ dependencies = [ ' SlyAPI >= 0.4.3' ]
11
+
12
+ [project .optional-dependencies ]
13
+ dev = [
14
+ # testing
15
+ ' pytest' ,
16
+ ' pytest-asyncio' ,
17
+
18
+ # docs
19
+ ' myst-parser' ,
20
+ ' furo' ,
21
+ ' sphinxcontrib-trio' ,
22
+ ' sphinx-copybutton' ,
23
+ ' sphinxext-opengraph'
24
+ ]
25
+
26
+ [project .urls ]
27
+ Homepage = " https://docs.dunkyl.net/SlyYTAAPI-Python/"
28
+ Repository = " https://github.com/dunkyl/SlyYTAAPI-Python"
29
+ Documentation = " https://docs.dunkyl.net/SlyYTAAPI-Python/"
30
+ "Bug Tracker" = " https://github.com/dunkyl/SlyYTAAPI-Python/issues"
31
+
1
32
[build-system ]
2
- requires = [ " setuptools>=42" , " wheel" ]
3
- build-backend = " setuptools.build_meta"
33
+ requires = [" setuptools" , " wheel" ]
4
34
5
35
[tool .pytest .ini_options ]
6
36
asyncio_mode = " auto"
7
- testpaths = [" test" ]
37
+ testpaths = [" test" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import sys , asyncio , inspect
2
2
3
- from SlySheets . sheets import Scope
3
+ from SlyYTAAPI . analytics import Scope
4
4
from SlyAPI .flow import *
5
5
6
6
async def main (args : list [str ]):
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Dimensions(Enum):
29
29
Video = 'video'
30
30
# ...
31
31
32
- def __add__ (self : 'Dimensions' , other : 'Dimensions' | set [' Dimensions' ] ) -> _AddOperator_Set ['Dimensions' ]:
32
+ def __add__ (self : 'Dimensions' , other : 'Dimensions|set[Dimensions]' ) -> _AddOperator_Set ['Dimensions' ]:
33
33
return _AddOperator_Set ((self ,)) + other
34
34
35
35
class Metrics (Enum ):
@@ -45,7 +45,7 @@ class Metrics(Enum):
45
45
SubsLost = 'subscribersLost'
46
46
# ...
47
47
48
- def __add__ (self : 'Metrics' , other : 'Metrics' | set [' Metrics' ] ) -> _AddOperator_Set ['Metrics' ]:
48
+ def __add__ (self : 'Metrics' , other : 'Metrics|set[Metrics]' ) -> _AddOperator_Set ['Metrics' ]:
49
49
return _AddOperator_Set ((self ,)) + other
50
50
51
51
@dataclass
You can’t perform that action at this time.
0 commit comments