semvec/pypi-packages huggingface dataset:
canisterpy 1.0.0
A simple, easy-to-use API wrapper for https://canister.me.
Requires Python: >=3.6

<img src="https://canister.me/canister.svg" alt="Canister Logo" title="Canister" align="right" height="60"/>

# Canister.py

[![License](https://img.shields.io/github/license/cnstr/canister.py)](https://github.com/cnstr/canister.py/blob/main/LICENSE)
[![Stars](https://img.shields.io/github/stars/cnstr/canister.py)](https://github.com/cnstr/canister.py/stargazers)
[![LoC](https://img.shields.io/tokei/lines/github/cnstr/canister.py)](https://github.com/cnstr/canister.py)

The official library for interacting with [Canister](https://canister.me) in Python.  
Made with love by [Jaidan](https://github.com/ja1dan).

## 💻 Documentation
See [here](./DOCUMENTATION.md) for all Canister.py documentation.

## ❓ Contributing
See [here](./CONTRIBUTING.md) for instructions on how to contribute.

## ⚡️ Example Usage
Below is a good example of how to use Canister.py.
```py
# import asyncio
import asyncio
# import types
from typing import List
# import canister
from canisterpy import (
    Canister, Package, SearchFields
)

# set up client
client = Canister(ua='Canister.py Example')

# main function
async def main(package: str) -> List[Package]:
    # create search fields
    fields = SearchFields()
    # pick out fields
    # we want to search by name and author, so
    fields.set('name', True).set('author', True).set('maintainer', False).set('description', False)
    # search for query
    packages = client.search_package(package, fields)
    # return what we found
    return packages

print(asyncio.run(main('test')))
if not client.is_closed(): client.close()
```
gnu-mo 0.0.1
Read and write GNU MO files
Requires Python: >=3.6

# GNU MO Files

Read and write GNU MO files.

Created using [The Format of GNU MO Files](https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html) article.

To the contrary of what's written there, **the file revision** is totally ignored.
The reason is that the difference between the revisions is not clear.

**The hash table** does not get written and ignored while reading, for Python dictionary uses its own hashing anyway.

Requires `Python >= 3.6` and no additional packages.
The code can be easily ported to older Python version, but I have no intention to.