semvec/pypi-packages huggingface dataset:
nrecord 1.0
test .whl without RECORD file
Requires Python: >=3.7, <4

# A sample Python project

![Python Logo](https://www.python.org/static/community_logos/python-logo.png "Sample inline image")

A sample project that exists as an aid to the [Python Packaging User
Guide][packaging guide]'s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].

This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.

[The source for this project is available here][src].

Most of the configuration for a Python project is done in the `setup.py` file,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.

----

This is the README file for the project.

The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.

Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.

[packaging guide]: https://packaging.python.org
[distribution tutorial]: https://packaging.python.org/tutorials/packaging-projects/
[src]: https://github.com/pypa/sampleproject
[rst]: http://docutils.sourceforge.net/rst.html
[md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
[md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
SafeIp 22.8.22.1310
Safe ip whitelist
Requires Python: >=3.7

# What is `SafeIp`?



SafeIp is a library for IP authentication in Python that focuses on authentication security. It builds algorithms written in pure Python and can be ported to other languages.







## **`SafeIp` infrastructure**



```shell

SafeIp				# library name

│ __init__.py		# function table

└─ __ip__data__.py	# system call table

````







## **`SafeIp` function usage method**







```shell

File function: IP database that supports IPv6 and IPv4 dual-stack protocols.

File Description: Add, delete, verify IP information

File author: mxlbb(cute baby fox)

File Date: August 22, 2022

File function: 	SafeIp.add(ip)

				SafeIp.update(ip)

				SafeIp.remove(ip)

				SafeIp.verify(ip)

				SafeIp.printf()

```







# Why use `SafeIp`?



`SafeIp` development principles:



1. **Security**: `SafeIp` (used with `websockets`) is used as authentication, the transmitted data can be in plain text and illegal users can only view it and cannot change it;

2. **Defense: **`SafeIp` (used in conjunction with `websockets`) will form an almost absolute elimination of all illegal user connections and brute force cracking;

3. **Performance**: `SafeIp` (used with `websockets`) will reduce the performance consumption of the server authentication process and greatly improve the resource allocation of productivity.







# Why not use `SafeIp`?



- If you often use web-provided libraries or have your own set of authentication methods, you can deprecate the library functions provided by `SafeIp`.







# what else?



Bug reports, patches and suggestions welcome!



To report a security vulnerability, please contact the author: Admin@mengyuns.com.



For anything else please open an [issue](https://github.com/aaugustin/websockets/issues/new) or send a [pull request](https://github.com/aaugustin/websockets/compare/) .
django-newauth 0.41
Authentication for Django done right

==============
django-newauth
==============

See the docs at: http://django-newauth.rtfd.io/

Run tests using tox::

    $ tox


Links
=====

- `PyPI <https://pypi.python.org/pypi/django-newauth>`__
- `Documentation <http://django-newauth.rtfd.io/>`__
- `Repository <https://github.com/beproud/django-newauth/>`__

LICENSE
=======

BSD License.

=========
ChangeLog
=========

Release 0.42 (Unreleased)
=========================

Release 0.41 (2022-08-16)
=========================

- Fixed: django.conf.urls.url() is deprecated. Also, path() is more concise than re_path(). Change to use path().
- Fixed: django.shortcuts.render_to_response() is deprecated, change to use django.shortcuts.render().
- Fixed: django.utils.translation.ugettext_lazy() is deprecated, change to use django.utils.translation.gettext_lazy().
- Fixed: django.utils.encoding.force_text() is deprecated, change to use django.utils.encoding.force_str().
- Fixed: Deprecated assertEquals() in unittest used by Django, changed to assertEqual().

Release 0.40 (2021-12-28)
=========================

- Support Django-3.2
- Support Python-3.7, 3.8, 3.9, 3.10
- Drop Django-1.11, 3.1
- Drop Python-2.7

Release 0.39 (2020-04-30)
=========================

- Fixed: If login_required is used with Python3, login authentication after the second time fails.
- Support Django-2.2
- Drop Django-1.10

Release 0.38 (2018-09-20)
=========================

- Add missing classifiers: py36, dj versions.
- provide universal wheel
- Add feature: send logged in signal & logged out signal
- Security: masking sensitive post parameter
- Security: safe redirect url for open redirect possibility
- Security: strict safety check for redirect url 

Release 0.37 (2017-05-15)
=========================

- Support Python-3.6
- Support Django-1.11
- Drop Django-1.9

Release 0.36 (2016-12-14)
=========================

- Fixed: issue #7 Exception Type: AttributeError at /logout/


Release 0.35 (2016-11-30)
=========================

- 'newauth.middleware.AuthMiddleware' supports ``settings.MIDDLEWARE`` since django-1.10

Release 0.34 (2016-11-25)
=========================

- Support Django-1.10
- Drop Django-1.7 or earlier
- Provide documentation on ReadTheDocs: http://django-newauth.rtfd.io/

Release 0.33 (2016-02-01)
=========================

- More support Django-1.8 & 1.9

Release 0.32 (2016-01-19)
=========================

- Support Django-1.8 & 1.9
snake-gym-grid 0.5.0
An implementation on Snake game with grid display

# snake-gym

This package is my own implementation on Snake game with Gym integration.

## Usage

```python
import gym
import snake_gym_grid

env = gym.make("snake-gym-10x20-normal-v0")
env.reset()

done = False # whether the snake dies

"""
action ranges from 0 to 3.
0 - LEFT
1 - RIGHT
2 - UP
3 - DOWN
"""
action = ...

observation = env.reset()

while not done:
    env.render()
    observation, reward, done, info = env.step(action)
env.close()
```

## Output at each time step

- observation: Pixel image of the game
- reward: 1.0 when a food is eaten, -1.0 if snake dies, 0.0 otherwise
- done: whether the snake dies
- truncate: whether the game is running for more than 100000 time steps
- info: an empty dictionary for now

## Env registration

- `snake-gym-grid-10x20-normal-v0`: Snake game with 10 x 20 board and 500 x 900 observation
- `snake-gym-grid-10x20-tiny-v0`: Snake game with 10 x 20 board and 80 x 80 observation
- `snake-gym-grid-10x20-1d-v0`: Snake game with 10 x 20 board and summarized observation. Observation in this case is vector `[dangerRight, dangerLeft, dangerBelow, dangerAbove, foodBelow, foodAbove, foodRight, foodLeft]`.

_Note_:

- `danger<Direction>` = neighbor block of snake head in the `<Direction>` is occupied by a snake body or is out of game board.

- `food<Direction>` = is the food in the `<Direction>` of the snake head?

- For any other environment, observation is the raw image from the game view. For tiny, the size is 80 x 80 and for normal, it's 500 x 900.

## Customize environment

Instead of using registered environment, one can utilize the built-in `SnakeGymGrid` class.

```python
# this import is kinda ugly but I have no choice but to follow the gym standard
from snake_gym_grid.envs.snake_gym_grid import SnakeGymGrid

env = SnakeGymGrid(width=..., height=..., n_rows=..., n_cols=...)
...
```