Skip to content

Commit 24a192a

Browse files
committed
Hologram Python SDK v0.7.2 release
1 parent fdf0b8c commit 24a192a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1212
-333
lines changed

.arclint

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"hologram-sdk": {
44
"type": "pylint",
55
"include": "(\\.py$)",
6+
"exclude": "(^tests/)",
67
"severity.rules": {
78
"(^C)": "disabled",
89
"(^R)": "disabled"
@@ -22,6 +23,31 @@
2223
"W0613": "disabled",
2324
"W0703": "disabled"
2425
}
26+
},
27+
"hologram-sdk-unit-tests": {
28+
"type": "pylint",
29+
"include": "(^tests/.*\\.py$)",
30+
"severity.rules": {
31+
"(^C)": "disabled",
32+
"(^R)": "disabled"
33+
},
34+
"severity": {
35+
"E0401": "disabled",
36+
"E0602": "disabled",
37+
"E0603": "disabled",
38+
"E1101": "disabled",
39+
"W0201": "disabled",
40+
"W0212": "disabled",
41+
"W0221": "disabled",
42+
"W0223": "disabled",
43+
"W0232": "disabled",
44+
"W0401": "disabled",
45+
"W0403": "disabled",
46+
"W0612": "disabled",
47+
"W0613": "disabled",
48+
"W0621": "disabled",
49+
"W0703": "disabled"
50+
}
2551
}
2652
}
2753
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,6 @@ credentials.json
105105
Session.vim
106106
.netrwhist
107107
*~
108+
109+
# Sublime SFTP plugin config file
110+
sftp-config.json

AUTHORS

Lines changed: 0 additions & 1 deletion
This file was deleted.

AUTHORS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# List of official Hologram contributors
2+
3+
* Zheng Hao Tan <[email protected]>
4+
* Reuben Balik <[email protected]>
5+
* Erik Larson <[email protected]>
6+
* Jeremy Tidemann <[email protected]>

ChangeLog renamed to CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
# What's New in Hologram Python SDK
2+
3+
## v0.7.2
4+
5+
2017-12-18 Hologram <[email protected]>
6+
* Removed `testAll` from Makefile. All unit tests will now run even if uid isn't root.
7+
8+
2017-11-30 Hologram <[email protected]>
9+
* Refactored unit tests for Modem and MS2131 classes.
10+
11+
2017-12-07 Hologram <[email protected]>
12+
* Refactored Nova <-> Nova u201 interface.
13+
14+
2017-12-05 Hologram <[email protected]>
15+
* Added open source headers to SDK source files
16+
17+
2017-12-01 Hologram <[email protected]>
18+
* Added `ERR_TOPICINVALID` and `ERR_METADATAINVALID` error codes to HologramCloud
19+
20+
2017-11-30 Hologram <[email protected]>
21+
* converted ChangeLog into a markdown file and added release tags to it
22+
23+
## v0.7.1
24+
25+
2017-11-29 Hologram <[email protected]>
26+
* Disregard extra responses in Modem::check_registed()
27+
* Fixed Nova R404 `.connect()` / `.disconnect()` regressions.
28+
29+
## v0.7.0
30+
31+
2017-11-20 Hologram <[email protected]>
32+
* Added modem is_connected interface. Checks for when a message/SMS can be sent.
33+
* Cleaned up example scripts.
34+
* Fixed misleading 'unable to receive device_id and private_key error'
35+
* Fixed unkilled PPP sessin after specified timeout.
36+
* Fixed misleading error log when users call `hologram activate`
37+
* Updated requirements.txt to point to python-sdk-auth v0.2.0
38+
* Removed TOTP Auth mode option for SMS sends
39+
* Catch NetlinkErorr if setting default route fails
40+
* Add overloaded close_socket interface for R404 listening feature
41+
* Cleaned up redundant scripts within the `examples/` folder
42+
143
2017-10-24 Hologram <[email protected]>
244
* Added modem is_connected interface. Checks for when a message/SMS can be sent.
345
* Cleaned up example scripts.
@@ -12,13 +54,17 @@
1254
2017-10-20 Hologram <[email protected]>
1355
* Sends/receives are done via AT sockets by default instead of a PPP session.
1456

57+
## v0.6.1
58+
1559
2017-09-29 Hologram <[email protected]>
1660
* Fixed bug where empty result list might cause an index error
1761

1862
2017-09-28 Hologram <[email protected]>
1963
* Logging is now turned off by default for CLI subcommands.
2064
* Added -v and -vv options for INFO and DEBUG log levels respectively.
2165

66+
## v0.6.0
67+
2268
2017-09-22 Hologram <[email protected]>
2369
* Added program install verification steps to install script.
2470

@@ -34,19 +80,27 @@
3480
* Remove some redundant checks and unneeded initializations that were slowing
3581
things down
3682

83+
## v0.5.28
84+
3785
2017-09-12 Hologram <[email protected]>
3886
* Deprecated enable_inbound flag in HologramCloud constructor.
3987
* Suppress stack traces when user sends a SIGTERM while it's establishing
4088
a connection.
4189

90+
## v0.5.26
91+
4292
2017-09-01 Hologram <[email protected]>
4393
* Fixed topic parsing in hologram_send that can cause message body to be
4494
empty.
4595

96+
## v0.5.25
97+
4698
2017-08-31 Hologram <[email protected]>
4799
* Updated install script to include libpython2.7-dev as a require dependency.
48100
* added better error messages for unsupported operating systems/platforms.
49101

102+
## v0.5.23
103+
50104
2017-08-08 Hologram <[email protected]>
51105
* Fixed SMS timestamp issue. (wrong offset value)
52106

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

Exceptions/HologramError.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Author: Hologram <[email protected]>
2+
#
3+
# Copyright 2016 - Hologram (Konekt, Inc.)
4+
#
5+
# LICENSE: Distributed under the terms of the MIT License
6+
#
7+
# HologramError.py - This file contains a list of custom Exception implementations.
18

29
class HologramError(Exception):
310
def __repr__(self):

Hologram/Api/Api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Author: Hologram <[email protected]>
2+
#
3+
# Copyright 2016 - Hologram (Konekt, Inc.)
4+
#
5+
# LICENSE: Distributed under the terms of the MIT License
6+
#
7+
# Api.py - This file contains the Hologram REST API class implementation.
8+
19
from Exceptions.HologramError import ApiError
210

311
import logging

Hologram/Authentication/AES/AESCipher.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# AESCipher.py - Hologram Python SDK AESCipher interface
2+
#
3+
# Author: Hologram <[email protected]>
4+
#
5+
# Copyright 2016 - Hologram (Konekt, Inc.)
6+
#
7+
#
8+
# LICENSE: Distributed under the terms of the MIT License
9+
#
10+
111
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
212
from cryptography.hazmat.primitives import padding
313
from cryptography.hazmat.backends import default_backend

Hologram/Authentication/CSRPSKAuthentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CSRPSKAuthentication.py - Hologram Python SDK CSRPSK interface
1+
# CSRPSKAuthentication.py - Hologram Python SDK CSRPSKAuthentication interface
22
#
33
# Author: Hologram <[email protected]>
44
#

0 commit comments

Comments
 (0)