Skip to content

Commit

Permalink
rebranding done
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruva Shaw committed Jan 11, 2025
1 parent d0a9eb8 commit f33068e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# -- Project information -----------------------------------------------------

project = 'fluxpoint.py'
copyright = '2022, Dhruva Shaw'
author = 'Dhruvacube'
copyright = '2025, Creative Net'
author = 'Creatrix-Net'

# The full version, including alpha/beta/rc tags
version = ''
Expand Down Expand Up @@ -62,7 +62,7 @@
# napoleon_attr_annotations = False

extlinks = {
'issue': ('https://github.com/Dhruvacube/fluxpoint.py/issues/%s', 'GH-'),
'issue': ('https://github.com/Creatrix-Net/fluxpoint.py/issues/%s', 'GH-'),
}

# Links used for cross-referencing stuff in other documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Welcome to fluxpoint's documentation!
:caption: Contents:


A modern, easy to use, feature-rich, and async ready API wrapper for Fluxpoint written in Python.
A modern, easy to use, feature-rich, and async ready API wrapper for Fluxpoint written in Python. Made by team at Creative Net.

.. image:: /_static/fluxpoint.png

Expand Down
13 changes: 6 additions & 7 deletions fluxpoint/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BaseHTTP:
:param api_token: The fluxpoint api token https://fluxpoint.dev/api/access
:type api_token: str
"""
__slots__ = ["api_token"]
__slots__ = ["api_token", "__user_agent"]

def __init__(self, api_token: str) -> None:
self.api_token: str = api_token
Expand Down Expand Up @@ -47,8 +47,7 @@ async def request(
"""
if json is None:
json = {}
__base_url: str = _base_url if _base_url.endswith(
'/') else _base_url.strip() + '/'
__base_url: str = _base_url if _base_url.endswith('/') else _base_url.strip() + '/' # type: ignore
headers = {} if not headers else headers

headers["Authorization"] = self.api_token
Expand All @@ -71,12 +70,12 @@ async def request(
raise WrongReturnType("Wrong return type is given")

if response.status == 400:
raise ParameterError(result.get("message"))
raise ParameterError(result.get("message")) # type: ignore

if response.status == 401:
raise Unauthorised(result.get("message"))
raise Unauthorised(result.get("message")) # type: ignore

if response.status == 500:
raise ApiError(result.get("message"))
raise ApiError(result.get("message")) # type: ignore

raise HttpException(response.status, result)
raise HttpException(response.status, result) # type: ignore
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

version = ''
with open(f'{pakage_name}/__init__.py') as f:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
version_match = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE)
if version_match:
version = version_match.group(1)

if not version:
raise RuntimeError('version is not set')
Expand Down

0 comments on commit f33068e

Please sign in to comment.