semvec/pypi-packages huggingface dataset:
strings-translate 1.0.3
A package for automatic translation of .strings files using the Google Translate API
Requires Python: >=3.7

# strings-translate
A simplistic package for automatic translation of `.strings` files using the **Google Translate API**. As the Google Translate has come to a stage where, while not completely perfect, one can always count on it to provide sufficient translations in over 100 languages. So if you want to automatically localize your iOS, iPadOS or macOS app, you can simply use this package.

## Features

  - **🌍 Source language detection**: The package automatically detects the language of the source `.strings` file
  - **📖 Translation using Google Translate**: The package can easily translate all of the individual strings using the Google Translate API
  - **📝 Saving new .strings files**: The results will be outputted into a new file, which you can directly use in your project

## Usage

### Installation

To get the package, simply use:

```bash
pip install strings-translate
```

### Translation of .strings files

If you want to translate a pure `.strings` file, simply create your `StringsTranslator` and then use its `translate_strings()` method:

```python
from stringstranslate import StringsTranslator

translator = StringsTranslator()
translator.translate_strings(file_name="Localizable.strings", target_lang="es", source_lang="en")
```

The `target_lang` and `source_lang` properties expect ISO codes for the relevant languages. The source language does not need to be entered, but then the detected language of the strings in the file will be used.

This will output a **output/output_es.strings** file with the translated strings.

### Translation of storyboards

If you want to translate a storyboard, the approach is very similar. You only need to use the `translate_storyboard()` method:

```python
from stringstranslate import StringsTranslator

translator = StringsTranslator()
translator.translate_storyboard(file_name="Main.strings", target_lang="es", source_lang="en")
```

Again, the `source_lang` property can be empty and this will output **output/output_es.strings** file.
directory-tree-generator 0.0.1
This module helps to print/generate a directory tree.
Requires Python: >=3.0

# directory-tree-generator

## Requirements

```
python >= 3.0
```

## Installation
```
pip install directory-tree-generator
```

## Usage
Pass the directory path to the generate method

```python
from DirectoryTree import TreeGenerator
Tree = TreeGenerator()
Tree.generate('C:/users/Ajay/Desktop/Junk')
```

Output
```
+ Junk/
   + Stylesheets/
       • country.css
   + Java Files/
       • mm.java
   + Media/
      + Images/
          • globe.png
          • 1598791605362.jpg
      + GIFs/
          • connection_11598806195526.gif
      + Audios/
          • Sound.mp3
   + Database Files/
       • db.sqlite3
   + PDFs/
       • Pdf.pdf
   + Javascript Files/
       • app.js
   + Python Files/
       • Notepad.py
   + Text Files/
       • requirements.txt
   + HTML Files/
       • share.html
   + Json Files/
       • package-lock.json
   + Documents/
       • DBMS_ALL Programs.docx
   + Readme Files/
       • README.md
```
Biopyutils 0.2.0
A bionformatic tookits
Requires Python: >=3.5
Keywords: Gene ID Convertor,Bioinformatics,Genomics,Computational Biologist

# Biopyutils: A Bioinformatics Toolkit
[![PyPI](https://img.shields.io/pypi/v/Biopyutils?color=blue)](https://pypi.org/project/Biopyutils/) ![PyPI - Format](https://img.shields.io/pypi/format/Biopyutils?style=flat-square) ![PyPI - License](https://img.shields.io/pypi/l/Biopyutils?color=red) [![Build Status](https://travis-ci.org/jingxinfu/Biopyutils.svg?branch=master)](https://travis-ci.org/jingxinfu/Biopyutils) [![PyPI - Downloads](https://img.shields.io/pypi/dm/Biopyutils?color=green&label=pypi%20download&logoColor=green&style=flat-square)](https://pypi.org/project/Biopyutils/) 

This package provides functions that are frequently used by bioinformaticians. 

[Document](https://jingxinfu.github.io/Biopyutils)

### Latest additions

#### 1.1.9
- Updates:
  - the Ensembl Gene: v99->v101
- Bug Fix:
  - specify squeeze function with "columns"
render-browser 0.5
Render gym environments to a web browser.

# Render Gym Environments to a Web Browser.

While working on a head-less server, it can be a little tricky to render and see your environment simulation. This script allows you to render your environment onto a browser by just adding one line to your code.

## Installation
```shell
xvfb-run -s "-screen 0 1400x900x24" bash # Run this if you're using a head-less server.
pip3 install render_browser
```
Or you can install from the source by cloning this repo and running `pip3 install .`.

## Usage
Put your code in a function and replace your normal `env.render()` with `yield env.render(mode='rgb_array')`. Encapsulate this function with the `render_browser` decorator.

```python
import gym
from render_browser import render_browser

@render_browser
def test_policy(policy):
    # Your function/code here.
    env = gym.make('Breakout-v0')
    obs = env.reset()

    while True:
        yield env.render(mode='rgb_array')
        # ... run policy ...
        obs, rew, _, _ = env.step(action)

test_policy(policy)    
```

When you visit `your_ip:5000` on your browser, `test_policy()` will be called and you'll be able to see the rendered environment on your browser window.  

<img src="env_render.gif" height="400px">

## TODO
+ Stop flask server once the rendering stops - so that render_browser can be called more than once in a single run.
+ Allow I/P from keyboard on the browser, useful for teleoperation in robotic environments.