gdir 0.3.2__tar.gz → 0.3.4__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,24 +1,39 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: gdir
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Command line tool which queries Google Directions. Displays results as human-readable text.
5
5
  Home-page: https://github.com/pafoster/gdir
6
+ Download-URL: https://github.com/pafoster/gdir/archive/0.3.4.tar.gz
6
7
  Author: Peter Foster
7
8
  Author-email: pyitlib@gmx.us
8
9
  License: MIT
9
- Download-URL: https://github.com/pafoster/gdir/archive/0.3.2.tar.gz
10
10
  Keywords: Google Directions,Google Maps,command line,terminal,public transport,transit,directions
11
- Platform: UNKNOWN
12
11
  Classifier: Development Status :: 4 - Beta
13
12
  Classifier: Environment :: Console
14
13
  Classifier: Intended Audience :: End Users/Desktop
15
14
  Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Programming Language :: Python :: 3
18
- Classifier: Topic :: Utilities
17
+ Classifier: Topic :: Utilities
19
18
  Requires-Python: >=3
20
19
  Description-Content-Type: text/x-rst
21
20
  License-File: LICENSE
21
+ Requires-Dist: colorama~=0.4.4
22
+ Requires-Dist: googlemaps~=4.4.5
23
+ Requires-Dist: pytz~=2021.1
24
+ Dynamic: author
25
+ Dynamic: author-email
26
+ Dynamic: classifier
27
+ Dynamic: description
28
+ Dynamic: description-content-type
29
+ Dynamic: download-url
30
+ Dynamic: home-page
31
+ Dynamic: keywords
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: requires-dist
35
+ Dynamic: requires-python
36
+ Dynamic: summary
22
37
 
23
38
  gdir: Get Train/Bus Directions Using the Command Line
24
39
  -----------------------------------------------------
@@ -49,7 +64,7 @@ Set the shell environment variable GOOGLE_MAPS_API_KEY to your API key. This typ
49
64
 
50
65
  export GOOGLE_MAPS_API_KEY="XXXXXXXXXXXXXXXX-XXXXXXXXXXXXX-XXXXXXXX"
51
66
 
52
- **Note**: If you don't want to set up your own API key, there is a `web-based version of gdir <https://gdir.telae.net>`_ - try viewing https://gdir.telae.net in a terminal-based browser like `links <http://links.twibright.com/>`_, `lynx <https://lynx.invisible-island.net/>`_, or `w3m <https://github.com/tats/w3m>`_! The web-based version implements most of the features described below.
67
+ **Note**: If you don't want to set up your own API key, there is a **web-based version of gdir** - try viewing https://gdir.telae.net in a terminal-based browser like `links <http://links.twibright.com/>`_, `lynx <https://lynx.invisible-island.net/>`_, or `w3m <https://github.com/tats/w3m>`_! The web-based version (repo `also available on GitHub <https://github.com/pafoster/gdir.telae.net>`_) implements most of the features described below.
53
68
 
54
69
  Example Usage
55
70
  -------------------------
@@ -209,5 +224,3 @@ Detailed Help and List of Command Line Arguments
209
224
  transitions, it is assumed that the ambiguous time is expressed in the time
210
225
  zone's standard time. The suffix +N may be used to offset the specified time
211
226
  by N days. Thus, 12:00+1 means 'tomorrow at noon'.
212
-
213
-
@@ -27,7 +27,7 @@ Set the shell environment variable GOOGLE_MAPS_API_KEY to your API key. This typ
27
27
 
28
28
  export GOOGLE_MAPS_API_KEY="XXXXXXXXXXXXXXXX-XXXXXXXXXXXXX-XXXXXXXX"
29
29
 
30
- **Note**: If you don't want to set up your own API key, there is a `web-based version of gdir <https://gdir.telae.net>`_ - try viewing https://gdir.telae.net in a terminal-based browser like `links <http://links.twibright.com/>`_, `lynx <https://lynx.invisible-island.net/>`_, or `w3m <https://github.com/tats/w3m>`_! The web-based version implements most of the features described below.
30
+ **Note**: If you don't want to set up your own API key, there is a **web-based version of gdir** - try viewing https://gdir.telae.net in a terminal-based browser like `links <http://links.twibright.com/>`_, `lynx <https://lynx.invisible-island.net/>`_, or `w3m <https://github.com/tats/w3m>`_! The web-based version (repo `also available on GitHub <https://github.com/pafoster/gdir.telae.net>`_) implements most of the features described below.
31
31
 
32
32
  Example Usage
33
33
  -------------------------
@@ -55,7 +55,7 @@ def parse_time(time_str):
55
55
  raise argparse.ArgumentTypeError('{}: Invalid time specification'.format(time_str))
56
56
 
57
57
  def parse_cctld(s, cctlds=CCTLDS):
58
- if s not in cctlds:
58
+ if s.lower() not in cctlds:
59
59
  raise argparse.ArgumentTypeError('{}: Invalid ccTLD code'.format(s))
60
60
  return s
61
61
 
@@ -106,7 +106,7 @@ Departure and arrival times are expressed in terms of local time at the origin a
106
106
  directions = Directions(args.origin, args.destination, args.mode,
107
107
  transit_modes,
108
108
  args.departure_time,
109
- args.arrival_time, args.region, args.alternatives,
109
+ args.arrival_time, args.region.lower(), args.alternatives,
110
110
  os.environ['GOOGLE_MAPS_API_KEY'], locale.getdefaultlocale()[0],
111
111
  args.copyright)
112
112
  print(directions.to_str(args.include_substeps, args.text_wrap), end='')
@@ -1,24 +1,39 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: gdir
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Command line tool which queries Google Directions. Displays results as human-readable text.
5
5
  Home-page: https://github.com/pafoster/gdir
6
+ Download-URL: https://github.com/pafoster/gdir/archive/0.3.4.tar.gz
6
7
  Author: Peter Foster
7
8
  Author-email: pyitlib@gmx.us
8
9
  License: MIT
9
- Download-URL: https://github.com/pafoster/gdir/archive/0.3.2.tar.gz
10
10
  Keywords: Google Directions,Google Maps,command line,terminal,public transport,transit,directions
11
- Platform: UNKNOWN
12
11
  Classifier: Development Status :: 4 - Beta
13
12
  Classifier: Environment :: Console
14
13
  Classifier: Intended Audience :: End Users/Desktop
15
14
  Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Programming Language :: Python :: 3
18
- Classifier: Topic :: Utilities
17
+ Classifier: Topic :: Utilities
19
18
  Requires-Python: >=3
20
19
  Description-Content-Type: text/x-rst
21
20
  License-File: LICENSE
21
+ Requires-Dist: colorama~=0.4.4
22
+ Requires-Dist: googlemaps~=4.4.5
23
+ Requires-Dist: pytz~=2021.1
24
+ Dynamic: author
25
+ Dynamic: author-email
26
+ Dynamic: classifier
27
+ Dynamic: description
28
+ Dynamic: description-content-type
29
+ Dynamic: download-url
30
+ Dynamic: home-page
31
+ Dynamic: keywords
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: requires-dist
35
+ Dynamic: requires-python
36
+ Dynamic: summary
22
37
 
23
38
  gdir: Get Train/Bus Directions Using the Command Line
24
39
  -----------------------------------------------------
@@ -49,7 +64,7 @@ Set the shell environment variable GOOGLE_MAPS_API_KEY to your API key. This typ
49
64
 
50
65
  export GOOGLE_MAPS_API_KEY="XXXXXXXXXXXXXXXX-XXXXXXXXXXXXX-XXXXXXXX"
51
66
 
52
- **Note**: If you don't want to set up your own API key, there is a `web-based version of gdir <https://gdir.telae.net>`_ - try viewing https://gdir.telae.net in a terminal-based browser like `links <http://links.twibright.com/>`_, `lynx <https://lynx.invisible-island.net/>`_, or `w3m <https://github.com/tats/w3m>`_! The web-based version implements most of the features described below.
67
+ **Note**: If you don't want to set up your own API key, there is a **web-based version of gdir** - try viewing https://gdir.telae.net in a terminal-based browser like `links <http://links.twibright.com/>`_, `lynx <https://lynx.invisible-island.net/>`_, or `w3m <https://github.com/tats/w3m>`_! The web-based version (repo `also available on GitHub <https://github.com/pafoster/gdir.telae.net>`_) implements most of the features described below.
53
68
 
54
69
  Example Usage
55
70
  -------------------------
@@ -209,5 +224,3 @@ Detailed Help and List of Command Line Arguments
209
224
  transitions, it is assumed that the ambiguous time is expressed in the time
210
225
  zone's standard time. The suffix +N may be used to offset the specified time
211
226
  by N days. Thus, 12:00+1 means 'tomorrow at noon'.
212
-
213
-
@@ -12,5 +12,4 @@ gdir.egg-info/dependency_links.txt
12
12
  gdir.egg-info/entry_points.txt
13
13
  gdir.egg-info/requires.txt
14
14
  gdir.egg-info/top_level.txt
15
- gdir.egg-info/zip-safe
16
- img/gdir.gif
15
+ gdir.egg-info/zip-safe
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  gdir = gdir.gdir:main
3
-
@@ -5,7 +5,7 @@ from setuptools import setup
5
5
 
6
6
  here = pathlib.Path(__file__).parent.resolve()
7
7
  long_description = (here / 'README.rst').read_text(encoding='utf-8')
8
- version = '0.3.2'
8
+ version = '0.3.4'
9
9
 
10
10
  setup(
11
11
  name='gdir',
@@ -38,7 +38,7 @@ setup(
38
38
  'License :: OSI Approved :: MIT License',
39
39
  'Natural Language :: English',
40
40
  'Programming Language :: Python :: 3',
41
- 'Topic :: Utilities ',
41
+ 'Topic :: Utilities',
42
42
  ],
43
43
  entry_points={
44
44
  'console_scripts': [
gdir-0.3.2/img/gdir.gif DELETED
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes