semvec/pypi-packages huggingface dataset:
fwrite 0.3
Create files of the desired size
License: MIT
Keywords: create file write filewrite fwrite

|Downloads|

fwrite
=======

Create files of the desired size.

Simple example::

    $ fwrite testfile 100M


Install
=======

Install using pip::

    pip install fwrite

or

Download and set executable permission on the script file::

    chmod +x fwrite.py

or

Download and run using the python interpreter::

    python fwrite.py


Usage
=====

::

    Usage: fwrite filename size [options]

    create files of the desired size, e.g., 'fwrite test 10M'

    Options:
    --version       show program's version number and exit
    -h, --help      show this help message and exit
    -r, --random    use random data (very slow)
    -n, --newlines  append new line every 1023 bytes


Examples
========

Create file "test" with 100KB::

    $ fwrite test 100K

Create file "test" with 1GB::

    $ fwrite test 1G

Create file "test" with 10MB of random data::

    $ fwrite test 10M -r

Create file "test" with 10MB of random data with lines::

    $ fwrite test 10M -r -n


Notes
=====

- Works on Python 2 and Python 3
- Tested on Linux and Windows


.. |Downloads| image:: https://pepy.tech/badge/fwrite
audify 0.0.3
A simple command line tool to transform text to speech with AWS.
License: MIT
Keywords: aws polly tts

audify
======

A simple command line tool / python helper to convert a body of text to an mp3
using Amazon Polly. To use audify, you must first have AWS credentials set up.

Installation
------------

It is recommended to install audify using `pip`:

```
$ pip install audify
```

Examples
--------

The most common usage will be to pass in a simple text file and get the output:

```
$ echo "Hello World" > input.txt
$ audify -i input.txt -o output.mp3
```

You can also pass in text from stdin:

```
$ echo "Hello World" | audify -i - -o output.mp3
```

If you want to access audify from a Python script, you can import and call it
directly:

```python
from audify import audify

audify(
    input_filename='input.txt',
    output_filename='output.mp3',
)
```
You can also pass file-like objects:

```python
import io

from audify import audify_fileobj

audify_fileobj(
    fileobj=io.StringIO('Hello World'),
    output_filename='output.mp3',
)
```

Any voice supported by Amazon Polly can be used:

```
$ echo "Hello World" | audify -i - -o output.mp3 -v Joey
```

```python
from audify import audify

audify(
    input_filename='input.txt',
    output_filename='output.mp3',
    voice='Ivy',
)
```