semvec/pypi-packages huggingface dataset:
anvil-parser 0.9.0
A Minecraft anvil file format parser

# anvil-parser

[![CodeFactor](https://www.codefactor.io/repository/github/matcool/anvil-parser/badge/master)](https://www.codefactor.io/repository/github/matcool/anvil-parser/overview/master)
[![Documentation Status](https://readthedocs.org/projects/anvil-parser/badge/?version=latest)](https://anvil-parser.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://travis-ci.org/matcool/anvil-parser.svg?branch=master)](https://travis-ci.org/matcool/anvil-parser)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/anvil-parser)](https://pypi.org/project/anvil-parser/)

Simple parser for the [Minecraft anvil file format](https://minecraft.gamepedia.com/Anvil_file_format)
# Installation
This project is available on [PyPI](https://pypi.org/project/anvil-parser/) and can be installed with pip
```
pip install anvil-parser
```
or directly from github
```
pip install git+https://github.com/matcool/anvil-parser.git
```
# Usage
## Reading
```python
import anvil

region = anvil.Region.from_file('r.0.0.mca')

# You can also provide the region file name instead of the object
chunk = anvil.Chunk.from_region(region, 0, 0)

# If `section` is not provided, will get it from the y coords
# and assume it's global
block = chunk.get_block(0, 0, 0)

print(block) # <Block(minecraft:air)>
print(block.id) # air
print(block.properties) # {}
```
## Making own regions
```python
import anvil
from random import choice

# Create a new region with the `EmptyRegion` class at 0, 0 (in region coords)
region = anvil.EmptyRegion(0, 0)

# Create `Block` objects that are used to set blocks
stone = anvil.Block('minecraft', 'stone')
dirt = anvil.Block('minecraft', 'dirt')

# Make a 16x16x16 cube of either stone or dirt blocks
for y in range(16):
    for z in range(16):
        for x in range(16):
            region.set_block(choice((stone, dirt)), x, y, z)

# Save to a file
region.save('r.0.0.mca')
```
# Todo
*things to do before 1.0.0*
- [x] Proper documentation
- [ ] Biomes
- [x] CI
- [ ] More tests
  - [ ] Tests for 20w17a+ BlockStates format
# Note
Testing done in 1.14.4 and 1.15.2, should work fine for other versions.
mitoc-const 1.0.1
Constants for use across MIT Outing Club infrastructure
Requires Python: >=3.5

[![Build Status](https://api.travis-ci.com/DavidCain/mitoc-const.svg?branch=master)](https://travis-ci.com/DavidCain/mitoc-const/)
[![PyPI version](https://img.shields.io/pypi/v/mitoc-const.svg)](https://pypi.python.org/pypi/mitoc-const)
[![npm version](https://img.shields.io/npm/v/@mitoc/constants.svg)](https://www.npmjs.com/package/@mitoc/constants)

# MITOC Constants
This is a set of constants for use across MIT Outing Club infrastructure.

MITOC has a number of projects, many of which reference values used
in other databases or deployed projects. These projects may be deployed
separately, so there's value in having shared values at constants in an
external package.

## Releasing a new version
It's recommended to keep the Python and TypeScript versions in lock-step.
Even if no changes were made in one of the two, it's best to release both
at the same time.

### pypi/Python
First, augment the version in `setup.py`. Then:

```bash
rm -rf dist/ build/ mitoc_const.egg-info/
pipenv run python setup.py sdist bdist_wheel
pipenv run twine upload dist/*
git push origin master
```

### npm/TypeScript
(Not used yet anywhere, an early prototype)
```bash
npm run build
npm publish
```


## TODO:
- [ ] Add a Makefile for this project:
    - `make lint`, `make test`, and `make check`
    - `make push`
- [ ] Black & isort
- [ ] Run mypy as part of build check
- [ ] Switch to poetry
- [ ] Clean up the (unused) TypeScript package, verify for use
- [ ] Automatically deploy after successful build
cnapi 0.0.0
Chuck Norris Jokes API Wrapper
Keywords: cn api chuck norris

# CNAPI

**An API wrapper built around the [Chuck Norris Jokes API](https://api.chucknorris.io/)**

Get a random joke like this:

```python3
import cnapi

results = cnapi.get_random()
print(results.joke)
#A cobra once bit Chuck Norris. After five days of excruciating pain, the cobra died
```

Get all categories like this:

```python3
import cnapi

cats = cnapi.get_categories()
for cat in cats.list:
    print(cat)
```

Get random joke from category:

```python3
import cnapi

result = cnapi.from_category(category = 'dev')
print(result.joke)
#Chuck Norris doesn't need an OS.
```

Search the API for `dog`:

```python3
import cnapi

results = cnapi.search(keyword = 'dog')
for link in results.url:
    print(link)
```

# Joke attributes

Attribute | Description
------------ | -------------
joke | The joke
url | URL to the joke
id | The joke's ID
created_at | When the joke was created

**Please report all issues [here](https://github.com/ilikepyt/cnapi/issues)**