semvec/pypi-packages huggingface dataset:
chunkcrypt 0.0.3
Simple encryption and decryption by chunk
Requires Python: >=3.9

This is a simple script for encrypting and decryption file by chunk using `cryptography` package, decryption includes download from url.
Project repository url is not yet available, mostly because of its inactive development status.

Encrypting files:
```python
from chunkcrypt.cryptchunk import encrypt_file
# encrypt_file(key, file, output_file, chunk_size)

# encrypting without a provided key
encrypt_file(None, '/home/user/myfile.txt', '/home/user/encryfile.txt')
# "myfile.txt" is now encrypted and the encrypted file is located at "/home/user/encrytfile.txt"

# encrypting with a provided key
encrypt_file('CemuWNzkXti7OVAmFV0SIpZAxkF2wybK', '/home/user/myfile.txt', '/home/user/encrytfile.txt')

# specifying a chunksize, default is 1024
encrypt_file(None, '/home/user/myfile.txt', '/home/user/encryfile.txt', 2048)
# the length of bytes of a encrypted chunk is also written on the encrypted file on a 4 element array of bytes format
# this is needed since Fernet returns additional bytes whenever it encrypted data
```

Decrypting files:
```python
from chunkcrypt.cryptchunk import decrypt_file, downl_decrypt
# decrypt_file(key, encrypted_file, output_file)
# downl_decrypt(url, output_file, key, silent=True,  pre='', suff='', msg_v='')
# decryption can also be done on file encrypted using encrypt_file()

# decrypting a file
decrypt_file('CemuWNzkXti7OVAmFV0SIpZAxkF2wybK', '/home/user/encrytfile.txt', '/home/user/decryptfile.txt')

# decrypting from url, only works on direct download link or hotlink
downl_decrypt('https://sampledownl.com/download/encryptedfile.txt', '/home/user/decryptfile.txt', 'CemuWNzkXti7OVAmFV0SIpZAxkF2wybK')

# decrypting from url, with message
downl_decrypt(
    'https://sampledownl.com/download/encryptedfile.txt', 
    '/home/user/decryptfile.txt', 
    'CemuWNzkXti7OVAmFV0SIpZAxkF2wybK',
    False,
    ' * ',
    ' - Test',
    'MyFile'
)
# Output:
#  * Attempting to Download MyFile - Test
#  * Finished Downloading MyFile - Test
#  * Attempting to Decrypt Downloaded MyFile. Please wait, this might take a while depending on the size of file - Test
#  * Finished decrypting MyFile - Test
```
lambda-cli 1.0.1
Lambda Labs instance management
Keywords: development

# lambda-cli
CLI for managing [Lambda Labs](https://lambdalabs.com/service/gpu-cloud) instances.

## Installation
```bash
pip install lambda-cli
```

You may also install the package from source:
```bash
git clone https://github.com/gmittal/lambda-cli
cd lambda-cli
pip install .
```

## Usage

Authenticate with your email and password:

```shell
lambda auth
```

Create instances:

```shell
$ lambda up --instance_type=gpu.8x.v100
```

List existing instances:

```shell
$ lambda ls
ID                                IP               INSTANCE_TYPE  STATE
23d0a8af2e414762ab8a10d3841d9574  104.171.203.194  gpu.8x.v100    BOOTING
```

Terminate instances:

```shell
$ lambda rm 23d0a8af2e414762ab8a10d3841d9574
```

## License
MIT
django-simple-profiler 0.5.1
Django simple profiler it is a useful tool for Django framework that allows you to profile your views.
Requires Python: >=3.9

# Django simple profiler
Django simple profiler it is a useful tool for Django framework that allows you to profiling your views.

Example of use:
- decorate your views
- use as context manager

Requires DEBUG=True in settings.py (!)

```no-highlight
https://github.com/Sobolev5/django-simple-profiler
```

# How to install it
To install run:
```no-highlight
pip install django-simple-profiler
```


# example.py
```python
from django_simple_profiler import django_profiler # as decorator
from django_simple_profiler import django_profiler_full # as decorator with full queries
from django_simple_profiler import DjangoProfiler # as context manager


@django_profiler
def get_countries(request):
    for country in Country.objects.all():
        print(country)
    return HttpResponse("OK")

@django_profiler_full
def get_countries(request):
    for country in Country.objects.all():
        print(country)
    return HttpResponse("OK")

def get_countries(request):

    # simple
    with DjangoProfiler() as dp: 
        for country in Country.objects.all():
            print(country)

    # full queries
    with DjangoProfiler(full=True) as dp:
        for country in Country.objects.all():
            print(country)

    # with label
    with DjangoProfiler(label="ActiveCountries") as dp:
        for country in Country.objects.filter(active=True):
            print(country)

    # with label and full queries
    with DjangoProfiler(label="ActiveCountries", full=True) as dp:
        for country in Country.objects.filter(active=True):
            print(country)

    return HttpResponse("OK")
```

![](https://github.com/Sobolev5/django-simple-profiler/blob/master/screenshots/screen.png)

## P.S.
Try my free service for developers [Workhours.space](https://workhours.space/). 
It's time tracker with simple interface, powerful functionality such as automatic payroll calculation, 
telegram bot timer, easy web2 and web3 auth and more. Enjoy.