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

# 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 translate-po
```

Usage
```python
from translate_po.main import run

run(fro="en" to="et" src="./untranslated" dest="./translated")
```

### Changelog
1.0.13
- Fixed typo in the readme

1.0.11
- Fixed distributable not including parts of code
- Build script improvements
- Fixed dependencies not automatically installing
- Added .po file recognition
- Changed default constants for simpler use

1.0.4 
- Swapped out my own implementation of .po file parser for polib one. 
- Fixed metadata writing into new files.
cdk-iampath 0.0.5
Python package for applying path to IAM roles for CDK projects in python
Requires Python: >=3.6

# Package Description

This is a AWS CDK Python library which uses `CDK Aspects` to apply user specified Path strings to IAM roles which are either created explicitly or to the IAM roles generated by CDK automatically.

As per Cloud Security/standards, the AWS Identity Access Management (IAM) Roles might need to include a mandatory path prefix to assist with the enforced security policies, assist with the automation needs etc. While working with AWS IAM Role CDK Construct, we can specify `path` which helps with the addition of the user defined path during the IAM Role creation time, but as per design of CDK, it generates multiple roles to remove the heavylifting of creating roles explicitly, but doesnt have a staright forward method to ask the user to input the necessary IAM path. For such use-cases, we have to use `CDK Aspects`.   

### Steps to leverage the library:   

#### User can specify the IAM path as a string, which they envision to see in the IAM role name.   
Example: `infra`   

#### Declare the library `cdk-iampath` in the requirements.txt file or setup.py (whichever applies) in your CDK project.   

#### To manually create a virtualenv on MacOS and Linux:   

```
$ python3 -m venv .env
```

#### After the init process completes and the virtualenv is created, you can use the following
step to activate your virtualenv.

```
$ source .env/bin/activate
```

#### If you are a Windows platform, you would activate the virtualenv like this:   

```
% .env\Scripts\activate.bat
```

#### Once the virtualenv is activated, you can install the required dependencies.   

```
$ pip install -r requirements.txt
```

#### To test the implementation, declare the below in `app.py` file:   
```python   

from cdk_iampath import ApplyPath
# InfraRoles and LambdaFunction are the sample CDK stacks. While testing, remove the below imports with your respective CDK stacks.   
from cdk_stacks import InfraRoles
from cdk_stacks import LambdaFunction

app = core.App()

#Stack to create Infra IAM Roles
iam_resource = InfraRoles(
    app,
    id='deploy-infraroles',
    env=ENV
)
core.Aspects.of(iam_resource).add(ApplyPath('security')) #Please provide the string for path

#Stack to create a sample Lambda function
lambda_resource = LambdaFunction(
    app,
    id='deploy-lambdafunc',
    env=ENV
)
core.Aspects.of(lambda_resource).add(ApplyPath('app')) #Please provide the string for path

app.synth()

```   
#### Once the above 2 CDK stacks are deployed, we can notice the IAM roles created with the prefixed path pattern for InfraRoles and LambdaFunction CDK Stacks.    
Ex: arn:aws:iam::1234567890:role/infra/iam-role   

Enjoy!