semvec/pypi-packages huggingface dataset:
struct-parse 0.0.2
Parse struct definitions like those used in the struct module
License: MIT
Requires Python: >=3.6


struct-parse
============

``struct_parse`` builds on the struct_ module in the standard library.
``struct`` lets you parse buffers by describing the format similarly to C struct
definitions. ``struct_parse`` aims to comply with the ``struct`` module's format
strings, but instead returns a (very flat) abstract syntax tree (AST).


Example
-------

.. code-block:: python

  import struct_parse

  field_list = struct_parse.parse('hhl')
  print(field_list.fields)

This will print::

  [<FieldType.FLOAT: 16>, <FieldType.FLOAT: 16>, <FieldType.LONG: 9>]


Use cases
---------

For simply unpacking packed binary data, the ``struct`` module does the trick.
The goal of this module is to enable the user to do other stuff with the format
string--we return a sequence of types instead of a sequence of values.


Compatibility
-------------

This library supports only Python 3.

.. _struct: https://docs.python.org/3/library/struct.html
beancount-syspath 0.2.1
Manipulate sys.path within the beancount file
License: MIT
Requires Python: >=3.6,<4.0
Keywords: beancount,plugin,syspath

# beancount-syspath

Manipulate `sys.path` from within the beancount file. This is a plugin for
[Beancount](http://furius.ca/beancount/
), a double-entry bookkeeping computer language.

## Installation

Install via pip

```shell
pip install beancount-syspath
```

## Usage

Prepend list of paths

```beancount
plugin "beancount_syspath.plugin" "{
    'append': ['some/dir', 'other/dir'],
    'prepend': ['some/dir', 'other/dir'],
}"
```

Note: Place the directive before other plugin loading ones, so they can make use of the updated `sys.path`.

### Configuration
The config value is a python dict literal, contains the following keys

| Key | Type | Optional | Default | Meaning |
|:-:|:-:|:-:|:-:|:-:|
| `append` | `List[str]` | yes | `[]` | Append the list of path to `sys.path` |
| `prepend` | `List[str]` | yes | `[]` | Prepend the list of path to `sys.path` |
| `normalize_to_root` | `bool` | yes | `True` | If the path is relative, it is considered to be relative to the root beancount file, and normalized to absolute path before adding to `sys.path`. |