semvec/pypi-packages huggingface dataset:
pngcoder 1.3
Encode (obfuscate) any file to PNG or WAV and vise versa
License: MIT
Requires Python: >=3.7
Keywords: obfuscate obfuscator encode encoder png wav binary

# PNGCODER - Obfuscate any data
Encode any file to PNG image or WAV and vise versa, binary safe
### Warning! ###
**When converting to PNG, if the original file ends with one or more NUL control character, it will be removed after decoding back**

Usage of pngcoder:

```
pngcoder [--decode] [--quiet] [--verbose] input_file output_file

positional arguments:
  input_file     Source file
  output_file    Destination file

optional arguments:
  -h, --help     show this help message and exit
  --quiet, -q    Quiet mode
  --verbose, -v  If passed, a message will be shown for each row of image
                 decoding
  --decode, -d   If passed, source file will be decoded
```

Usage of wavcoder:

```
wavcoder [-h] [--quiet] [--decode] [--samplerate SAMPLERATE] [--channels CHANNELS] input_file output_file

positional arguments:
  input_file            Source file
  output_file           Destination file

optional arguments:
  -h, --help            show this help message and exit
  --quiet, -q           Quiet mode
  --decode, -d          If passed, input file will be decoded from WAV
  --samplerate SAMPLERATE, -s SAMPLERATE
                        Sample rate. Default: 8000
  --channels CHANNELS, -c CHANNELS
                        Number of channels. Default: 1
```
djgo 0.0.2
A pack of shortcuts for Django.
License: MIT
Requires Python: >=3.8,<4.0

# djgo

## Description

This package provides some shortcuts for your django app.

## Installation

    pip install djgo

- [PyPI page](https://pypi.org/project/djgo/)
- [GitHub page](https://github.com/Ceterai/djgo/)

## Usage

djgo has shortcuts for different parts of the app.
To use it, simply import it with `import djgo`.

### manage.py

Method `start_django()` (or `manage()`) is a shortcut for launching Django.

### wsgi.py

Method `set_wsgi()` is a shortcut that sets Django settings env variable and returns default wsgi application.

### urls.py

Method `load_app()` is a shortcut that loads and returns an app module or its part.

### app/contrib.py

Method `app_config()` is a shortcut that sets Django app config. Example:

    from djpp import app_config
    default_app_config = app_config(verbose_name='My Cool App')

### app/models.py

Decorator `@meta` is a shortcut that sets meta and \_\_str\_\_() for your model.  
WARNING: All meta defined this way won't register in migrations.  
Example:

    @meta(single='My Client', plural='My Clients', display='name')
    class Client(models.Model):
        name = models.CharField()

is equal to

    class Client(models.Model):
        name = models.CharField()
        class Meta:
            verbose_name = 'My Client'
            verbose_name_plural = 'My Clients'
        def \_\_str\_\_():
            return self.name

except the meta (name and verbose_name) won't register in migrations.

You can also pass functions to `display`:

    @meta('My Client', display=lambda self: 'Cool ' + str(self.name))
    class Client(models.Model):
        name = models.CharField()

is equal to

    class Client(models.Model):
        name = models.CharField()
        class Meta:
            name = 'My Client'
            verbose_name = 'My Client'
        def \_\_str\_\_():
            return 'Cool ' + str(self.name)

except the meta (name and verbose_name) won't register in migrations.

### djgo.admin

djgo has a small set of methods for admin site and admin.py file:

- `admin.urls` is a shortcut for `path('url', admin.site.urls)`, except adds '/' in the end of your url string if it doesn't have one.
- `admin.meta` is a shortcut for setting `admin.site.site_header` and `admin.site.site_title`.
- `admin.clear_models` is a shortcut for clearing models from admin site registry.
- `admin.quick_inline` is a **decorator** for setting some tabular inline params.

### Other features

You can also access settings through djgo with `djgo.settings`!

Lastly, djgo provides a small `log()` method for printing some info.
pytest-ckan 0.0.12
Backport of CKAN 2.9 pytest plugin and fixtures to CAKN 2.8
License: MIT
Keywords: ckan,pytest

CKAN 2.8 Pytest Plugin and Fixtures
===================================
This project backports the `pytest` environment for CKAN from CKAN 2.9 to CKAN
2.8. This allows CKAN extension developers to test CKAN plugins built to 
work with CKAN 2.8 as well as CKAN 2.9 or newer using a single unified test
suite. 

Installation & Usage
--------------------
To use this in your project:

 * Add this library to your CKAN plugin project
 * Write your tests with pytest (you can use CKAN fixtures as described below)
 * Run `pytest`
 * When tested with CKAN 2.9 or newer, CKAN's built-in pytest plugin and fixtures 
   will be used
 * When tested with older versions of CKAN, the code in `pytest_ckan` will
   be used instead

### Adding to CKAN project

To use this plugin to test your CKAN extension, simply install this library to
your development / testing environment:

    pip install pytest-ckan

If you maintain a `dev-requirements.txt` or `test-requirements.txt` file you 
can add this library to it. 

### Running Pytest
To enable CKAN testing, simply add `--ckan-ini=<path/to/test.ini>` to your 
`pytest` command, for example:

```bash
pytest --ckan-ini=test.ini ckanext/yourextension/tests
```

### Using CKAN Fixtures and Markers in Tests

TBD; 

For now, see 
[CKAN 2.9's extension testing guide](https://docs.ckan.org/en/latest/extensions/testing-extensions.html)
for some examples. 

License & Acknowledgement
-------------------------
This work is largely based on 
[@wardi's work for ckanext-scheming](https://github.com/ckan/ckanext-scheming/pull/242). 
It has been extracted so it can be re-used by other CKAN extensions.

[ckanext-scheming](https://github.com/ckan/ckanext-scheming) is copyright 
(c) Her Majesty the Queen in Right of Canada, represented 
by the President of the Treasury Board, 2013-2018

This plugin is free software districuted under the terms of the MIT License. 
See [COPYING](COPYING) for details.  

Copyright 2020 (c) Viderum Inc. / Datopian