semvec/pypi-packages huggingface dataset:
potter-spells 1.0.2
A python package to list all Harry Potter spells
License: MIT
Keywords: harry potter harrypotter spells harrypotterspells potterspells expelliarmus

# Harry Potter Spells (potter_spells)

The package lists all the Harry Potter spells.\
Specifically, the scripts scrape the data from the website harrypotter.wikia.com and and provides all the spells.\
The various python scripts provides various filters to list out the spells and enchantments (magic enchantments which are not specifically spells).

## Installing the package
```
pip install potter_spells
```

## Using the package
```
>>> import potter_spells as potter
>>> potter.all_data()
>>> potter.find('Avada Kedavra')
```

### List out all Spells or Enchantments
```
>>> potter.all_spell_names()
>>> potter.all_enchantment_names()
```

### Filter by Type of Magic
```
>>> potter.all_by_type('Charm')
>>> potter.spells_by_type('Hex')
>>> potter.enchants_by_type('Charm')
```
colorguard 0.4
Better bit manipulation that allows indexing, and automatic bit flags.
License: MIT

Color Guard
===========

.. image:: https://img.shields.io/pypi/v/colorguard.svg
    :target: https://pypi.org/project/colorguard/

**Color Guard** provides simple bit manipulation and bit flags in Python. Everything is built on
the ``int`` type so no number functionality is lost, while making it possible to index and slice binary numbers
like strings.

.. image:: https://i.imgur.com/nety2Ty.jpg
   :width: 100%

---------------------

Basic usage:

.. code-block:: pycon

   >>> num = Bits(20)
   >>> num
   Bits(0b10100)
   >>> num * 3
   Bits(0b111100)
   >>> num[:4]
   Bits(0b1010)
   >>> num.bit_length()
   5
   >>> num.join(0b101)
   Bits(0b10100101)

Color Guard also supports conversion to and from other Python data types.

.. code-block:: pycon

   >>> Bits.from_binary("111101001101")
   Bits(0b111101001101)
   >>> Bits.from_hex("abc123")
   Bits(0b101010111100000100100011)
   >>> Bits.from_bytes(b"abc")
   Bits(0b11000010110001001100011)

   >>> bytes(Bits(367))
   b'\x01o'
   >>> int(Bits(0b1011010))
   90
   >>> list(Bits(367))
   [1, 0, 1, 1, 0, 1, 1, 1, 1]

Features
--------

- Indexing and slicing of binary numbers like strings
- Conversion between several Python data types
- All builtin math operations including bit manipulation and comparison
- Padded binary numbers that maintain bit length
- Custom, easy-to-use bit flags
   - Bit field loading from bytes or stream
   - Custom data descriptors for fields
   - Field editing & conversion to bytes

For further documentation, visit http://paric.xyz/python/