FlightRadarAPI 1.3.27__tar.gz → 1.3.29__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.
Files changed (20) hide show
  1. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/__init__.py +2 -3
  2. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/PKG-INFO +33 -9
  3. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/README.md +29 -8
  4. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/pyproject.toml +4 -1
  5. flightradarapi-1.3.29/tests/conftest.py +5 -0
  6. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/tests/package.py +0 -6
  7. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/.flake8 +0 -0
  8. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/.gitignore +0 -0
  9. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/api.py +0 -0
  10. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/core.py +0 -0
  11. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/entities/__init__.py +0 -0
  12. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/entities/airport.py +0 -0
  13. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/entities/entity.py +0 -0
  14. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/entities/flight.py +0 -0
  15. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/errors.py +0 -0
  16. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/FlightRadar24/request.py +0 -0
  17. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/LICENSE +0 -0
  18. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/requirements.txt +0 -0
  19. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/tests/test_api.py +0 -0
  20. {flightradarapi-1.3.27 → flightradarapi-1.3.29}/tests/util.py +0 -0
@@ -4,8 +4,7 @@
4
4
  Unofficial SDK for FlightRadar24.
5
5
 
6
6
  This SDK provides flight and airport data available to the public
7
- on the FlightRadar24 website. If you want to use the data collected
8
- using this API commercially, you need to subscribe to the Business plan.
7
+ on the FlightRadar24 website.
9
8
 
10
9
  See more information at:
11
10
  https://www.flightradar24.com/premium/
@@ -13,7 +12,7 @@ https://www.flightradar24.com/terms-and-conditions
13
12
  """
14
13
 
15
14
  __author__ = "Jean Loui Bernard Silva de Jesus"
16
- __version__ = "1.3.27"
15
+ __version__ = "1.3.29"
17
16
 
18
17
  from .api import FlightRadar24API, FlightTrackerConfig
19
18
  from .entities import Airport, Entity, Flight
@@ -1,8 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: FlightRadarAPI
3
- Version: 1.3.27
3
+ Version: 1.3.29
4
4
  Summary: SDK for FlightRadar24
5
5
  Project-URL: Homepage, https://github.com/JeanExtreme002/FlightRadarAPI
6
+ Project-URL: Source Code, https://github.com/JeanExtreme002/FlightRadarAPI
7
+ Project-URL: Documentation, https://jeanextreme002.github.io/FlightRadarAPI/
8
+ Project-URL: Bug Reports, https://github.com/JeanExtreme002/FlightRadarAPI/issues
6
9
  Author-email: Jean Loui Bernard Silva de Jesus <jeanextreme002@gmail.com>
7
10
  License-Expression: MIT
8
11
  License-File: LICENSE
@@ -22,9 +25,10 @@ Requires-Dist: pytest; extra == 'tests'
22
25
  Description-Content-Type: text/markdown
23
26
 
24
27
  # FlightRadarAPI
25
- Unofficial SDK for [FlightRadar24](https://www.flightradar24.com/) for Python 3 and NodeJS.
28
+ Unofficial SDK for [FlightRadar24](https://www.flightradar24.com/) for Python 3 and Node.js.
29
+
30
+ This SDK provides flight and airport data available to the public on the FlightRadar24 website.
26
31
 
27
- If you want to use the data collected using this SDK commercially, you need to subscribe to the [Business plan](https://www.flightradar24.com/premium/).</br>
28
32
  See more information at: https://www.flightradar24.com/terms-and-conditions
29
33
 
30
34
  [![Python Package](https://github.com/JeanExtreme002/FlightRadarAPI/workflows/Python%20Package/badge.svg)](https://github.com/JeanExtreme002/FlightRadarAPI/actions)
@@ -34,15 +38,35 @@ See more information at: https://www.flightradar24.com/terms-and-conditions
34
38
  [![Npm](https://img.shields.io/npm/v/flightradarapi?logo=npm&color=red)](https://www.npmjs.com/package/flightradarapi)
35
39
  [![Downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=downloads)](https://pypi.org/project/FlightRadarAPI/)
36
40
  [![Frequency](https://img.shields.io/pypi/dm/flightradarapi?style=flat&label=frequency)](https://pypi.org/project/FlightRadarAPI/)
37
- ## Installing FlightRadarAPI
38
- **For Python with pip:**
41
+
42
+ ## Installing FlightRadarAPI:
43
+ ```
44
+ $ pip install FlightRadarAPI
45
+ ```
46
+
47
+ ## Basic Usage:
48
+ Import the class `FlightRadar24API` and create an instance of it.
49
+ ```py
50
+ from FlightRadar24 import FlightRadar24API
51
+ fr_api = FlightRadar24API()
52
+ ```
53
+
54
+ **Getting flights list:**
55
+ ```py
56
+ flights = fr_api.get_flights(...) # Returns a list of Flight objects
39
57
  ```
40
- pip install FlightRadarAPI
58
+ **Getting airports list:**
59
+ ```py
60
+ airports = fr_api.get_airports(...) # Returns a list of Airport objects
41
61
  ```
42
- **For NodeJS with npm:**
62
+ **Getting airlines list:**
63
+ ```py
64
+ airlines = fr_api.get_airlines()
43
65
  ```
44
- npm install flightradarapi
66
+ **Getting zones list:**
67
+ ```py
68
+ zones = fr_api.get_zones()
45
69
  ```
46
70
 
47
71
  ## Documentation
48
- Explore the documentation of FlightRadarAPI package, for Python or NodeJS, through [this site](https://JeanExtreme002.github.io/FlightRadarAPI/).
72
+ Explore the documentation of FlightRadarAPI package, for Python or NodeJS, through [this site](https://JeanExtreme002.github.io/FlightRadarAPI/).
@@ -1,7 +1,8 @@
1
1
  # FlightRadarAPI
2
- Unofficial SDK for [FlightRadar24](https://www.flightradar24.com/) for Python 3 and NodeJS.
2
+ Unofficial SDK for [FlightRadar24](https://www.flightradar24.com/) for Python 3 and Node.js.
3
+
4
+ This SDK provides flight and airport data available to the public on the FlightRadar24 website.
3
5
 
4
- If you want to use the data collected using this SDK commercially, you need to subscribe to the [Business plan](https://www.flightradar24.com/premium/).</br>
5
6
  See more information at: https://www.flightradar24.com/terms-and-conditions
6
7
 
7
8
  [![Python Package](https://github.com/JeanExtreme002/FlightRadarAPI/workflows/Python%20Package/badge.svg)](https://github.com/JeanExtreme002/FlightRadarAPI/actions)
@@ -11,15 +12,35 @@ See more information at: https://www.flightradar24.com/terms-and-conditions
11
12
  [![Npm](https://img.shields.io/npm/v/flightradarapi?logo=npm&color=red)](https://www.npmjs.com/package/flightradarapi)
12
13
  [![Downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=downloads)](https://pypi.org/project/FlightRadarAPI/)
13
14
  [![Frequency](https://img.shields.io/pypi/dm/flightradarapi?style=flat&label=frequency)](https://pypi.org/project/FlightRadarAPI/)
14
- ## Installing FlightRadarAPI
15
- **For Python with pip:**
15
+
16
+ ## Installing FlightRadarAPI:
17
+ ```
18
+ $ pip install FlightRadarAPI
19
+ ```
20
+
21
+ ## Basic Usage:
22
+ Import the class `FlightRadar24API` and create an instance of it.
23
+ ```py
24
+ from FlightRadar24 import FlightRadar24API
25
+ fr_api = FlightRadar24API()
26
+ ```
27
+
28
+ **Getting flights list:**
29
+ ```py
30
+ flights = fr_api.get_flights(...) # Returns a list of Flight objects
16
31
  ```
17
- pip install FlightRadarAPI
32
+ **Getting airports list:**
33
+ ```py
34
+ airports = fr_api.get_airports(...) # Returns a list of Airport objects
18
35
  ```
19
- **For NodeJS with npm:**
36
+ **Getting airlines list:**
37
+ ```py
38
+ airlines = fr_api.get_airlines()
20
39
  ```
21
- npm install flightradarapi
40
+ **Getting zones list:**
41
+ ```py
42
+ zones = fr_api.get_zones()
22
43
  ```
23
44
 
24
45
  ## Documentation
25
- Explore the documentation of FlightRadarAPI package, for Python or NodeJS, through [this site](https://JeanExtreme002.github.io/FlightRadarAPI/).
46
+ Explore the documentation of FlightRadarAPI package, for Python or NodeJS, through [this site](https://JeanExtreme002.github.io/FlightRadarAPI/).
@@ -34,10 +34,13 @@ tests = [
34
34
 
35
35
  [project.urls]
36
36
  "Homepage" = "https://github.com/JeanExtreme002/FlightRadarAPI"
37
+ "Source Code" = "https://github.com/JeanExtreme002/FlightRadarAPI"
38
+ "Documentation" = "https://jeanextreme002.github.io/FlightRadarAPI/"
39
+ "Bug Reports" = "https://github.com/JeanExtreme002/FlightRadarAPI/issues"
37
40
 
38
41
  [tool.hatch.version]
39
42
  path = "FlightRadar24/__init__.py"
40
43
 
41
44
  [build-system]
42
45
  requires = ["hatchling"]
43
- build-backend = "hatchling.build"
46
+ build-backend = "hatchling.build"
@@ -0,0 +1,5 @@
1
+ import os
2
+ import sys
3
+
4
+ current_dir = os.getcwd()
5
+ sys.path.append(current_dir)
@@ -1,11 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- import os
4
- import sys
5
-
6
- current_dir = os.path.join(os.getcwd(), "python")
7
- sys.path.append(current_dir)
8
-
9
3
  from FlightRadar24 import __version__ as version
10
4
  from FlightRadar24 import FlightRadar24API
11
5
  from FlightRadar24.errors import CloudflareError
File without changes
File without changes