semvec/pypi-packages huggingface dataset:
python-lang 1.0.0
A simple library for building multilingual applications in Python

# python-lang
A simple library for building multilingual applications in Python
## Installation
### Using `pip`
`pip install python-lang`
### From the source
- Clone the repo `git clone https://github.com/Programista3/python-lang.git`
- Run `python setup.py install`
## Usage
#### `.py` file
Add pyLang to your project
```python
import python_lang as lang
_ = lang.get
```
Add language files (you can specify the language symbol as the second parameter)
```python
lang.add("C:/project/locales/de.xml")
lang.add("C:/project/locales/pl.xml", "pl")
```
Select language for translation
```python
lang.select('pl')
```
You can turn off the translation using
```python
lang.select()
```
Use `_()` function to translate text
```python
print(_("Hello World"))
```
You can view the list of added languages using
```python
lang.all()
```
#### `XML` file
Use following template:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<language code="language symbol">
  <translation text="first original text">first translated text</translation>
  <translation text="second original text">second translated text</translation>
  ...
</language>
```
## Documentation
### Functions
lang.**add(path, code=None)**<br>
&emsp;&emsp;Adds path and language code to the list of languages.<br>
&emsp;&emsp;Returns True if the language has been added successfully.<br><br>
lang.**all()**<br>
&emsp;&emsp;Returns the list of added languages<br><br>
lang.**get(text)**<br>
&emsp;&emsp;Returns translated text (if not found translation or language is not selected returns original text)<br><br>
lang.**select(lang=None)**<br>
&emsp;&emsp;Selects the language used to translation.<br>
&emsp;&emsp;Returns True if the language has been selected successfully.<br><br>
### Variables
lang.**file**<br>
&emsp;&emsp;Contains the parsed file of the currently selected language<br><br>
lang.**langs**<br>
&emsp;&emsp;Contains the list of added languages with their file paths<br><br>
lang.**selected**<br>
&emsp;&emsp;Contains the code of the currently selected language
unscii 0.1.1
Python Interface for UNSCII bitmapped fonts

# UNSCII for Python

This provides a wrapper around the collection of bitmapped fonts known
as [UNSCII](http://pelulamu.net/unscii/).

The original motivation was to create a lightweight way to get text on to small
displays such as OLEDs and LCD Screens that may be attached to devices such as
a Raspberry Pi or Arduino. There are other libraries out there that do this, but
most push the work to Pillow by providing it with .ttf fonts. I wanted a more
lightweight way to quickly get text on to the screens without using so many
resources, particularly on an Arduino.

Future versions will have a command line utility to generate the minimum amount
of code to get strings for python and C++ to make this more useful with C++
and CircuitPython embedded stacks.
pyTesy 0.0.3
Library for Tesy smart home devices

[![founder-wip](https://img.shields.io/badge/founder-Håkan_Åkerberg@StyraHem.se-green.svg?style=for-the-badge)](https://www.styrahem.se)
[![buy me a coffee](https://img.shields.io/badge/If%20you%20like%20it-Buy%20me%20a%20coffee-orange.svg?style=for-the-badge)](https://www.buymeacoffee.com/styrahem)

![stability-wip](https://img.shields.io/badge/stability-stable-green.svg?style=for-the-badge)
![PyPI](https://img.shields.io/pypi/v/pyTesy.svg?color=green&style=for-the-badge)

# pyTesy

Library for Tesy smart home devices.

#Support
-Water heater