Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pskc/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Get files ready for 1.2 release1.2Arthur de Jong2022-09-121-2/+2
|
* Get files ready for 1.1 release1.1Arthur de Jong2019-02-101-2/+2
|
* Support setting key sub-properties via add_key()Arthur de Jong2018-04-021-11/+4
|
* Add and cleanup docstringsArthur de Jong2018-02-151-3/+5
| | | | | | | | This adds docstrings to public methods and cleans up a few other docstrings to pass most flake8 docstring related tests. This also adds noqa statements in a few places so we can remove most entries from the global flake8 ignore list.
* Get files ready for 1.0 release1.0Arthur de Jong2017-12-291-1/+1
|
* Implement basic parsing of signature propertiesArthur de Jong2017-12-271-0/+2
|
* Run flake8 from toxArthur de Jong2017-09-201-1/+1
| | | | | This also makes a few small code formatting changes to ensure that the flake8 tests pass.
* Various minor code style improvementsArthur de Jong2017-06-101-0/+1
|
* Get files ready for 0.5 release0.5Arthur de Jong2017-01-211-2/+2
|
* Also move outer writing and parsing to modulesArthur de Jong2016-09-241-15/+2
|
* Add writing example to toplevel documentationArthur de Jong2016-09-241-0/+9
|
* Support separate device from keyArthur de Jong2016-09-171-4/+23
| | | | | | | | This allows having multiple keys per device while also maintaining the previous API. Note that having multiple keys per device is not allowed by the RFC 6030 schema but is allowed by some older internet drafts.
* Move XML generation to own moduleArthur de Jong2016-09-171-11/+2
| | | | | Similar to the change for parsing, move the XML serialisation of PSKC data to a single class in a separate module.
* Move document parsing to own moduleArthur de Jong2016-09-171-25/+3
| | | | | | This moves all the parse() functions to a single class in a dedicated module that can be used for parsing PSKC files. This should make it easier to subclass the parser.
* Remove parse call from constructorsArthur de Jong2016-04-051-1/+3
| | | | This makes the creation if internal instances a litte more consistent.
* Get files ready for 0.4 release0.4Arthur de Jong2016-03-281-1/+1
|
* Document writing encrypted filesArthur de Jong2016-03-271-2/+2
|
* Write MACMethodArthur de Jong2016-03-261-0/+1
| | | | | | This also makes the MAC.algorithm a property similarly as what is done for Encryption (normalise algorithm names) and adds a setter for the MAC.key property.
* Make Encryption and MAC constructors consistentArthur de Jong2016-03-261-1/+1
| | | | | | This removes calling parse() from the Encryption and MAC constructors and stores a reference to the PSKC object in both objects so it can be used later on.
* Write encryption key informationArthur de Jong2016-03-261-0/+1
| | | | | | This writes information about a pre-shared key or PBKDF2 key derivation in the PSKC file. This also means that writing a decrypted version of a previously encrypted file requires actively removing the encryption.
* Support writing to text streams in Python 3Arthur de Jong2016-03-191-1/+6
| | | | | This supports writing the XML output to binary streams as well as text streams in Python 3.
* Re-organise test filesArthur de Jong2016-01-301-1/+1
| | | | | This puts the test PSKC files in subdirectories so they can be organised more cleanly.
* Strip XML namespaces before parsingArthur de Jong2016-01-241-6/+7
| | | | | | | | | This simplifies calls to the find() family of functions and allows parsing PSKC files that have slightly different namespace URLs. This is especially common when parsing old draft versions of the specification. This also removes passing multiple patterns to the find() functions that was introduced in 68b20e2.
* Get files ready for 0.3 release0.3Arthur de Jong2015-10-071-1/+1
|
* Update documentationArthur de Jong2015-10-071-3/+1
| | | | | | | This updates the documentation with the new features (writing PSKC files) as well as many editorial improvements, some rewording and a few typo fixes. Some things were moved around a little in order to be more easily readable and easier to find.
* Support Python 3Arthur de Jong2015-10-061-2/+2
| | | | | | | | This enables support for Python 3 together with Python 2 support with a single codebase. On Python 3 key data is passed around as bytestrings which makes the doctests a little harder to maintain across Python versions.
* Rename pskc.parse to pskc.xmlArthur de Jong2014-10-091-5/+5
| | | | | | | This renames the parse module to xml to better reflect the purpose of the module and it's functions. This also introduces a parse() function that wraps etree.parse().
* Add function for writing XMLArthur de Jong2014-06-281-0/+9
| | | | This provides a function for pretty-printing the generated XML document.
* Construct XML document with basic PKSC informationArthur de Jong2014-06-281-0/+8
| | | | | | This introduces make_xml() functions to build an XML document that contains the basic PSKC information and keys. This currently only supports writing unencrypted PSKC files.
* Get files ready for 0.2 release0.2Arthur de Jong2014-06-191-1/+1
|
* Only catch normal exceptionsArthur de Jong2014-06-191-1/+1
|
* Remove unused importArthur de Jong2014-06-181-2/+0
|
* Support various ElementTree implementationsArthur de Jong2014-06-141-3/+3
| | | | | | | | | | | When using a recent enough lxml, even Python 2.6 should work now. The most important requirement is that the findall() function supports the namespaces argument. This also now catches all exceptions when parsing the PSKC file fails and wraps it in ParseError because various implementations raise different exceptions, even between versions (Python 2.6's ElementTree raises ExpatError, lxml raises XMLSyntaxError).
* Have parse module provide find() functionsArthur de Jong2014-06-141-7/+4
| | | | | | | | This changes the parse module functions to better match the ElementTree API and extends it with findint(), findtime() and findbin(). It also passes the namespaces to all calls that require it without duplicating this throughout the normal code.
* Use get() instead of attrib.get() (shorter)Arthur de Jong2014-06-141-2/+2
|
* Always put a space between RFC and numberArthur de Jong2014-05-291-7/+7
|
* Add a function for adding a new keyArthur de Jong2014-05-251-0/+15
|
* Consistency improvementArthur de Jong2014-05-251-2/+2
|
* Support creating an empty PSKC instanceArthur de Jong2014-05-251-6/+9
|
* Raise exceptions on some parsing problemsArthur de Jong2014-05-231-2/+13
|
* Use pskcxml as file name extensionArthur de Jong2014-05-231-1/+1
| | | | This is the extension that is suggested in RFC6030.
* Move PSKC class to toplevel moduleArthur de Jong2014-04-191-4/+44
| | | | This also splits the parsing to a parse() function for consistency.
* Add initial setup scriptArthur de Jong2014-04-161-2/+22
|
* Basic implementation of PSKC classArthur de Jong2014-04-071-0/+6
| | | | | | | | | This class is used for handling PSKC files. It will parse the file and store relevant properties for easy access. The Key class corresponds to a single key defined in the PSKC file. This is a very minimal implementation that only provides some meta-data from the file and keys (work in progress).
* Initial project layoutArthur de Jong2014-04-041-0/+28