gtfs_kit 5.2.0__tar.gz → 5.2.1__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.
@@ -1,27 +1,26 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtfs-kit
3
- Version: 5.2.0
4
- Summary: A Python 3.7+ library for analyzing GTFS feeds.
3
+ Version: 5.2.1
4
+ Summary: A Python 3.8+ library for analyzing GTFS feeds.
5
5
  Home-page: https://github.com/mrcagney/gtfs_kit
6
6
  License: MIT
7
7
  Author: Alex Raichev
8
8
  Author-email: araichev@mrcagney.com
9
- Requires-Python: >=3.7,<4.0
9
+ Requires-Python: >=3.8,<4
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.10
13
- Classifier: Programming Language :: Python :: 3.7
14
13
  Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
- Requires-Dist: folium (<1)
17
- Requires-Dist: geopandas (<1)
18
- Requires-Dist: json2html (<2)
19
- Requires-Dist: pandas (<2)
20
- Requires-Dist: pycountry (<20)
21
- Requires-Dist: requests (<3)
22
- Requires-Dist: rtree (<1)
23
- Requires-Dist: shapely (<2)
24
- Requires-Dist: utm (<1)
15
+ Requires-Dist: folium (>=0)
16
+ Requires-Dist: geopandas (>=0)
17
+ Requires-Dist: json2html (>=1)
18
+ Requires-Dist: pandas (>=1)
19
+ Requires-Dist: pycountry (>=19)
20
+ Requires-Dist: requests (>=2)
21
+ Requires-Dist: rtree (>=0)
22
+ Requires-Dist: shapely (>=1)
23
+ Requires-Dist: utm (>=0)
25
24
  Project-URL: Documentation, https://mrcagney.github.io/gtfs_kit_docs
26
25
  Project-URL: Repository, https://github.com/mrcagney/gtfs_kit
27
26
  Description-Content-Type: text/x-rst
@@ -31,7 +30,7 @@ GTFS Kit
31
30
  .. image:: https://travis-ci.com/mrcagney/gtfs_kit.svg?branch=master
32
31
  :target: https://travis-ci.come/mrcagney/gtfs_kit
33
32
 
34
- GTFS Kit is a Python 3.7+ kit for analyzing `General Transit Feed Specification (GTFS) <https://en.wikipedia.org/wiki/GTFS>`_ data in memory without a database.
33
+ GTFS Kit is a Python 3.8+ library for analyzing `General Transit Feed Specification (GTFS) <https://en.wikipedia.org/wiki/GTFS>`_ data in memory without a database.
35
34
  It uses Pandas and Shapely to do the heavy lifting.
36
35
 
37
36
  This project supersedes `GTFSTK <https://github.com/mrcagney/gtfstk>`_.
@@ -39,12 +38,12 @@ This project supersedes `GTFSTK <https://github.com/mrcagney/gtfstk>`_.
39
38
 
40
39
  Installation
41
40
  =============
42
- ``pip install gtfs_kit``.
41
+ ``poetry add gtfs_kit``.
43
42
 
44
43
 
45
44
  Examples
46
45
  ========
47
- Examples are in the Jupyter notebook ``notebooks/examples.ipynb``.
46
+ You can find examples in the Jupyter notebook ``notebooks/examples.ipynb``.
48
47
 
49
48
 
50
49
  Authors
@@ -54,14 +53,14 @@ Authors
54
53
 
55
54
  Documentation
56
55
  =============
57
- On Github Pages `here <https://mrcagney.github.io/gtfs_kit_docs>`_.
56
+ Documentation is built via Sphinx from the source code in the `docs` directory then published to Github Pages at `mrcagney.github.io/gtfs_kit_docs <https://mrcagney.github.io/gtfs_kit_docs>`_.
58
57
 
59
58
 
60
59
  Notes
61
60
  =====
62
- - Development status is Alpha
63
- - This project uses semantic versioning
64
- - Thanks to `MRCagney <http://www.mrcagney.com/>`_ for donating to this project
65
- - Constructive feedback and code contributions welcome. Please issue pull requests into the ``develop`` branch and include tests.
61
+ - Development status is Alpha. I use this project for work and change it breakingly to suit my needs.
62
+ - This project uses semantic versioning.
63
+ - Thanks to `MRCagney <http://www.mrcagney.com/>`_ for donating to this project.
64
+ - Constructive feedback and contributions are welcome. Please issue pull requests from a feature branch into the ``develop`` branch and include tests.
66
65
  - GTFS time is measured relative noon minus 12 hours, which can mess things up when crossing into daylight savings time. I don't think this issue causes any bugs in GTFS Kit, but you and i have been warned. Thanks to derhuerst for bringing this to my attention in `closed Issue 8 <https://github.com/mrcagney/gtfs_kit/issues/8#issue-1063633457>`_.
67
66
 
@@ -3,7 +3,7 @@ GTFS Kit
3
3
  .. image:: https://travis-ci.com/mrcagney/gtfs_kit.svg?branch=master
4
4
  :target: https://travis-ci.come/mrcagney/gtfs_kit
5
5
 
6
- GTFS Kit is a Python 3.7+ kit for analyzing `General Transit Feed Specification (GTFS) <https://en.wikipedia.org/wiki/GTFS>`_ data in memory without a database.
6
+ GTFS Kit is a Python 3.8+ library for analyzing `General Transit Feed Specification (GTFS) <https://en.wikipedia.org/wiki/GTFS>`_ data in memory without a database.
7
7
  It uses Pandas and Shapely to do the heavy lifting.
8
8
 
9
9
  This project supersedes `GTFSTK <https://github.com/mrcagney/gtfstk>`_.
@@ -11,12 +11,12 @@ This project supersedes `GTFSTK <https://github.com/mrcagney/gtfstk>`_.
11
11
 
12
12
  Installation
13
13
  =============
14
- ``pip install gtfs_kit``.
14
+ ``poetry add gtfs_kit``.
15
15
 
16
16
 
17
17
  Examples
18
18
  ========
19
- Examples are in the Jupyter notebook ``notebooks/examples.ipynb``.
19
+ You can find examples in the Jupyter notebook ``notebooks/examples.ipynb``.
20
20
 
21
21
 
22
22
  Authors
@@ -26,13 +26,13 @@ Authors
26
26
 
27
27
  Documentation
28
28
  =============
29
- On Github Pages `here <https://mrcagney.github.io/gtfs_kit_docs>`_.
29
+ Documentation is built via Sphinx from the source code in the `docs` directory then published to Github Pages at `mrcagney.github.io/gtfs_kit_docs <https://mrcagney.github.io/gtfs_kit_docs>`_.
30
30
 
31
31
 
32
32
  Notes
33
33
  =====
34
- - Development status is Alpha
35
- - This project uses semantic versioning
36
- - Thanks to `MRCagney <http://www.mrcagney.com/>`_ for donating to this project
37
- - Constructive feedback and code contributions welcome. Please issue pull requests into the ``develop`` branch and include tests.
34
+ - Development status is Alpha. I use this project for work and change it breakingly to suit my needs.
35
+ - This project uses semantic versioning.
36
+ - Thanks to `MRCagney <http://www.mrcagney.com/>`_ for donating to this project.
37
+ - Constructive feedback and contributions are welcome. Please issue pull requests from a feature branch into the ``develop`` branch and include tests.
38
38
  - GTFS time is measured relative noon minus 12 hours, which can mess things up when crossing into daylight savings time. I don't think this issue causes any bugs in GTFS Kit, but you and i have been warned. Thanks to derhuerst for bringing this to my attention in `closed Issue 8 <https://github.com/mrcagney/gtfs_kit/issues/8#issue-1063633457>`_.
@@ -12,4 +12,4 @@ from .validators import *
12
12
  from .feed import *
13
13
 
14
14
 
15
- __version__ = "5.2.0"
15
+ __version__ = "5.2.1"
@@ -43,7 +43,9 @@ def clean_ids(feed: "Feed") -> "Feed":
43
43
  for column in cs.GTFS_REF.loc[cs.GTFS_REF["table"] == table, "column"]:
44
44
  if column in f.columns and column.endswith("_id"):
45
45
  try:
46
- f[column] = f[column].str.strip().str.replace(r"\s+", "_")
46
+ f[column] = (
47
+ f[column].str.strip().str.replace(r"\s+", "_", regex=True)
48
+ )
47
49
  setattr(feed, table, f)
48
50
  except AttributeError:
49
51
  # Column is not of string type
@@ -0,0 +1,38 @@
1
+ [tool.poetry]
2
+ name = "gtfs_kit"
3
+ version = "5.2.1"
4
+ description = "A Python 3.8+ library for analyzing GTFS feeds."
5
+ authors = ["Alex Raichev <araichev@mrcagney.com>"]
6
+ readme = "README.rst"
7
+ license = "MIT"
8
+ repository = "https://github.com/mrcagney/gtfs_kit"
9
+ documentation = "https://mrcagney.github.io/gtfs_kit_docs"
10
+ exclude = ["tests", "docs"]
11
+
12
+ [tool.poetry.dependencies]
13
+ python = ">=3.8, <4"
14
+ pandas = ">=1"
15
+ shapely = ">=1"
16
+ pycountry = ">=19"
17
+ utm = ">=0"
18
+ json2html = ">=1"
19
+ geopandas = ">=0"
20
+ rtree = ">=0"
21
+ folium = ">=0"
22
+ requests = ">=2"
23
+
24
+ [tool.poetry.dev-dependencies]
25
+ jupyter = "*"
26
+ pytest = ">=6"
27
+ sphinx = ">=3"
28
+ pre-commit = ">=0"
29
+ black = ">22"
30
+ publish_sphinx_docs = ">=1.0"
31
+ matplotlib = ">=1"
32
+ pytest-socket = ">=0"
33
+ nbstripout = ">=0.5"
34
+
35
+ [build-system]
36
+ requires = ["poetry>=1"]
37
+ build-backend = "poetry.masonry.api"
38
+
@@ -0,0 +1,38 @@
1
+ # -*- coding: utf-8 -*-
2
+ from setuptools import setup
3
+
4
+ packages = \
5
+ ['gtfs_kit']
6
+
7
+ package_data = \
8
+ {'': ['*']}
9
+
10
+ install_requires = \
11
+ ['folium>=0',
12
+ 'geopandas>=0',
13
+ 'json2html>=1',
14
+ 'pandas>=1',
15
+ 'pycountry>=19',
16
+ 'requests>=2',
17
+ 'rtree>=0',
18
+ 'shapely>=1',
19
+ 'utm>=0']
20
+
21
+ setup_kwargs = {
22
+ 'name': 'gtfs-kit',
23
+ 'version': '5.2.1',
24
+ 'description': 'A Python 3.8+ library for analyzing GTFS feeds.',
25
+ 'long_description': "GTFS Kit\n********\n.. image:: https://travis-ci.com/mrcagney/gtfs_kit.svg?branch=master\n :target: https://travis-ci.come/mrcagney/gtfs_kit\n\nGTFS Kit is a Python 3.8+ library for analyzing `General Transit Feed Specification (GTFS) <https://en.wikipedia.org/wiki/GTFS>`_ data in memory without a database.\nIt uses Pandas and Shapely to do the heavy lifting.\n\nThis project supersedes `GTFSTK <https://github.com/mrcagney/gtfstk>`_.\n\n\nInstallation\n=============\n``poetry add gtfs_kit``.\n\n\nExamples\n========\nYou can find examples in the Jupyter notebook ``notebooks/examples.ipynb``.\n\n\nAuthors\n=========\n- Alex Raichev, 2019-09\n\n\nDocumentation\n=============\nDocumentation is built via Sphinx from the source code in the `docs` directory then published to Github Pages at `mrcagney.github.io/gtfs_kit_docs <https://mrcagney.github.io/gtfs_kit_docs>`_.\n\n\nNotes\n=====\n- Development status is Alpha. I use this project for work and change it breakingly to suit my needs.\n- This project uses semantic versioning.\n- Thanks to `MRCagney <http://www.mrcagney.com/>`_ for donating to this project.\n- Constructive feedback and contributions are welcome. Please issue pull requests from a feature branch into the ``develop`` branch and include tests.\n- GTFS time is measured relative noon minus 12 hours, which can mess things up when crossing into daylight savings time. I don't think this issue causes any bugs in GTFS Kit, but you and i have been warned. Thanks to derhuerst for bringing this to my attention in `closed Issue 8 <https://github.com/mrcagney/gtfs_kit/issues/8#issue-1063633457>`_.\n",
26
+ 'author': 'Alex Raichev',
27
+ 'author_email': 'araichev@mrcagney.com',
28
+ 'maintainer': None,
29
+ 'maintainer_email': None,
30
+ 'url': 'https://github.com/mrcagney/gtfs_kit',
31
+ 'packages': packages,
32
+ 'package_data': package_data,
33
+ 'install_requires': install_requires,
34
+ 'python_requires': '>=3.8,<4',
35
+ }
36
+
37
+
38
+ setup(**setup_kwargs)
@@ -1,38 +0,0 @@
1
- [tool.poetry]
2
- name = "gtfs_kit"
3
- version = "5.2.0"
4
- description = "A Python 3.7+ library for analyzing GTFS feeds."
5
- authors = ["Alex Raichev <araichev@mrcagney.com>"]
6
- readme = "README.rst"
7
- license = "MIT"
8
- repository = "https://github.com/mrcagney/gtfs_kit"
9
- documentation = "https://mrcagney.github.io/gtfs_kit_docs"
10
- exclude = ["tests", "docs"]
11
-
12
- [tool.poetry.dependencies]
13
- python = "^3.7 || ^3.8 || ^3.9"
14
- pandas = "<2"
15
- shapely = "<2"
16
- pycountry = "<20"
17
- utm = "<1"
18
- json2html = "<2"
19
- geopandas = "<1"
20
- rtree = "< 1"
21
- folium = "<1"
22
- requests = "<3"
23
-
24
- [tool.poetry.dev-dependencies]
25
- jupyter = "*"
26
- pytest = "<7"
27
- sphinx = "<4"
28
- pre-commit = "*"
29
- black = "=19.3b0"
30
- publish_sphinx_docs = "^1.0"
31
- matplotlib = "*"
32
- pytest-socket = "*"
33
- nbstripout = "^0.4.0"
34
-
35
- [build-system]
36
- requires = ["poetry>=0.12"]
37
- build-backend = "poetry.masonry.api"
38
-
gtfs_kit-5.2.0/setup.py DELETED
@@ -1,38 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from setuptools import setup
3
-
4
- packages = \
5
- ['gtfs_kit']
6
-
7
- package_data = \
8
- {'': ['*']}
9
-
10
- install_requires = \
11
- ['folium<1',
12
- 'geopandas<1',
13
- 'json2html<2',
14
- 'pandas<2',
15
- 'pycountry<20',
16
- 'requests<3',
17
- 'rtree<1',
18
- 'shapely<2',
19
- 'utm<1']
20
-
21
- setup_kwargs = {
22
- 'name': 'gtfs-kit',
23
- 'version': '5.2.0',
24
- 'description': 'A Python 3.7+ library for analyzing GTFS feeds.',
25
- 'long_description': "GTFS Kit\n********\n.. image:: https://travis-ci.com/mrcagney/gtfs_kit.svg?branch=master\n :target: https://travis-ci.come/mrcagney/gtfs_kit\n\nGTFS Kit is a Python 3.7+ kit for analyzing `General Transit Feed Specification (GTFS) <https://en.wikipedia.org/wiki/GTFS>`_ data in memory without a database.\nIt uses Pandas and Shapely to do the heavy lifting.\n\nThis project supersedes `GTFSTK <https://github.com/mrcagney/gtfstk>`_.\n\n\nInstallation\n=============\n``pip install gtfs_kit``.\n\n\nExamples\n========\nExamples are in the Jupyter notebook ``notebooks/examples.ipynb``.\n\n\nAuthors\n=========\n- Alex Raichev, 2019-09\n\n\nDocumentation\n=============\nOn Github Pages `here <https://mrcagney.github.io/gtfs_kit_docs>`_.\n\n\nNotes\n=====\n- Development status is Alpha\n- This project uses semantic versioning\n- Thanks to `MRCagney <http://www.mrcagney.com/>`_ for donating to this project\n- Constructive feedback and code contributions welcome. Please issue pull requests into the ``develop`` branch and include tests.\n- GTFS time is measured relative noon minus 12 hours, which can mess things up when crossing into daylight savings time. I don't think this issue causes any bugs in GTFS Kit, but you and i have been warned. Thanks to derhuerst for bringing this to my attention in `closed Issue 8 <https://github.com/mrcagney/gtfs_kit/issues/8#issue-1063633457>`_.\n",
26
- 'author': 'Alex Raichev',
27
- 'author_email': 'araichev@mrcagney.com',
28
- 'maintainer': None,
29
- 'maintainer_email': None,
30
- 'url': 'https://github.com/mrcagney/gtfs_kit',
31
- 'packages': packages,
32
- 'package_data': package_data,
33
- 'install_requires': install_requires,
34
- 'python_requires': '>=3.7,<4.0',
35
- }
36
-
37
-
38
- setup(**setup_kwargs)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes