semvec/pypi-packages huggingface dataset:
ftpbackup 0.1.6
Backup the folder to FTP!
License: MIT

FtpBackup Overview
====================

FtpBackup provides a simple way to backup all things in your folder to FTP.

FtpBackup take thesettings in the config file (default is `.ftpbackup`). And
you can add ignore files in `.ftpignore` and `.gitignore`.

Installation
------------
::

      pip install ftpbackup

Tested Platforms
-----------------

- Python:

 - 3.4-3.6

- Windows (32bit/64bit):

 - Only test on win10 now.


Getting started
---------------

1. Generate your config file ::

    ftpbk genconf

2. Edit your config file.
3. Add a new file called '`.ftpignore`' and edit it.
4. Backup your floder to FTP by the command. ::

    ftpbk backup

NOTE : Because `.ftpbackup` contains IP, password, and other pravite info. So
it's necessary to add it in `.gitignore` or `.ftpignore` manually. You can also
add it in git global ignore file list.

Set the config file (default: `.ftpconfig`)
-------------------------------------------

The default config is like below. ::

    {
        "protocol": "ftp", // string - Only 'ftp' now.
        "host": "localhost", // string - The hostname or IP address of the FTP server. Default: 'localhost'
        "encoding": "utf-8", // string - The encoding of the FTP server. Default: utf-8
        "port": 21, // integer - The port of the FTP server. Default: 21
        "user": "anonymous", // string - Username for authentication. Default: 'anonymous'
        "pass": "anonymous@", // string - Password for authentication. Default: 'anonymous@'
        "remote": "/", // string - The path on FTP to upload files.
        // NOTE : Use absolute path of remote or get a error.
        "local": ".", // string - The folder on local to be uploaded.
        "useGitIgnore": true, // bool - Use .gitignore in ignored file list.
        "gitIgnoreEncoding": "utf-8", // string - The encoding of .gitignore
        "useFtpIgnore": true, // bool - Use .ftpignore in ignored file list.
        "ftpIgnoreEncoding": "utf-8" // string - The encoding of .ftpignore
    }

Set the .ftpignore
------------------
The format of `.ftpignore` is just like `.gitignore`.

CLI
---
::

    usage: ftpbk [-h] {genconf,backup} ...

    Backup to FTP.

    optional arguments:
      -h, --help        show this help message and exit

    commands:
      {genconf,backup}

command 'genconf'::

    usage: ftpbk genconf [-h] [-F] [-f FILE]

    Generate a default config file.

    optional arguments:
      -h, --help            show this help message and exit
      -F, --force           overwrite the config file if it exists.
      -f FILE, --file FILE  assign the config file to be writed, default is
                            '.ftpbackup'.

command 'backup'::

    usage: ftpbk backup [-h] [-c CONFIGFILE]

    Backup all the file in the 'local' floder to 'remote' on ftp. You can change
    the config in config file(default is '.ftpbackup').

    optional arguments:
      -h, --help            show this help message and exit
      -c CONFIGFILE, --conf CONFIGFILE
                            assign the config file to be loaded, default is
                            '.ftpbackup'.
diceware_utils 0.6.0
A collection of tools to make diceware passphrase conform with "password policy"
License: MIT
Keywords: password leet leetspeak diceware

# Diceware Utilities

[![Build Status](https://travis-ci.org/patarapolw/diceware_utils.svg?branch=master)](https://travis-ci.org/patarapolw/diceware_utils)
[![PyPI version shields.io](https://img.shields.io/pypi/v/diceware_utils.svg)](https://pypi.python.org/pypi/diceware_utils/)
[![PyPI license](https://img.shields.io/pypi/l/diceware_utils.svg)](https://pypi.python.org/pypi/diceware_utils/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/diceware_utils.svg)](https://pypi.python.org/pypi/diceware_utils/)
[![PyPI status](https://img.shields.io/pypi/status/diceware_utils.svg)](https://pypi.python.org/pypi/diceware_utils/)

A collection of tools to make diceware passphrase conform with ["password policy"](https://en.wikipedia.org/wiki/Password_policy)

## Update

- (2017.05.22) Allow "weak" password generation.

```pycon
>>> from diceware_utils.generate import GeneratePassword
>>> GeneratePassword().generate(weak=True)
'+"75ImposeRompSudoku'
```

## Installation

```commandline
pip install diceware_utils
```

or

```commandline
pipenv install -e git+https://github.com/patarapolw/diceware_utils.git#egg=diceware_utils
```

## Usage

```pycon
>>> from diceware_utils.policy import Conformize
>>> conformize = Conformize()
>>> conformize.conformize(['unlikely', 'piezo', 'electric', 'grounds'])
';U$Piezo33lGrounds'
>>> conformize.update_policy(new_policy)
>>> from diceware_utils.wordlist import Wordlist
>>> Wordlist().get_random_word()
'ladybug'
>>> from diceware_utils.generate import GeneratePassword
>>> GeneratePassword().generate()
',Ab17HaRLanky-RoyalS'
```

## Adapting to the policy of your choice 

- Policy is now updateable. It is of format:

```yaml
both_upper_and_lower: true
digit_count: 2
punctuation_count: 2
length:
  min: 10
  max: 20
```
## Database sources

`leetspeak.yaml`, `policy.yaml` and Conformization algorithm are original. Wordlists are taken from [pwgen-passphrase](https://github.com/xmikos/pwgen-passphrase), which belongs to the respective authors.

Main wordlist to generate the password is `eff-long.txt`, which is from Electronic Frontier Foundation.

Another interesting wordlist in this series is `aspell-en.txt` which is maintained by Kevin Atkinson. I exported these two files to the Android app below.

The idea of diceware password is from [https://xkcd.com/936/](https://xkcd.com/936/).

## Web demo

http://diceware-utils.herokuapp.com

<img src="https://i.imgur.com/yy7EoW1.png">

## Mobile application

Please see [Keepass DX - memorable password](https://github.com/patarapolw/KeePassDX-memorable-password) -- an Android password manager with this generator.

I might plan to create a dedicated app for this password generator (probably without manager), because of the relatively slow start-up time of the SentenceMaker.

## Related projects

- [randomsentence](https://github.com/patarapolw/randomsentence) - a random sentence maker based on a list of keywords.
slydes 0.0.3
Why not show your presentations with Python?
License: MIT

# Slydes
Why not show your presentations with Python?

[![codecov](https://codecov.io/gh/jonatasbaldin/slydes/branch/master/graph/badge.svg)](https://codecov.io/gh/jonatasbaldin/slydes)
[![CircleCI](https://circleci.com/gh/jonatasbaldin/slydes/tree/master.svg?style=svg)](https://circleci.com/gh/jonatasbaldin/slydes/tree/master)

### Installing
```bash
$ pip install slydes
```

### Create a presentation
`$ cat presentation.py`

```python
from slydes import Presentation, Template


talk = Presentation()
template = Template()


@talk.add_slide
def first_slide():
    title = 'This is the title!'
    msg = '''
    Hello world!
    My name is PySlides!
    '''
    return template.default(title, msg)
    

@talk.add_slide
def second_slide():
    title = 'The second slide!'
    msg = '''
    * Bullet points!
    * why
    * not?
    '''
    return template.default(title, msg)
```

### Run it
`$ ipython`
```bash
from presentation import talk

talk.next()
--------------------------------------------------------------------------------
#                                                                              #
#                                                                              #
#      This is the title!                                                      #
#                                                                              #
#                                                                              #
#          Hello world!                                                        #
#          My name is PySlides!                                                #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
#                                                                              #
--------------------------------------------------------------------------------
```

### Presentation Mode
Now you can navigate the presentation using the arrow keys! To exit, just type `CTRL+C`.
```python
talk.present()
```

### Complete API
```python
# Move to next slide
talk.next()
# or
talk()

# Move to previous slide
talk.previous()

# Shows current slide
talk.current()
```

### Important (or not!)
The library is suuuuuuuper alpha, at the point that we could change everything!  
If you have any ideas, please drop an issue ❤️