Skip to content

Commit 0370735

Browse files
authored
Merge pull request #73 from Worvast/master
Changed version info in CLI for show only when asked
2 parents 450a39f + 3a76a7e commit 0370735

File tree

6 files changed

+24
-14
lines changed

6 files changed

+24
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [3.2.1] - 2020-03-17
8+
### Changed
9+
* Changed version info in CLI for show only when asked
710

811
## [3.2.0] - 2020-01-13
912
#### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[![master Build Status](https://travis-ci.com/DevoInc/python-sdk.svg?branch=master)](https://travis-ci.com/DevoInc/python-sdk) [![LICENSE](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/DevoInc/python-sdk/blob/master/LICENSE)
33

4-
[![wheel](https://img.shields.io/badge/wheel-yes-brightgreen.svg)](https://pypi.org/project/devo-sdk/) [![version](https://img.shields.io/badge/version-3.2.0-blue.svg)](https://pypi.org/project/devo-sdk/) [![python](https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7-blue.svg)](https://pypi.org/project/devo-sdk/)
4+
[![wheel](https://img.shields.io/badge/wheel-yes-brightgreen.svg)](https://pypi.org/project/devo-sdk/) [![version](https://img.shields.io/badge/version-3.2.1-blue.svg)](https://pypi.org/project/devo-sdk/) [![python](https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7-blue.svg)](https://pypi.org/project/devo-sdk/)
55

66

77
# Devo Python SDK

devo/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__description__ = 'Devo Python Library.'
22
__url__ = 'http://www.devo.com'
3-
__version__ = "3.2.0"
3+
__version__ = "3.2.1"
44
__author__ = 'Devo'
55
__author_email__ = 'support@devo.com'
66
__license__ = 'MIT'

devo/api/scripts/client_cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
@click.option('--version', "-v", is_flag=True, default=False)
1515
def cli(version):
1616
""" Initialize click """
17-
pkg_dir = os.path.abspath(os.path.join(
18-
os.path.dirname(__file__), "..", "..",
19-
))
20-
click.echo("devo-sdk {!s} from {!s} (python {!s})".format(__version__,
21-
pkg_dir,
22-
sys.version[:3]))
17+
if version:
18+
pkg_dir = os.path.abspath(os.path.join(
19+
os.path.dirname(__file__), "..", "..",
20+
))
21+
click.echo("devo-sdk {!s} from {!s} (python {!s})"
22+
.format(__version__, pkg_dir, sys.version[:3]))
2323

2424
# Commands
2525
# ------------------------------------------------------------------------------

devo/sender/scripts/sender_cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
@click.option('--version', "-v", is_flag=True, default=False)
2323
def cli(version):
2424
""" Initialize click """
25-
pkg_dir = os.path.abspath(os.path.join(
26-
os.path.dirname(__file__), "..", "..",
27-
))
28-
click.echo("devo-sdk {!s} from {!s} (python {!s})".format(__version__,
29-
pkg_dir,
30-
sys.version[:3]))
25+
if version:
26+
pkg_dir = os.path.abspath(os.path.join(
27+
os.path.dirname(__file__), "..", "..",
28+
))
29+
click.echo("devo-sdk {!s} from {!s} (python {!s})"
30+
.format(__version__, pkg_dir, sys.version[:3]))
3131

3232

3333
# Commands

docs/sender/lookup.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ Params
5757
+ key_index **(_string_ optional)**: index of key. You can use this or key
5858
+ types **(_dict_ optional')**: dict of type: {"header_name": "header_type", "head....} with types of columns
5959

60+
Accepted types:
61+
- String -> "str"
62+
- Integer -> "int"
63+
- Float -> "float"
64+
- IP -> "ip4"
65+
66+
6067
Example:
6168

6269
```python

0 commit comments

Comments
 (0)