semvec/pypi-packages huggingface dataset:
Django-translate-po 0.1.0
Automatic PO file translator
Requires Python: >=3.6
Keywords: Django po translate automatic google & AWS

# translate-po

Simple quick script for automatically translating .po files using Google. It speeds up internationalization by giving
translators machine translated base version to correct.

## Usage

Installation

```cmd
pip install django-translate_po
```

Usage with translate function

```python
from translate_po.translator_functions import select_translator_function

# Can use AWS or Google translate service,
# but if want use AWS service, you must add some settings into django's settings.py file, like this:
AWS_TRANSLATE_SERVICE = {
    "service_name": "translate",
    "service_region": "us-west-2",
    "access_key": "your-access-key",
    "access_secret": "your-access_secret"
}
translator_function = select_translator_function("AWS")
# translator_function = select_translator_function("Google")
res_text = translator_function("your-text", source_code="us", target_code="de")
```

Usage with translate po file

```python
from translate_po.translate import PoTranslator

po_translator = PoTranslator("./a.po", translator_service="AWS", source_code="en", target_code="zh")
po_translator.generate_text_for_untranslated()

```

### Changelog

0.1.0

- Release Django-translate_po
isddc-dbpool 1.0.1
────────────────────────────────────────────────────────────────────────

─██████████─██████████████─████████████───████████████───██████████████─
─██░░░░░░██─██░░░░░░░░░░██─██░░░░░░░░████─██░░░░░░░░████─██░░░░░░░░░░██─
─████░░████─██░░██████████─██░░████░░░░██─██░░████░░░░██─██░░██████████─
───██░░██───██░░██─────────██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───██░░██████████─██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───██░░░░░░░░░░██─██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───██████████░░██─██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───────────██░░██─██░░██──██░░██─██░░██──██░░██─██░░██─────────
─████░░████─██████████░░██─██░░████░░░░██─██░░████░░░░██─██░░██████████─
─██░░░░░░██─██░░░░░░░░░░██─██░░░░░░░░████─██░░░░░░░░████─██░░░░░░░░░░██─
─██████████─██████████████─████████████───████████████───██████████████─
────────────────────────────────────────────────────────────────────────
Home-page: http://www.gqylpy.com
Author: 竹永康
Author-email: zhuyk4@lenovo.com
License: MIT
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Utilities
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
stockgeist-client-python 0.1.1
StockGeist's REST API Python client.
Requires Python: >=3.6

![example workflow](https://github.com/stockgeist/stockgeist-client-python/actions/workflows/main.yml/badge.svg)
[![codecov](https://codecov.io/gh/stockgeist/stockgeist-client-python/branch/master/graph/badge.svg?token=NB0TY4LXTD)](https://codecov.io/gh/stockgeist/stockgeist-client-python)

[comment]: <> ([![Documentation Status]&#40;https://readthedocs.org/projects/stockgeist-client-python/badge/?version=latest&#41;]&#40;https://stockgeist-client-python.readthedocs.io/en/latest/?badge=latest&#41;)


# stockgeist-client-python
Python client for fetching data from StockGeist's REST API. 

The full documentation of the REST API 
can be found at [https://docs.stockgeist.ai](https://docs.stockgeist.ai).

## Installation
You can install the package directly from this repository for getting the version with the latest bug fixes and features

`pip install git+https://github.com/stockgeist/stockgeist-client-python.git`

or you can install the stable version from PyPI

`pip install stockgeist-client-python`

## Getting started
Basic usage is very straightforward. First you have to create an account with 
[StockGeist](https://dashboard.stockgeist.ai) and obtain your token for connecting to the REST API.
Then simply create an instance of `StockGeistClient` and pass your StockGeist REST API token to it:

```
import stockgeist

client = stockgeist.StockGeistClient(token="example-token")
```

Now through the `client` object you get the access to all methods for fetching data from the REST API. 
Let's say that you want to find out how many messages have been posted on social media in the last hour
about the Apple stock (NASDAQ:AAPL). All you have to do is to run the following code snippet:

```
aapl_response = client.get_message_metrics(symbol="AAPL", timeframe="1h")
print(aapl_response.as_dict)
```

Resulting output:

```
{'timestamp': ['2021-06-11 13:20:00+00:00'], 'total_count': [13.0]}
```

The `aapl_response` is an object encapsulating the data fetched from the API together with some useful 
methods to easily explore the data, e.g., plot the time series.

For now, the best source of information about the functionality of `stockgeist-client-python` are the 
docstrings inside the source files.

You can also find a sample Jupyter notebook demonstrating the possibilities of `stockgeist-client-python` in the 
`samples` directory of this project.


## Licence
This package is provided as open source under the terms of the [MIT Licence](https://opensource.org/licenses/MIT).

## Contributing
Feel free to contact us at [stockgeist@neurotechnology.com](stockgeist@neurotechnology.com) or simply 
create an issue if you would like to see additional features implemented in this package.
discord-game 0.1.3
Create a discord game

# discord.py-game-engine

A game engine for discord

---

## How to use

If you want to see some examples go [here](https://github.com/VL07/discord.py-game-engine/tree/main/examples) or follow almong this tutorial to get a basic understanding of how this module works.

Start by importing the module

```python
import discord_game
from discord_game import screen
```

You will also need the discord libary to create the client

```python
import discord
```

Then you can start by creating the discord client

```python
client = discord.Client()
```

Now you can create the game and set its startcommand. Our is `!start`

```python
game = discord_game.Game(client, "!start")
```

Use the `onStart` event to run code when someone starts the game. The `onBotReady` runs when the bot/client is ready. 

```python
@game.event.onStart
async def onStart(display):
    print("The game is started")

@game.event.onBotReady
async def ready():
    print("bot is ready")
```

Don't forget to add `client.run(token)` at the end of the file

```python
client.run("Your token")
```

You can create a sprite like this

```python
mySprite = screen.Sprite(display, ["costume", "with", "multiple rows"], 0, 0) # and lastly x and y pos
```

Then you will need to update the display

```python
await display.update()
```

To create a button you do it like this

```python
myButton = await s.addButton("Click me!")
```

To get a button click put this code inside the onstart function

```python
@myButton.onClick
async def clicked(btn):
    print("You clicked me!")
```

The complete code

```python
import discord_game
from discord_game import screen
import discord

client = discord.Client()

game = discord_game.Game(client, "!start")

@game.event.onStart
async def onStart(display):
    print("The game is started")

@game.event.onBotReady
async def ready():
    print("bot is ready")

    mySprite = screen.Sprite(display, ["costume", "with", "multiple rows"], 0, 0) # and lastly x and y pos

    await display.update()

    myButton = await s.addButton("Click me!")

    @myButton.onClick
    async def clicked(btn):
        print("You clicked me!")
    
client.run("Your token")
```
py-message-headers 2021.7.5
Constants for IANA message headers (http, mime, mail, etc)

# Reason this exists
Wouldn't it be better to retrieve Http header information using a Http header constants, like this `request_headers.get(http.REFERER)`. Constants such as `http.REFERER` for the string `Referer` reduces typos, and having to remember the exact spelling for Http headers. 

This library does the following:
1. Refers to the list of headers registered with IANA: https://www.iana.org/assignments/message-headers/message-headers.xhtml . The definitions are available for download, as CSV files. These files are present in the `references` folder. 
1. Generates the headers, under the `headers` package, using the locally available CSV `references` files.

## Usage
```
from headers import http, mime

...
request_headers.get(http.HOST) # provides access to the 'Host' header from the request
mail_headers.get(mime.Content_Location)
...

```

## Other libraries
* 'Http lazy headers': which also provides validation, and formatting options to the values that can be set to the Headers: https://github.com/nitely/http-lazy-headers
isddc-log 1.1.3
────────────────────────────────────────────────────────────────────────

─██████████─██████████████─████████████───████████████───██████████████─
─██░░░░░░██─██░░░░░░░░░░██─██░░░░░░░░████─██░░░░░░░░████─██░░░░░░░░░░██─
─████░░████─██░░██████████─██░░████░░░░██─██░░████░░░░██─██░░██████████─
───██░░██───██░░██─────────██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───██░░██████████─██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───██░░░░░░░░░░██─██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───██████████░░██─██░░██──██░░██─██░░██──██░░██─██░░██─────────
───██░░██───────────██░░██─██░░██──██░░██─██░░██──██░░██─██░░██─────────
─████░░████─██████████░░██─██░░████░░░░██─██░░████░░░░██─██░░██████████─
─██░░░░░░██─██░░░░░░░░░░██─██░░░░░░░░████─██░░░░░░░░████─██░░░░░░░░░░██─
─██████████─██████████████─████████████───████████████───██████████████─
────────────────────────────────────────────────────────────────────────
Home-page: http://www.gqylpy.com
Author: 竹永康
Author-email: zhuyk4@lenovo.com
License: MIT
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Utilities
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9