Skip to content
API Multiprocessing is a collection of some python and bash scripts that helps to perform API requests using multiprocessing technique.
Python Shell C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
single
subs
utils/sorter
LICENSE
README.md
chart.png
init.bash
main.py
merger.py
names.txt
run.bash

README.md

API Multiprocessing

API Multiprocessing is a collection of some python and bash scripts that helps to perform API requests using multiprocessing technique.

Example Used

Genderize names that consist of 2 alphabetic characters.

Chart

Result based on Genderize names example. Tested on Linux machine (i5, 2.50GHz)


Usage

  • clone this repo: git clone git@github.com:khaledalam/api-multiprocessing.git
  • give 777 permissions to all files: sudo chmod -R 777 api-multiprocessing/
  • set the number of lines per file in split command parameter -l in init.bash file
  • run ./init.bash
  • after all processes done, merge results by run python3 merger.py

to use single process use script in the single folder by run python3 ./single/single.py names.txt

You can customize scripts based regarding your tasks!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

You can’t perform that action at this time.