mirror of
https://codeberg.org/reflect/reflect-client-python.git
synced 2025-09-14 09:33:41 +02:00
Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
8147122386 | |||
7ab8e6777d | |||
340ca52ab5 |
3 changed files with 6 additions and 5 deletions
|
@ -66,9 +66,9 @@ class Client:
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Append Authentication header if API key is provided
|
# Append Authorization header if API key is provided
|
||||||
if (self._key):
|
if (self._key):
|
||||||
headers["Authentication"] = f"Bearer {self._key}"
|
headers["Authorization"] = f"Bearer {self._key}"
|
||||||
|
|
||||||
return headers
|
return headers
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
# the "install_requires" array should also be updated when changing this
|
# the "install_requires" array should also be updated when changing this
|
||||||
validators
|
validators
|
||||||
|
requests
|
4
setup.py
4
setup.py
|
@ -2,12 +2,12 @@ from setuptools import setup, find_packages
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "reflect-client",
|
name = "reflect-client",
|
||||||
version = "1.0.1",
|
version = "1.1.2",
|
||||||
description = "Python library for communicating with an API built with Reflect over HTTP or UNIX sockets",
|
description = "Python library for communicating with an API built with Reflect over HTTP or UNIX sockets",
|
||||||
author = "Victor Westerlund",
|
author = "Victor Westerlund",
|
||||||
author_email = "victor.vesterlund@gmail.com",
|
author_email = "victor.vesterlund@gmail.com",
|
||||||
url = "https://github.com/victorwesterlund/reflect-client-python",
|
url = "https://github.com/victorwesterlund/reflect-client-python",
|
||||||
packages = ["reflect_client"],
|
packages = ["reflect_client"],
|
||||||
# The requirement.txt file should also be updated when changing this
|
# The requirement.txt file should also be updated when changing this
|
||||||
install_requires = ["validators"]
|
install_requires = ["validators", "requests"]
|
||||||
)
|
)
|
Loading…
Add table
Reference in a new issue