semvec/pypi-packages huggingface dataset:
r2 0.4.2
Software 'r2' is designed to record and replay responses (to mock) from REST API services
Requires Python: >=3.6

# r2 (Record2Replay)
Record2Replay is simple tool to record your requests on specific target and later replay it to automate your daily tasks

__Note:__ This version is still Work In Progress. Record/Replay function should work with no problems, but it is lack of features. 

## TLDR;
```
# install
pip install r2

# record responses from another service
r2 record http://api.plos.org

# or record on the custom name 'api_plos'
r2 record http://api.plos.org --package api_plos

```

Go to your browser and type: 

`localhost:5000/search?q=title:DNA`

in your home directory, all response will be saved at
 
`~/.r2/packages/default/*`

```
# to replay packages 
r2 replay

# or to replay a custom package 'api_plos'
r2 replay --package api_plos
```

## TODO
__Note:__ This is partly implemented with 0.2 version.

- Implement an option to parse arguments ex `http://127.0.0.1:5000/search?q=title:DNA`. Actual version will pass 
everything on the right side of the `?` and save a file under `search`.

- Add a support for more than one package

## Installation
You can install a `r2` software using a python package manager or build it from source code:

### from pip
`r2` is available thru `pip`, to install type `pip install r2`

### from source
Go into `src` directory of source, and type `python setup.py sdist bdist_wheel && cd dist && pip install r2*.whl` 


## Replay files
Replay files store base information about the response, from the service. 

Actual support:
- json response 

Future upgrade:
- raw response
- additional status codes
- additional information from headers

## Logs files 
All logs are stored at `~/.r2/logs` directory with filenames `r2_record_2020_08_04T18_06_02_050068` 
where (`r2_[action_type]_[isoformat_time]`).


### Format change v0.1 to v0.2
Since version v0.2, `r2` presents a new format to store response information from the services. 
Before v0.2 all response was stored as a raw text in the file. Now, the Response is packed: 

_Example_:
- Before: 
```
{"test": "test_body"}
```

- Now:
```
{
"data_id": "test\endpoint", 
"actions": [
    {"arguments": {}, 
     "response": {
         "test": "test_body"}
     }]
}
```

This approach allow us to store different information for whole range of arguments deliver thru the URL.
autoneo 0.0.2
A simple tool for building graph databases from multiple relational sources.
Requires Python: >=3.7

# Autoneo

Autoneo makes it easy to build complex graphs in Neo4j.

This tool allows users to represent their graph structure in a JSON schema, with the JSON containing
the properties to load into Neo4j but also how to extract the information from a data source.

### Using autoneo

#### Prequisites

Set up Neo4j to allow imports from external sources. This allows data from CSV files to be loaded into Neo4j (which is how this tool does its job!). 

1. Go to the config file for your instance. (You can find this location by starting neo4j from the command line. There will be a line of output showing the location of the `config` directory. The config file inside it. )
2. Comment out this line: dbms.directories.import=import (Add a #)
3. Uncomment this line: #dbms.security.allow_csv_import_from_file_urls=true (Remove the #)


#### Install autoneo

1. `pip install autoneo`


#### Using autoneo

##### In Code

You can use `autoneo` like:

```
from autoneo import builder

builder.build(
    "path/to/config.json", 
    "path/to/data_dir", 
    "path/to/query_dir", 
    "path/to/csv_dir")
```

See [config.json](https://github.com/raghavp96/autoneo/blob/master/tests/config.json) for an example of how to define a graph. Currently we support extraction from sqlite3 databases and CSV files. Support for other databases formats is on the way.

Data directory will contain `.db` files. Query dir will be where all scripts for retrieving data are placed. CSV dir is where you can drop a CSV for when you don't need a Database file/Query File. If you provide those, then a CSV will be generated by autoneo and placed in this directory.


### Working on the project

To build: `python setup.py sdist bdist_wheel`
To upload: `python -m twine upload dist/*` (Token name: pypi_all_purpose)
To run tests: `nosetests` (to run all tests)