semvec/pypi-packages huggingface dataset:
dexec 0.1.2
Easily run commands inside your projects' Docker containers
Requires Python: >=3.6

# dexec (Docker exec)

dexec allows you to easily run commands inside project-based Docker containers.

## Installation

~~~
python3 -m pip install dexec
~~~

## Usage

Simply create a `.dexec` file like this:

~~~
[dexec]
container=my_container
path=/data
~~~

Where `container` is the name of the container, and `path` the path inside the
container of the directory in which the `.dexec` file is placed.

Now, just run:

~~~
dexec ls -l
~~~

And you'll see the directory listing from inside the container. Other commands
can be executed just the same, and they can be relative to the path:

~~~
dexec ./bin/my-script
~~~
django-upstorage-backend 1.2
Custom Storage For UpStorage.
Keywords: python,storage,api,upstorage,django-upstorage-backend

## django-upstorage-backend

This is a custom django storage backend for `UpStorage`

## Installation
1. Install Library Using `pip`
````shell script
>> pip install django-upstorage-backend
````

## Starting Guide

1. Set The Custom Storage Backend. Now Open settings.py of your project.
````python
DEFAULT_FILE_STORAGE = 'django-upstorage-backend.storages.backends.U3Storage'
````

2. Set some required KEYS to `settings.py`
````python
AUTH_TOKEN = 'auth token from your account'
API_KEY = 'api key of your project'
USERNAME = 'username of your account'
PROJECT_NAME = 'Created Project name'
````

Thats it, We are all done. Now all of your files will be handeled by the custom UpStorage's Backend Storage.


## Advanced Guide

* `You don't need to set 'upload_to' in model Fields (Defaultly it files will be saved on the root of your project.)`

* `File Link Will Be Stored On Your Model As Expected.You Can call them as you do usally.`

* `You Can also set 'upload_to='specific/folder' in your model like:`
   ````python
  Class TestModel(model.Model):
      image = models.ImageField(upload_to='to/my/folder')
  
  # this will save the file to that folder.if there's no folder it will create it.
  ````

* `If you want to delete the image from the UpStorage Bucket when you delete it from django, you have to do it a bit differently.Lemme show you`
   ````python
  Class TestModel(model.Model):
      image = models.ImageField()
  
  # To delete the image you have to delete that by writing:
  
  obj = TestModel.objects.get(id=pk)
  obj.image.delete()
  
  # You can't directly delete it like this:
  
  obj.delete() # this won't delete the file from UpStorage
  
  # You have to delete the file field first to delete it.
  ````
  To make it simple you can override `delete` Method on your Model
  
  ````python
  Class TestModel(model.Model):
      image = models.ImageField()
  
      def delete(self):
          self.image.delete()
          super(TestModel, self).delete()
  ````
checksum-Pmk456 2.1
Checksum Is Used For checking File Integrity And Matching With Given Hashes
Requires Python: >=3.6

# Checksum
## Installation
```
sudo apt install python3
sudo apt install python3-pip
pip3 install checksum-Pmk456
```
## Using DEB Package
```
wget https://github.com/pmk456/checksum/releases/download/checksum_amd64/checksum_amd64.deb
sudo dpkg -i checksum_amd64.deb
```
## Usage
```
usage: checksum [-h] [--hash HASH] [-a A] path

* Copyright of Patan Musthakheem, 2021 * Supports Checksum For SHA256, SHA1, MD5

positional arguments:
  path         Path of The File

optional arguments:
  -h, --help   show this help message and exit
  --hash HASH  Hash To Compare With
  -a A         Algorithm Of Hashing
```