Ayt-api

Latest version: v0.2.1

Safety actively analyzes 624625 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.1

0.2.0.post2

0.2

This has corrections for outdated examples *and* outdated examples in the `README.md` that i forgot to update as well 😭.

This is a major release with new features and breaking changes

Corrections:
- Fixed outdated examples
- Updated examples in `README.md`

New:
- Added call functions, classes and exceptions for channels, comments and captions.
- Added API search function.
- Added new utils to extract comment and channel IDs from URLs.
- Added util to convert YouTube ids to integers.
- Added utils to convert between camel case and snake case conventions.
- Added util to convert keys in dictionary from camel case to snake case.
- Added util to censor token in call URLs.
- Added enums for multi-return type attributes.
- Added special `SearchFilter` class for the new search function.
- Added enums for multi-arg type attributes for `SearchFilter`.

Breaking Changes:
- Renamed `AsyncYoutubeAPI` to `AsyncYoutubeApi`.
- Renamed `get_playlist_metadata()` to `fetch_playlist()`.
- Split `get_videos_from_playlist()` into `fetch_playlist_items()` and `fetch_playlist_videos()`.
- Renamed `get_video_metadata()` to `fetch_video()`.
- Renamed `YoutubeVideoMetadata` to `YoutubeVideo`
- Renamed `PlaylistVideoMetadata` to `PlaylistItem`
- Renamed `YoutubePlaylistMetadata` to `YoutubePlaylist`

Other Changes:
- All call functions use a single function to prevent duplicate code.
- Some call functions support multiple IDs as arguments.

This list of changes is non-exhaustive
**Full Changelog**: https://github.com/Revnoplex/ayt-api/compare/v0.1.6...v0.2.0.post2

0.1.6

0.1.5

This is just a bug fix that patches trailing " -"s not being stripped
Main Changes:
Fixed:
- Fixed a bug where trailing spaces followed by trailing hyphens would not be stripped

**Full Changelog**: https://github.com/Revnoplex/ayt-api/compare/v0.1.4...v0.1.5

0.1.4

This is only a fix for unintended behaviour and improvements
Main Changes:
Fixed:
- Fixed unintended behaviour where the id extractor functions would return the path of the url instead of `None` when passing an invalid url.
- Fixed bad type hints for `extract_video_id` and `extract_playlist_id`: changed the type from `str` to `Optional[str]`

**Full Changelog**: https://github.com/Revnoplex/ayt-api/compare/v0.1.3...v0.1.4

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.