semvec/pypi-packages huggingface dataset:
InstagramGraphQL 1.0.11
InstagramGraphQL Unoffical API
License: MIT

# Fork of IGQL repo for our needs

# InstagramGraphQL Unofficial API
Unofficial Instagram GraphQL API to collet data without authentication.

### Features
* Search for people, hashtags and locations
* Get media data
* Get hashtag data
* Get location data
* Get all comments
* Get all likes
* Get specific user posts
* With sessionid supplied you can get data from private accounts
* There is a lot of cool data returned by GraphQL. For example `accessibility_caption` which you can train your image classifier through it

###### NOTE: This is basically a API to collet data not for uploading or interacting with media. If you want more advanced IG library you should check [LevPasha's Instagram-API-python](https://github.com/LevPasha/Instagram-API-python) package.

### Getting all media of a user
```python
from igql import InstagramGraphQL


igql_api = InstagramGraphQL()

user = igql_api.get_user('instagram')
for media in user.timeline: # This is entry_data not the all media
    print(media.image_url)

for media_list in user.iterate_more_timeline_media():
    for media in media_list:
        print(media.image_url)
```

## Installation
Library is avaible on PyPi so just run

```
pip install InstagramGraphQL
```


# To learn more check [wiki page](https://github.com/FKLC/IGQL/wiki).
SmoothAPI 1.0.3
An API Wrapper For Every API
License: MIT

# Fork of AnyAPI for our needs

# AnyAPI
AnyAPI is a library that I developed for myself to have better looking code instead putting URLs to everywhere I used dynamic method calls to access a endpoint.

### Features
* Have better looking code using dynamic method calls
* Filters to help you to modify request, raise errors or log requests instead of writing functions everywhere.
* Automatically changing proxy according to rate limits specified by you for every path


***

### Examples
Making GET request to https://httpbin.org/anything/endpoint
```python
from anyapi import AnyAPI


base_url = 'https://httpbin.org'
api = AnyAPI(base_url)

api.anything.endpoint.GET()
```
As you can see dots are pretended as slash and at the end you should put dot and HTTP method you want to use in capital letters.

***

Setting header before every request
```python
import datetime
from anyapi import AnyAPI


def set_date_as_header(kwargs):
    now = datetime.datetime.now()
    kwargs['headers'].update({'date': now.strftime('%B %d %Y')})

    return kwargs

api = AnyAPI('https://httpbin.org')
api._filter_request.append(set_date_as_header)

print(api.anything.endpoint.GET().json())
# output
{
   'args': {},
   'data': '',
   'files': {},
   'form': {},
   'headers': {
      'Accept-Encoding': 'identity',
      'Connection': 'close',
      'Date': 'January 16 2019',
      'Host': 'httpbin.org'
   },
   'json': None,
   'method': 'GET',
   'origin': 'XX.XX.XX.XX',
   'url': 'https://httpbin.org/anything/endpoint'
}
```
As you can see filter worked as expected and set `Date` header.

***

Changing proxy automatically after they reach their rate limit
```python
from anyapi import AnyAPI

proxy_configuration = {
  'default': proxy0,
  'proxies': [proxy0, proxy1, proxy2,....], # don't forget to add default proxy!
  'paths': {
    '/anything': rate_limit0,
    '/anything/endpoint': rate_limit1
  }
}

api = AnyAPI('https://httpbin.org', proxy_configuration=proxy_configuration)

for i in range(10):
  print(api.anything.endpoint.GET().json())
```
If you check output of the all them you can see proxy changes when it reaches limit.

### This library is not a new thing
There is a lot of libraries you can find out there for example [Uplink](https://github.com/prkumar/uplink/), [Hammock](https://github.com/kadirpekel/hammock) and many more

***

## Installation
Library is avaible on PyPi so just run

```
pip install anyapi
```


# To learn more about AnyAPI check [wiki page](https://github.com/FKLC/AnyAPI/wiki/)
couchbase-stress-testing 1.0.0
Couchbase stress test
License: MIT
Keywords: couchbase stress testing

=============================
Couchbase Stress Test
=============================

This Couchbase Stress TEST by inseting data to specified bucket

----------

Installation instructions:
--------------------------

Install via ``pip3``:

.. code-block::

   $ pip3 install couchbase-stress-test

Usage example:
--------------

By default, query Couchbase on 127.0.0.1:8091 and run insert query.
You can change these defaults as required by passing in options:

.. code-block::

   $ couchbase-stress-test -c <couchbase host:port> -u <couchbase username> -p <couchbase password> -m <number of thread to execute the calls asynchronously> - r <how many inserts to couchbase>

Docker instructions:
--------------------

Environment variables
In order to configure the Couchbase stress test for use with other than default settings you can pass in the
following environment variables:

.. csv-table:: Environment variables
   :header: "Name", "Description", "Default value"
   :widths: 18, 26, 10

   "COUCHBASE_HOST", "Couchbase host address", "127.0.0.1"
   "COUCHBASE_PORT", "Couchbase port address", "8091"
   "COUCHBASE_USERNAME", "Couchbase username",
   "COUCHBASE_PASSWORD", "Couchbase password",
   "MAX_WORKERS", "Number of thread to execute the calls asynchronously", "1"
   "RANGE", "How many inserts to couchbase", "1000"

Running the container

.. code-block::

   docker run -t -i -e COUCHBASE_HOST=127.0.0.1 -e COUCHBASE_PORT=8091 <image:tag>