semvec/pypi-packages huggingface dataset:
rspack 0.1.0
pack resource files to a python script
License: MIT

# RSPack

<p align="center">
  <a href="https://pypi.org/project/rspack/"><img src="https://pepy.tech/badge/rspack" alt="Total Downloads"></a>
  <a href="https://www.python.org/downloads/" title="Python Version"><img src="https://img.shields.io/badge/python-%3E=_3.6-green.svg"></a>
  <a href="LICENSE" title="License: MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
  <a href="https://pypi.org/project/rspack/"><img src="https://badge.fury.io/py/rspack.svg" alt="PyPi Package Version"></a>
  <a href="https://github.com/360modder/rspack"><img src="https://img.shields.io/github/repo-size/360modder/rspack.svg" alt="Repository Size"></a>
</p>

pack resource files to a python script

## Installations

```bash
pip install rspack
```

Or install from github repository.

```bash
pip install https://github.com/360modder/rspack/archive/master.zip
```

## Usage

1. Create a file named **rspacker.py** in root directoray of program.

```python
from rspack import PackResource

packed_container = PackResource("rspacked.py") # packed file
# add resources by relative path only
packed_container.add("README.md") # add files
packed_container.add_dir("images") # add dir
```

```bash
$ python rspacker.py
```

2. To unpack all resources, prepend below snippet to any script.

```python
from rspacked import packed_resources

for packed_file in packed_resources.values():
    packed_file.unpack()
```

More detailed [example](examples/file_operation/README.md).

## Some More Snippets

1. To unpack all resources in root directoray of program, prepend below snippet to any script.

```python
import os
from rspacked import packed_resources

script_dir = os.path.dirname(os.path.abspath(__file__))

for path, packed_file in packed_resources.items():
    packed_file.unpack(os.path.join(script_dir, path), restorepath=False)
```

2. To delete unpacked resources, postpend below snippet to any script.

```python
for packed_file in packed_resources.values():
    packed_file.delete()
```

## Some Important Points

1. Never use rspack unless program is distributed.

2. It would be highly memory intensive if you pack more high sizes files.

3. If you pack resources with rspack then it would work with pyinstaller without using *--add-data* flag.

## Links

- [pypi/rspack](https://pypi.org/project/rspack/)
- [CHANGELOG.md](CHANGELOG.md)

## License

Â© 2021 360modder

This repository is licensed under the MIT license. See LICENSE for details.
how2write 0.1.2
An english-learning helper
License: MIT

how2write
=========

.. image:: https://img.shields.io/pypi/v/how2write.svg
    :target: https://pypi.python.org/pypi/how2write
    :alt: Latest PyPI version

.. image:: https://travis-ci.org/kragniz/cookiecutter-pypackage-minimal.png
   :target: https://travis-ci.org/kragniz/cookiecutter-pypackage-minimal
   :alt: Latest Travis CI build status

An english-learning helper

Usage
-----
You can use how2write using the `how2write` command.
Installation
------------
`pip install how2write`
Requirements
^^^^^^^^^^^^
`pygame`, `requests`, `gTTS`
Compatibility
-------------
Python 3.6 and higher
Licence
-------
MIT
Authors
-------

`how2write` was written by `Christophe Prat <christopheprat@icloud.com>`_.
database-base-class 0.1.2
This is some boilerplate code that I commonly use in my database classes.
License: MIT

===================
database-base-class
===================


This is some boilerplate code that I commonly use in my database classes.


Description
===========

There are a handful of things that I commonly use in my database classes, and I decided to put them in one spot.

* insert_or_merge replicates the ``MERGE`` function in SQL. I mostly use SqlAlchemy in my database projects, and there is currently no ``MERGE`` function. This is really only tested in Sqlite and Sql Server. (https://github.com/sqlalchemy/sqlalchemy/issues/5441)
* Logic to determine which dates have mot been processed. This makes it easier to run the script on a large set of days, and process any unprocessed days. If the server goes down, or the data flow stops working for some reason, this will back fill days. It makes the code more flexible.

Note
====

This project has been set up using PyScaffold 4.0.2. For details and usage
information on PyScaffold see https://pyscaffold.org/.