semvec/pypi-packages huggingface dataset:
smilepack 0.2.1
A website where you can create collections on smiles and use it on other sites
License: MIT

Smilepack
=========

A website where you can create collections on smiles and use it on other sites.


Quick start
-----------

Install Smilepack from PyPI:

    pip3 install smilepack

Create administrator account:

    smilepack createsuperuser

It also creates `database.sqlite3` in current directory.

Run HTTP server:

    smilepack runserver

Now website is available at `http://localhost:5000/` and ready for use, but uploading of icons and smiles is recommended:

Open `http://localhost:5000/login/` and login as administrator. Open `http://localhost:5000/admin/`, click "Other actions" -> "Icon management" and upload at least one icon (don't forget to configure uploader if you wish upload icon from computer). Tick uploaded icon to publish it, and refresh the page. Now you can create categories of collection and upload smiles here.

For production you can use gunicorn (or another WSGI server):

    gunicorn -w 4 'smilepack.application:create_app()'


Configuration
-------------

You can change default settings by `.py` file containing configuration class. Example in `examples/settings.py`. Save it as `local_settings.py` and load using environment variable:

    export SMILEPACK_SETTINGS=local_settings.Production

You can specify any Python object. Be sure that `local_settings.py` must be available in `PYTHONPATH`.

For development you can inherit class `smilepack.settings.Development`, for production use `smilepack.settings.Config`.


Database
--------

* `DATABASE_ENGINE` и `DATABASE` are [Pony ORM connection settings](http://doc.ponyorm.com/database.html#database-providers). `examples/settings.py` has example for MySQL. Default database is `sqlite3`.


Smiles
------

Smiles need to be stored somewhere. Use `UPLOAD_METHOD`:

* `None` (default) — don't save. All smiles should be uploaded to some hosting in advance.

* `'imgur'` — upload to Imgur. For this, set `IMGUR_ID` of API application. You need to install `Flask-Imgur`.

* `'directory'` — upload to `SMILES_DIRECTORY`.

`ICON_UPLOAD_METHOD` setting is similar.

If upload method is set, you can disable custom urls of smiles by `ALLOW_CUSTOM_URLS = True`. Then all links of user will reuploaded.

`SMILE_URL` — template for links of smiles stored in `SMILES_DIRECTORY`. Default `/smiles/images/{filename}`; if you use another url (CDN for example), you can set another template here. `ICON_URL` setting is similar.


Utilites
--------

* `smilepack status` — partly verifies the operability of configuration and database;

* `smilepack shell` — runs interactive console with application.
nobu 1.0.4
A Library for turning a raspberry pi into a Server/Access Point
License: MIT
Keywords: raspberypi accesspoint wifi

## Raspberry Pi as an AccessPoint (AP) and Server
**Nobu** is a minimum library to use the Raspberry Pi as an AccessPoint and a Web Server. It's important to note that depending on the Wireless Network card you maybe using (Realtek for example) the appropriate `hostapd` will need to be downloaded. For example the Raspbian hostapd doesn't work
on some Realtek chips (Realtek-RTL8188 for ex), as a result I've used the driver from Realtek.

# EXAMPLE
```python
  import nobu
  n = nobu.Nobu("ssid", "passwd_must_>_8_chars")
```

There are three components to create a Linux Accesspoint: hostapd (host access point daemon), interfaces configuration, dhcpd (dynamic host configuration protocol)

# HOSTAPD
The hostapd mainly broadcasts the RPi as an Access Point. in its configuration file is where you set up the connection details (SSID/Password etc.,)
Bear in mind that this process and guide uses a Realtek WiFi chip, which REQUIRES its own Driver. So the hostapd that comes default with Raspbian WILL NOT WORK!
I've included the correct default hostapd but it can be found online as well.
Reference: https://jenssegers.com/43/Realtek-RTL8188-based-access-point-on-Raspberry-Pi
`sudo service hostapd start`
`sudo hostapd /etc/hostapd/hostapd.conf `

# Interfaces (/etc/network/interfaces)
This is where all the networking interfaces configuration go: ethernet (eth01), wireless (wlan0 for ex)
This is where you set up the static IP Address for the RPi which other devices will use when the send data to the Pi using sockets
`sudo ifconfig wlan0 192.168.42.1`
`sudo ifdown wlan0`
`sudo ifup wlan0`

# dhcpd
Since the Pi is acting as a server it needs to communicate with the clients connected. To do so it needs to assign each client an IP address. Dynamic Host Configuration Protocol allows `hosts` that connect to be dynanimically configured for communication with the server (by receiving IP addresses).
Neeed to also edit `/etc/default/isc-dhcp-server` and set INTERFACES="wlan0" letting know the dhcp server will assign IP addresses to clients connecting on to the access point.
`sudo dhcpd -cf /etc/dhcp/dhcpd.conf`
`sudo service isc-dhcp-server status`

# References
For more advanced setup like having the Pi connect with ethernet for an AP that can forward requests check out Adafruit
Monitor the logs as the AP connection/handshake takes place: `tail -f /var/log/syslog`
pryme 0.2
A number theory package
License: MIT

# pryme

## written by J. Alex Ruble (Calamitizer)

([GitHub repository](https://github.com/Calamitizer/pryme))

## Overview

Note: This module is early in development and not too much super-cool stuff is implemented. Check it out if you're curious, though. The `Decomposition` class is pretty nifty.

This is (/ will be) a Python module for various number-theoretic operations and combinatorial structures. Certain major functions are memoized to disk for efficiency. For example, output data for `decompose()` (which computes the prime factorization of its argument) is stored in `./memo/decompose.pryme`.

This module is *not* intended to be suitable or efficient for large primes (> 2^64). The focus of this module is number theory on a more mundane scale. For efficient large primality tests and factorizations, the user is directed towards such modules as `gmpy2` and `SymPy`.

## Usage Guide

`NotImplemented`

## Changelog

### v0.2 (21 March '16)

* Miller-Rabin primality test implemented.
* `Decomposition`s are properly memoized.
* `Decomposition` testing script begun.

### v0.1 (13 March '16)

This is the first pushed version of pryme. Noteworthy features: the `Decomposition` class and various utility decorators.

## Jolly Cooperation

All contributions to and optimizations of this project are welcome. Just fork pryme on GitHub and follow your heart.

## Implementation

This code is written in Python 2.7.3. (So far) only Python standard library modules are used.

## Author

You can reach the author (Alex Ruble) most easily via GitHub ([Calamitizer](https://github.com/calamitizer)), email ([jaruble@ncsu.edu](mailto:jaruble@ncsu.edu)), or Twitter ([@aknifeallblade](https://twitter.com/aknifeallblade)).

## License

This software has no associated copyrights whatsoever (*i*.*e*. an [unlicense](http://unlicense.org/)). See `LICENSE.txt` for the full description. Crediting me is appreciated, but not required.