semvec/pypi-packages huggingface dataset:
rraw 0.0.0
Raw Reddit API Wrapper
License: MIT
Keywords: Reddit API Wrapper RRAW

RSAW
====

**Raw Reddit API Wrapper**

RRAW is a very light API wrapper, made for `Reddit <https://reddit.com>`_. It allows easier access to Reddit's API and its endpoints, returning a raw JSON result.

Current Version
---------------

RRAW is currently at version: 0.0.0

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

I suggest you install it with pip3

.. code-block:: bash

   pip3 install rraw

Rate Limits
-----------

Your requests will be sent as fast as possible, until the Reddit quota of 60 requests per minute is reached.

How to use
----------

Using RRAW should be very easy. All you need to do is provide your credentials and an endpoint. Once you signup for API access via your `account's app prefrences <https://reddit.com/prefs/apps>`_, you will be able to authenticate and send a GET request like this:

.. code-block:: python

    from rraw import Reddit

    reddit = Reddit(client_id='client_id',
                    client_secret='client_secret',
                    username='username',
                    password='password',
                    app='user_agent',
                    token_file='/tmp/token')
    usr_info = reddit.get('/api/v1/me')
    print(usr_info)

Or to send a POST request:

.. code-block:: python

    from rraw import Reddit

    reddit = Reddit(client_id='client_id',
                    client_secret='client_secret',
                    username='username',
                    password='password',
                    app='user_agent',
                    token_file='/tmp/token')
    paramaters = {'kind': 'self', 'sr': 'subreddit', 'title': 'testing - title', 'text': 'testing - selftext'}
    submit = reddit.post('/api/submit', params=paramaters)
    print(submit)

This will submit a self post to `/r/test <https://reddit.com/r/test>`_, with a title of "testing - title", and a selftext of "testing - selftext".

Additional Info
===============

- You can send GET, PUT, POST, DELETE, and REQUEST requests with RRAW
- My Reddit account is permanently suspended, so if you need help, make an issue here or figure it out yourself.
pypinger 2.0.3
Another way to ping in Python
License: MIT
Keywords: ping,icmp,network

# A Quick Way to Ping in Python

## Install
Currently in Test
```
pip install -i https://test.pypi.org/simple/ pypinger
```

## From the CLI

You can use Pyping from the CLI like so
```
pyping -s 10.10.10.1
```
Or ping a whole subnet with
```
pyping -s 10.10.10.0/24
```

## Programmatically 

The pypinger function will not only print the output to the console but also will return a list of hosts that had successful pings
```
from pypinger import pyping

hosts = pyping('10.10.21.0/24')
print(hosts)
```
Or you can be prompted at runtime for the hosts/subnet
```
from pypinger import pyping

hosts = pyping()
print(hosts)
```

# Contact
- https://twitter.com/data_knox
- https://youtube.com/c/dataknox