File tree Expand file tree Collapse file tree 8 files changed +49
-42
lines changed
Expand file tree Collapse file tree 8 files changed +49
-42
lines changed Original file line number Diff line number Diff line change 22
33## [ Unreleased]
44
5+ ---
6+
7+ ## [ 0.2.0] - 2023-03-01
8+
59### Changes
6- - Updated for SlyAPI 0.4
10+ - Updated for SlyAPI 0.4.3
711- Awaiting ` YouTubeAnalytics ` is not longer necessary
812- Methods now take ` T|set[T] ` for enum parameters
913- ` 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 6060
6161html_theme = 'furo'
6262html_static_path = ['_static' ]
63- html_title = 'SlySheets for Python'
63+ html_title = 'SlyYTAAPI for Python'
6464html_theme_options = {
6565 "source_repository" : "https://github.com/dunkyl/SlyYTAAPI-Python/" ,
6666 "source_branch" : "main" ,
Original file line number Diff line number Diff line change 22hide-toc : true
33---
44
5- # Welcome to SlySheets for Python's documentation!
5+ # Welcome to SlyYTAAPI for Python's documentation!
66
77``` {include} ../README.md
88:start-after: <!-- elevator begin -->
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ API Reference
66 :caption: API Reference
77 :recursive:
88
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+
132[build-system ]
2- requires = [ " setuptools>=42" , " wheel" ]
3- build-backend = " setuptools.build_meta"
33+ requires = [" setuptools" , " wheel" ]
434
535[tool .pytest .ini_options ]
636asyncio_mode = " auto"
7- testpaths = [" test" ]
37+ testpaths = [" test" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import sys , asyncio , inspect
22
3- from SlySheets . sheets import Scope
3+ from SlyYTAAPI . analytics import Scope
44from SlyAPI .flow import *
55
66async def main (args : list [str ]):
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Dimensions(Enum):
2929 Video = 'video'
3030 # ...
3131
32- def __add__ (self : 'Dimensions' , other : 'Dimensions' | set [' Dimensions' ] ) -> _AddOperator_Set ['Dimensions' ]:
32+ def __add__ (self : 'Dimensions' , other : 'Dimensions|set[Dimensions]' ) -> _AddOperator_Set ['Dimensions' ]:
3333 return _AddOperator_Set ((self ,)) + other
3434
3535class Metrics (Enum ):
@@ -45,7 +45,7 @@ class Metrics(Enum):
4545 SubsLost = 'subscribersLost'
4646 # ...
4747
48- def __add__ (self : 'Metrics' , other : 'Metrics' | set [' Metrics' ] ) -> _AddOperator_Set ['Metrics' ]:
48+ def __add__ (self : 'Metrics' , other : 'Metrics|set[Metrics]' ) -> _AddOperator_Set ['Metrics' ]:
4949 return _AddOperator_Set ((self ,)) + other
5050
5151@dataclass
You can’t perform that action at this time.
0 commit comments