autoskope-client 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of autoskope-client might be problematic. Click here for more details.
- autoskope_client-0.1.0/PKG-INFO +19 -0
- autoskope_client-0.1.0/README.md +55 -0
- autoskope_client-0.1.0/autoskope_client.egg-info/PKG-INFO +19 -0
- autoskope_client-0.1.0/autoskope_client.egg-info/SOURCES.txt +8 -0
- autoskope_client-0.1.0/autoskope_client.egg-info/dependency_links.txt +1 -0
- autoskope_client-0.1.0/autoskope_client.egg-info/requires.txt +1 -0
- autoskope_client-0.1.0/autoskope_client.egg-info/top_level.txt +1 -0
- autoskope_client-0.1.0/pyproject.toml +3 -0
- autoskope_client-0.1.0/setup.cfg +4 -0
- autoskope_client-0.1.0/setup.py +20 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: autoskope_client
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python client library for the Autoskope API.
|
|
5
|
+
Home-page: https://github.com/mcisk/autoskope_client
|
|
6
|
+
Author: Nico Liebeskind
|
|
7
|
+
Author-email: nico@autoskope.de
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Requires-Dist: aiohttp>=3.8.0
|
|
13
|
+
Dynamic: author
|
|
14
|
+
Dynamic: author-email
|
|
15
|
+
Dynamic: classifier
|
|
16
|
+
Dynamic: home-page
|
|
17
|
+
Dynamic: requires-dist
|
|
18
|
+
Dynamic: requires-python
|
|
19
|
+
Dynamic: summary
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# autoskope_client
|
|
2
|
+
|
|
3
|
+
Python client library for the Autoskope API.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install autoskope-client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
import asyncio
|
|
15
|
+
from autoskope_client import AutoskopeApi
|
|
16
|
+
|
|
17
|
+
async def main():
|
|
18
|
+
# Initialize the client
|
|
19
|
+
api = AutoskopeApi(
|
|
20
|
+
host="https://your-autoskope-host.com",
|
|
21
|
+
username="your_username",
|
|
22
|
+
password="your_password"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
# Authenticate with the API
|
|
26
|
+
try:
|
|
27
|
+
await api.authenticate()
|
|
28
|
+
print("Authentication successful")
|
|
29
|
+
|
|
30
|
+
# Get vehicles
|
|
31
|
+
vehicles = await api.get_vehicles()
|
|
32
|
+
for vehicle in vehicles:
|
|
33
|
+
print(f"Vehicle: {vehicle.name}")
|
|
34
|
+
print(f"Position: {vehicle.position.latitude}, {vehicle.position.longitude}")
|
|
35
|
+
print(f"Speed: {vehicle.position.speed} km/h")
|
|
36
|
+
print(f"Park mode: {'Yes' if vehicle.position.park_mode else 'No'}")
|
|
37
|
+
print("---")
|
|
38
|
+
|
|
39
|
+
except Exception as err:
|
|
40
|
+
print(f"Error: {err}")
|
|
41
|
+
|
|
42
|
+
# Run the example
|
|
43
|
+
if __name__ == "__main__":
|
|
44
|
+
asyncio.run(main())
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Features
|
|
48
|
+
|
|
49
|
+
- Authentication with the Autoskope API
|
|
50
|
+
- Retrieve vehicle information
|
|
51
|
+
- Get real-time vehicle position data
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT License
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: autoskope_client
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python client library for the Autoskope API.
|
|
5
|
+
Home-page: https://github.com/mcisk/autoskope_client
|
|
6
|
+
Author: Nico Liebeskind
|
|
7
|
+
Author-email: nico@autoskope.de
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Requires-Dist: aiohttp>=3.8.0
|
|
13
|
+
Dynamic: author
|
|
14
|
+
Dynamic: author-email
|
|
15
|
+
Dynamic: classifier
|
|
16
|
+
Dynamic: home-page
|
|
17
|
+
Dynamic: requires-dist
|
|
18
|
+
Dynamic: requires-python
|
|
19
|
+
Dynamic: summary
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aiohttp>=3.8.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="autoskope_client",
|
|
5
|
+
version="0.1.0",
|
|
6
|
+
description="Python client library for the Autoskope API.",
|
|
7
|
+
author="Nico Liebeskind",
|
|
8
|
+
author_email="nico@autoskope.de",
|
|
9
|
+
url="https://github.com/mcisk/autoskope_client",
|
|
10
|
+
packages=find_packages(),
|
|
11
|
+
install_requires=[
|
|
12
|
+
"aiohttp>=3.8.0",
|
|
13
|
+
],
|
|
14
|
+
classifiers=[
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
],
|
|
19
|
+
python_requires=">=3.8",
|
|
20
|
+
)
|