semvec/pypi-packages huggingface dataset:
chouseisan-py 0.1.1
Automate the operation of chouseisan.com
License: MIT
Requires Python: >=3.7,<4.0

# chouseisan_py
chouseisan_py automates the operations of [調整さん](https://chouseisan.com/)(Chouseisan).
Currently, it only supports creating events.

![Test](https://github.com/ryu22e/chouseisan_py/actions/workflows/test.yml/badge.svg)
[![codecov](https://codecov.io/gh/ryu22e/chouseisan_py/branch/main/graph/badge.svg?token=rB5RS1bewF)](https://codecov.io/gh/ryu22e/chouseisan_py)

## Installation

```python
$ pip install chouseisan-py
```

## Usage

```python
>>> from datetime import datetime
>>> from chouseisan_py.chouseisan import Auth, Chouseisan
>>> auth = Auth(email="test@example.com", password="<secret>")
>>> chouseisan = Chouseisan(auth)
>>> chouseisan.create_event(
...    title="test event",
...    candidate_days=[datetime(2021, 10, 17, 19, 0), datetime(2021, 10, 18, 19, 0)]
... )
'https://chouseisan.com/s?h=f7b7fc11995b441782844bc3fddaf456'
```
kripta-py 0.1.3
A tiny asymmetric/symmetric encryption lib for humans.
License: MIT
Requires Python: >=3.8,<4.0
Keywords: AES,RSA,encryption,decryption

# kripta-py

An simple implementation of a Symmetric(AES) and Asymmetric(RSA) encryption based on [pycryptodome](https://github.com/Legrandin/pycryptodome) module.

## Requirements

- Python (3.10 recommended)

## Features

- Generate RSA keys like
- Encrypt/Decrypt messages, files, binaries on symmetric or asymmetric

## How to use

- Install the lib
```bash
pip install kripta-py
```

- To use the **symmetric encryption** (AES):
    - Schema :

        <img
            src="https://github.com/Sanix-Darker/kripta/raw/master/images/s.png"
            alt="drawing"
            width="400"
        />
    - Code :
        ```python
        from kripta_py import KriptaAES


        message = "secret-message"
        secret_key = "secret-code-password"

        k = KriptaAES()
        # to encrypt
        encrypted_msg = k.encrypt(message, secret_key)

        # to decrypt
        print(k.decrypt(encrypted_msg1, secret_key).decode())
        # secret-message 
        ```

- To use an **asymmetric encryption** (RSA):
    - Schema :

        <img
            src="https://github.com/Sanix-Darker/kripta/raw/master/images/as.gif"
            alt="drawing"
            width="400"
        />
    - Code example:
        ```python
        from kripta_py import KriptaRSA


        message = "secret-message"
        pub_key = """-----BEGIN PUBLIC KEY-----
        ....
        -----END PUBLIC KEY-----"""

        k = KriptaRSA()
        k.setPublicKey(pub_key)
        # To encrypt a message
        encrypted_msg = k.encrypt(k.getPublicKey(), message.encode())

        priv_key = """-----BEGIN RSA PRIVATE KEY-----
        .....
        -----END RSA PRIVATE KEY-----"""

        k.setPrivateKey(priv_key)
        # To decrypt
        print(k.decrypt(encrypted_msg).decode())
        # secret-message 
        ```
django-vuejs-translate 0.6.4
Generating translations from strings inside vuejs
License: MIT

# django-vuejs-translate

This project aims to translate messages inside vuejs code.

Initially this idea and code was designed by [Alex Tkachenko](https://gitlab.com/preusx)


### Generating translations

```python
python manage.py jsmakemessages -v3 -e jinja,py,html,js,vue -jse js,vue -i node_modules && python manage.py makemessages -v3 -e jinja,py,html,js,vue -i node_modules
```

### Installation

Update INSTALLED_APPS

```python
INSTALLED_APPS = [
    ...
    'vuejs_translate',
    ...
]
```

Add urls

```python
from django.conf.urls.i18n import i18n_patterns

urlpatterns += i18n_patterns(
    path('vuejs-translate', include('vuejs_translate.urls')),
)
```


Add script to templates

```html
// preferred way to use proxy cache on translations
<script type="text/javascript" src!=exp("hashed_translation_url()")>

// Or use old style with basic url tag
<script type="text/javascript" src!=url('"vuejs_translate:js-i18n"')>

```

Add something like this your js.

```js

import Vue from 'vue'
import VueI18n from 'vue-i18n'

Vue.use(VueI18n)

const messages = { current: window.django.catalog || {} }

Vue.prototype._ = function() {
  return this.$t.apply(this, arguments)
}

export const i18n = new VueI18n({
  locale: 'current',
  messages,
  silentTranslationWarn: true
})

```

### Notes on cache

After 0.6 version library uses cache ONLY for hashed url.

It uses two-level cache system:

1. Every hashed url cached by django for a month.
2. If client ignores headers and sends a fetch - server returns last-modified etag.

You can diable cache with VUEJS_CACHE settings

```
# settings.py

VUEJS_CACHE = False
```
morcecodetranslator 1.0.2
Convert text to Morce Code
License: MIT
Requires Python: >=3.6
Keywords: Morce Code

# Morce Code Translator

[![dotdash](dotdash.png)](https://en.wikipedia.org/wiki/Morse_code)

[![codecov](https://codecov.io/gh/gugupy/morcecodetranslator/branch/master/graph/badge.svg?token=TG5AR36QNI)](https://codecov.io/gh/gugupy/morcecodetranslator)

Its converts plain text to morce code and vice versa and follows below rules for the convertion as per the morce-code algorithm,  
1. Single space for same char repeats  
2. Three spaces for different char  
3. Seven spaces to differentiate the word  

## Installation

### Method 1:
To install the MorceCodeTranslator just run the command `pip install -U morcecodetranslator`

### Method 2:
1. Clone the repository `git clone https://github.com/gugupy/morcecodetranslator.git`
2. Run the command `pip install -e .`


## Sample code
```
from morcecodetranslator.morce import MorceCodeTranslator

mct = MorceCodeTranslator()
print(mct.encript('MORCE CODE'))
print(mct.decript('--   ---   .-.   -.-.   .       -.-.   ---   -..   .'))
```
### output
```
--   ---   .-.   -.-.   .       -.-.   ---   -..   .  
MORCE CODE
```

MIT License

Copyright (c) 2022 Gughanathan M

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.