Metadata-Version: 2.1
Name: http_sfv
Version: 0.8.2
Summary: Parse and serialise HTTP Structured Field Values
Home-page: http://github.com/mnot/http_sfv/
Author: Mark Nottingham
Author-email: mnot@mnot.net
License: MIT
Download-URL: http://github.com/mnot/http_sfv/tarball/http_sfv-0.8.2
Description: 
        # HTTP Structured Field Values in Python
        
        [![Actions Status](https://github.com/mnot/http_sfv/workflows/CI/badge.svg)](https://github.com/mnot/http_sfv/actions)
        
        This is a [Python 3](https://python.org/) library implementing parsing and serialisation of [HTTP Structured Fields](https://httpwg.org/http-extensions/draft-ietf-httpbis-header-structure.html).
        
        The library's initial purpose is to prove the algorithms in the specification; as a result, it is not at all optimised. It tracks the specification closely, but since it is not yet an RFC, may change at any time.
        
        The top-level `parse` and `serialise` functions are the ones your code should call.
        
        _Currently, this implements draft 19 of the specification._
        
        ## Command Line Use
        
        You can validate and examine the data model of a field value by calling the library on the command line, using `-d`, `-l` and `-i` to denote dictionaries, lists or items respectively; e.g.,
        
        ~~~ example
        > python3 -m http_sfv -i "foo;bar=baz"
        [
            {
                "__type": "token",
                "value": "foo"
            },
            {
                "bar": {
                    "__type": "token",
                    "value": "baz"
                }
            }
        ]
        ~~~
        
        or:
        
        ~~~ example
        > python3 -m http_sfv -i "foo;&bar=baz"
        FAIL: Key does not begin with lcalpha or * at: &bar=baz
        ~~~
        
        Note that if successful, the output is in the JSON format used by the [test suite](https://github.com/httpwg/structured-header-tests/).
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: POSIX
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides: http_sfv
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
