semvec/pypi-packages huggingface dataset:
b3tojson 1.0.1
B3 to JSON format converter
License: MIT
Requires Python: >=3.6

# b3tojson

This utility is intended to help converting B3 (Brasil, Bolsa, Balcão) own data format to a more portable and usable format like JSON.

## Dependencies

* jsonpickle==1.3
* requests==2.23.0

### For testing only
* pytest==5.4.1
* pytest-mock==3.0.0

## Installing

### From source

> pip install -r requirements.txt

> pip install .

### From PyPI

> pip install b3tojson

## Running

There are some configurable parameters when running in the command line. It is even possible to automatically get the latest source file and parse into a new JSON. Options are:

* `--fetch` Enables downloading of a new data file from B3 server. It will consider this file when parsing. This is disabled by default, try to parse a local file under files folder.
* `--b3_file FILENAME` Specifies the local data file location. Make sure that it is UTF-8 encoded, other encoding may not work.
* `--json_file JSONNAME` Specifies the name of the resulting JSON file. Defaults to files/stocks_data.json.

Important to note that `--fetch` and `--b3_file` are mutually exclusive.

### Example

1. Running to fetch a new file and customize the resulting JSON

> b3tojson --fetch --json_file files/beautiful_file.json

2. Using a local file to parse

> b3tojson --b3_file files/my_local_file.txt
httpchunked 0.1.2
Chunked transfer encoding as defined in RFC 7230
License: MIT
Requires Python: >=3.5

# httpchunked

Do you need support for chunked transfer encoding in your Python web server,
without adding a dependency on a complete framework? Then `httpchunked` is
the module you need! It has no third-party dependencies and consists of only
two functions: `decode` and `encode`.

## Usage

### Decoding

```sh
$ cat main.py
from io import BytesIO

from httpchunked import decode

if __name__ == "__main__":
    dst = BytesIO()
    src = BytesIO(b"3\r\nfoo\r\n0\r\n\r\n")
    decode(dst, src)
    raw = dst.getvalue()
    print(raw)
$ python main.py
b'foo'
```

### Encoding

```sh
$ cat main.py
from io import BytesIO

from httpchunked import encode

if __name__ == "__main__":
    dst = BytesIO()
    src = BytesIO(b"foo")
    encode(dst, src)
    raw = dst.getvalue()
    print(raw)
$ python main.py
b'3\r\nfoo\r\n0\r\n\r\n'
```

## Installation

```sh
pip install httpchunked
```
rmlb 0.1.2
Remove a branch that does not exist in remote.
License: MIT
Requires Python: >=3.6,<4.0

# rmlb

Remove a branch that does not exist in remote.

## Install

```shell
$ pip install rmlb
```

## Usage

```no
usage: rmlb.py [-h] [-ro {-d,-D}] [-q]

optional arguments:
  -h, --help            show this help message and exit
  -ro {-d,-D}, --remove-option {-d,-D}
                        Options for removing a branch. The default is '-d'.
  -q, --quiet           No output.
```

## Author
ucpr

## License
MIT