Skip to content

Commit 8787b89

Browse files
authored
Merge pull request #6 from joostlek/rename
Fix name
2 parents 9ef542b + ae2ee2c commit 8787b89

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ This package allows you to request data about aircraft around the world.
1919
## Installation
2020

2121
```bash
22-
pip install opensky
22+
pip install python_opensky
2323
```
2424

2525
## Usage
2626

2727
```python
2828
import asyncio
2929

30-
from opensky import OpenSky, StatesResponse
30+
from python_opensky import OpenSky, StatesResponse
3131

3232

3333
async def main() -> None:
3434
"""Show example of fetching all flight states."""
35-
async with OpenSky() as open_sky:
36-
states: StatesResponse = await open_sky.states()
35+
async with OpenSky() as opensky:
36+
states: StatesResponse = await opensky.states()
3737
print(states)
3838

3939

examples/example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
import asyncio
44

5-
from opensky import OpenSky, StatesResponse
5+
from python_opensky import OpenSky, StatesResponse
66

77

88
async def main() -> None:
99
"""Show example of fetching flight states from OpenSky."""
10-
async with OpenSky() as open_sky:
11-
states: StatesResponse = await open_sky.states()
10+
async with OpenSky() as opensky:
11+
states: StatesResponse = await opensky.states()
1212
print(states)
1313

1414

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vehicle",
2+
"name": "python_opensky",
33
"version": "0.0.0",
44
"private": true,
55
"description": "Asynchronous Python client providing RDW vehicle information",

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "opensky"
2+
name = "python_opensky"
33
version = "0.0.0"
44
description = "Asynchronous Python client for Opensky API."
55
authors = ["Joost Lekkerkerker <[email protected]>"]
@@ -21,7 +21,7 @@ classifiers = [
2121
"Topic :: Software Development :: Libraries :: Python Modules",
2222
]
2323
packages = [
24-
{ include = "opensky", from = "src" },
24+
{ include = "python_opensky", from = "src" },
2525
]
2626

2727
[tool.poetry.dependencies]
@@ -57,7 +57,7 @@ show_missing = true
5757

5858
[tool.coverage.run]
5959
plugins = ["covdefaults"]
60-
source = ["opensky"]
60+
source = ["python_opensky"]
6161

6262
[tool.mypy]
6363
# Specify the target platform details in config, so your developers are
@@ -150,7 +150,7 @@ fixture-parentheses = false
150150
mark-parentheses = false
151151

152152
[tool.ruff.isort]
153-
known-first-party = ["opensky"]
153+
known-first-party = ["python_opensky"]
154154

155155
[tool.ruff.mccabe]
156156
max-complexity = 25
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class OpenSky:
2222

2323
session: ClientSession | None = None
2424
request_timeout: int = 10
25-
api_host: str = "opensky-network.org"
25+
api_host: str = "python_opensky-network.org"
2626
_close_session: bool = False
2727

2828
async def _request(

0 commit comments

Comments
 (0)