Skip to content

Commit

Permalink
Rewrite library
Browse files Browse the repository at this point in the history
Handle API manually
Clean up verification files
Combine service and analytics into one object
Add ability to store token for future use
Add better verification
  • Loading branch information
parafoxia committed Jul 23, 2021
1 parent b4a74b5 commit c73728e
Show file tree
Hide file tree
Showing 16 changed files with 2,160 additions and 1,497 deletions.
5 changes: 3 additions & 2 deletions analytix/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
__productname__ = "analytix"
__version__ = "1.2.0"
__version__ = "2.0.0.dev4"
__description__ = "A simple yet powerful API wrapper to make getting analytical information from the YouTube Analytics API easier than ever."
__url__ = "https://github.com/parafoxia/analytix"
__docs__ = "https://analytix.readthedocs.io/en/latest/"
__author__ = "Ethan Henderson"
__license__ = "BSD-3-Clause"
__bugtracker__ = "https://github.com/parafoxia/analytix/issues"

from .errors import *
from .youtube.analytics.api import YouTubeAnalytics
18 changes: 7 additions & 11 deletions analytix/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,21 @@ class AnalytixError(Exception):
pass


class NoAuthorisedService(AnalytixError):
"""Exception thrown when an operatoion that requires authorisation is attempted while no service is no authorised."""

class InvalidScopes(AnalytixError):
pass


class ServiceAlreadyExists(AnalytixError):
"""Exception thrown when an attempt to create a service is made while one already exists."""

class InvalidRequest(AnalytixError):
pass


class IncompleteRequest(AnalytixError):
"""Exception throws when not enough information has been passed to a request."""

class Deprecated(AnalytixError):
pass


class InvalidRequest(AnalytixError):
"""Exception throws when invalid information has been passed to a request."""
class MissingOptionalComponents(AnalytixError):
pass


class HTTPError(AnalytixError):
pass
Loading

0 comments on commit c73728e

Please sign in to comment.