Personal tools
Skip to content. | Skip to navigation
The JavaScript Object Signing and Encryption (JOSE) technologies - JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign content using a variety of algorithms. While the full set of permutations is extremely large, and might be daunting to some, it is expected that most applications will only use a small set of algorithms to meet their needs. As of 3.3.0, python-jose implements three different cryptographic backends. The backend must be selected as an extra when installing python-jose. If you do not select a backend, the native-python backend will be installed. Unless otherwise noted, all backends support all operations. Due to complexities with setuptools, the native-python backend is always installed, even if you select a different backend on install. 1. cryptography * This backend uses pyca/cryptography for all cryptographic operations. This is the recommended backend and is selected over all other backends if any others are present. * Installation: dnf install python3-jose+cryptography * Unused dependencies: - rsa - ecdsa - pyasn1 2. pycryptodome * This backend uses pycryptodome for all cryptographic operations. * Installation: not available because pycryptodome (which, unlike pycryptodomex, conflicts with pycrypto) is not packaged * Unused dependencies: - rsa 3. native-python * This backend uses python-rsa and python-ecdsa for all cryptographic operations. This backend is always installed but any other backend will take precedence if one is installed. * Installation: dnf install python3-jose Note The native-python backend cannot process certificates.
.. image:: doc/logo.png :scale: 50 %JPype |implementation| |pyversions| |javaversions| |jvm| |platform| |license|JPype is a Python module to provide full access to Java from within Python. It allows Python to make use of Java only libraries, exploring and visualization of Java structures, development and testing of Java libraries, scientific computing, and much more. By gaining the best of...
jq.py: a lightweight and flexible JSON processor This project contains Python bindings for jq < 1.7.1.Installation Wheels are built for various Python versions and architectures on Linux and Mac OS X. On these platforms, you should be able to install jq with a normal pip install:.. code-block:: sh pip install jqIf a wheel is not available, the source for jq 1.7.1 is built. This requires:*...
Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code.Js2Py is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python. import js2py f js2py.eval_js( "function $(name) {return name.length}" ) f("Hello world") returns 11Now also supports ECMA 6 through...
json-stream Simple streaming JSON parser and encoder. When reading JSON data, json-stream can decode JSON data in a streaming manner, providing a pythonic dict/list-like interface, or a visitor-based interfeace. Can stream from files, URLs or iterators. When writing JSON data, json-stream can stream JSON objects as you generate them. These techniques allow you to reduce memory consumption and latency. Reading json-stream is a JSON parser just like the standard library's json.load(). It will read a JSON document and convert it into native python types. import json_stream data = json_stream.load(f) Features: stream all JSON data types (objects, lists and simple types) stream nested data simple pythonic list-like/dict-like interface stream truncated or malformed JSON data (up to the first error) native code parsing speedups for most common platforms pure python fallback if native extensions not available Unlike json.load(), json-stream can stream JSON data from any file-like or it
> **NOTE:** json-stream-rs-tokenizer is now automatically used by > json- stream, so unless you find a bug, you can ignore this package's > existence! json- stream-rs-tokenizer[ results = data["results"] print(results) # prints <TransientStreamingJSONList: TRANSIENT, STREAMING> converted = to_standard_types(results) print(converted) # prints [1, 2, 3] License Do whatever you want with it license or whatever it was called
======== jsondate ======== Sick of rewriting the same JSON datetime handling code for each project? ``jsondate`` is a drop-in replacement for Python's standard ``json`` library that adds sensible handling of ``datetime`` and ``date`` objects. ``jsondate`` uses ISO8601 for encoding ``datetime`` objects and the date-specific part of ISO6801 for encoding ``date`` objects. Example:: ...