Skip to content

Commit 7089fd2

Browse files
author
2knal
committed
Add PyPi files
Added necessary files for publishing the package.
1 parent 078b707 commit 7089fd2

File tree

7 files changed

+87
-6
lines changed

7 files changed

+87
-6
lines changed

Contributing.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Contributing guidelines
2+
3+
Thank you for your interest in contributing to random_proxies! Here are a few pointers about how you can help.
4+
5+
### Setting things up
6+
7+
To set up the development environment, follow the instructions in README.
8+
9+
### Finding something to work on
10+
11+
The issue tracker of random_proxies is a good place to start. If you find something that interests you, comment on the thread and we’ll help get you started.
12+
13+
Alternatively, if you come across a new bug on the site, please file a new issue and comment if you would like to be assigned. The existing issues are tagged with one or more labels, its importance etc, that can help you in selecting one.

LICENSE LICENSE.txt

File renamed without changes.

README.md

+27-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# random_proxies
1111

12-
### Python package to generate a random proxy on the fly!
12+
Python package to generate a random proxy on the fly!
1313

1414
## Features
1515

@@ -23,13 +23,16 @@
2323

2424

2525
## Example usage
26-
26+
<!-- ```bash
27+
pip install random_proxies
28+
```
29+
or -->
2730
```bash
28-
git clone https://github.com/2knal/random_proxies.git`
29-
cd random_proxies/
30-
pip install -r requirements.txt
31+
$ git clone https://github.com/2knal/random_proxies.git`
32+
$ cd random_proxies/
33+
$ pip install -r requirements.txt
3134
```
32-
Open python interpreter. (Supports version 3.4+)
35+
Open python interpreter. (Supports version 3.7+)
3336

3437
```python
3538
>>> from random_proxies import random_proxy
@@ -41,6 +44,24 @@ Refer more examples [here](./examples/)
4144

4245
## TODO
4346
- [ ] Publish package version 0.0.1
47+
- [ ] Port to MongoDB
4448
- [ ] Scrape proxies from other sources
4549
- [ ] Add support for SOCKS version 5
50+
- [ ] Implement REST API to allow other languages to interface with it
51+
- [ ] Setup documentation page
4652
- [ ] Add unit tests
53+
54+
------------------------------------------
55+
56+
### Contributing
57+
58+
* We are open to `enhancements` & `bug-fixes` 😊. Take a look [here](./Contributing.md) to get started
59+
* Feel free to add issues and submit patches
60+
61+
62+
### Author
63+
Kunal Sonawane - [2knal](https://github.com/2knal)
64+
65+
------------------------------------------
66+
### License
67+
This project is licensed under the MIT - see the [LICENSE](./LICENSE.txt) file for details.

random_proxies/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
from __future__ import absolute_import, unicode_literals
33

44
from random_proxies.proxies import random_proxy
5+
from random_proxies.proxies.settings import __version__
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ELASTIC_PASSWORD=<PASSWORD>

setup.cfg

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Inside of setup.cfg
2+
[metadata]
3+
description-file = README.md
4+
5+
[flake8]
6+
exclude = .git, __pycache__, build, dist, docs, venv, .venv
7+
ignore = E711, E712, F821, E501, E722, E305, W605, W504, W504, E305
8+
max-line-length = 130

setup.py

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import pathlib
2+
from setuptools import setup, find_packages
3+
from random_proxies.proxies.settings import __version__
4+
5+
# The directory containing this file
6+
HERE = pathlib.Path(__file__).parent
7+
8+
# The text of the README file
9+
README = (HERE / "README.md").read_text()
10+
11+
# This call to setup() does all the work
12+
setup(
13+
name = "random_proxies",
14+
version = __version__,
15+
description = "Get a proxy server IP on the fly!",
16+
long_description = README,
17+
long_description_content_type = "text/markdown",
18+
url = "https://github.com/2knal/random_proxies",
19+
author = "Kunal Sonawane",
20+
author_email = "[email protected]",
21+
license = "MIT",
22+
classifiers = [
23+
"License :: OSI Approved :: MIT License",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.7",
26+
],
27+
packages = find_packages(),
28+
include_package_data = True,
29+
install_requires = [
30+
"beautifulsoup4==4.9.0",
31+
"elasticsearch==7.6.0",
32+
"lxml==4.5.0",
33+
"PySocks==1.7.1",
34+
"python-dotenv==0.13.0",
35+
"requests==2.23.0"
36+
]
37+
)

0 commit comments

Comments
 (0)