ec2-proxy


Nameec2-proxy JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/AG4lyf/ec2_proxy
SummaryThis package provides ability to use amazon aws as proxy with everchanging IP.
upload_time2023-06-12 00:33:08
maintainer
docs_urlNone
authorSuraj Bhari
requires_python>=3.6
licenseApache Software License 2.0
keywords ec2_proxy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            =========
EC2 Proxy
=========


.. image:: https://img.shields.io/pypi/v/ec2_proxy.svg
   :target: https://pypi.python.org/pypi/ec2_proxy

.. image:: https://img.shields.io/travis/AG4lyf/ec2_proxy.svg
   :target: https://travis-ci.com/AG4lyf/ec2_proxy

.. image:: https://readthedocs.org/projects/ec2-proxy/badge/?version=latest
   :target: https://ec2-proxy.readthedocs.io/en/latest/?version=latest
   :alt: Documentation Status


This package provides the ability to use Amazon AWS as a proxy with ever-changing IP.


* Free software: Apache Software License 2.0
* Documentation: https://ec2-proxy.readthedocs.io.

Install a Proxy Server
======================
Read `Setup </proxy_setup.md>`__ for instructions on how to install a proxy server on an EC2 instance.


How to Use
==========
1. Install the package:
      pip install ec2_proxy

2. Create an AWS account and obtain the access key and secret key from `Here <https://us-east-1.console.aws.amazon.com/iamv2/home?region=us-east-1#/security_credentials/access-key-wizard>`__.


There are 2 ways to use this package:

Way #1 - Use it with the credentials that are present in your `.aws` folder in your home directory

.. code-block:: python

      from ec2_proxy import TProxy

      tp = TProxy(<instance_id_here>)
      ip = tp.start()
      print(ip)

Way #2 - Use it with the credentials that you will pass at runtime

.. code-block:: python

      from ec2_proxy import TProxy
      from botocore.config import Config
      import boto3

      region = 'us-west-2'
      access_key_id = 'YOUR_ACCESS_KEY_ID'
      secret_access_key = 'YOUR_SECRET_ACCESS_KEY'

      ec2 = boto3.client('ec2', region_name=region, aws_access_key_id=access_key_id, aws_secret_access_key=secret_access_key)
      tp = TProxy(<instance_id_here>, ec2=ec2)
      ip = tp.start()
      print(ip)


=======
History
=======




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AG4lyf/ec2_proxy",
    "name": "ec2-proxy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "ec2_proxy",
    "author": "Suraj Bhari",
    "author_email": "surajbhari159@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4b/02/1d511da0906796ec2439001f31ff1b7d1bdcca6524bf7f044cc1576dafd7/ec2_proxy-0.1.2.tar.gz",
    "platform": null,
    "description": "=========\nEC2 Proxy\n=========\n\n\n.. image:: https://img.shields.io/pypi/v/ec2_proxy.svg\n   :target: https://pypi.python.org/pypi/ec2_proxy\n\n.. image:: https://img.shields.io/travis/AG4lyf/ec2_proxy.svg\n   :target: https://travis-ci.com/AG4lyf/ec2_proxy\n\n.. image:: https://readthedocs.org/projects/ec2-proxy/badge/?version=latest\n   :target: https://ec2-proxy.readthedocs.io/en/latest/?version=latest\n   :alt: Documentation Status\n\n\nThis package provides the ability to use Amazon AWS as a proxy with ever-changing IP.\n\n\n* Free software: Apache Software License 2.0\n* Documentation: https://ec2-proxy.readthedocs.io.\n\nInstall a Proxy Server\n======================\nRead `Setup </proxy_setup.md>`__ for instructions on how to install a proxy server on an EC2 instance.\n\n\nHow to Use\n==========\n1. Install the package:\n      pip install ec2_proxy\n\n2. Create an AWS account and obtain the access key and secret key from `Here <https://us-east-1.console.aws.amazon.com/iamv2/home?region=us-east-1#/security_credentials/access-key-wizard>`__.\n\n\nThere are 2 ways to use this package:\n\nWay #1 - Use it with the credentials that are present in your `.aws` folder in your home directory\n\n.. code-block:: python\n\n      from ec2_proxy import TProxy\n\n      tp = TProxy(<instance_id_here>)\n      ip = tp.start()\n      print(ip)\n\nWay #2 - Use it with the credentials that you will pass at runtime\n\n.. code-block:: python\n\n      from ec2_proxy import TProxy\n      from botocore.config import Config\n      import boto3\n\n      region = 'us-west-2'\n      access_key_id = 'YOUR_ACCESS_KEY_ID'\n      secret_access_key = 'YOUR_SECRET_ACCESS_KEY'\n\n      ec2 = boto3.client('ec2', region_name=region, aws_access_key_id=access_key_id, aws_secret_access_key=secret_access_key)\n      tp = TProxy(<instance_id_here>, ec2=ec2)\n      ip = tp.start()\n      print(ip)\n\n\n=======\nHistory\n=======\n\n\n\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "This package provides ability to use amazon aws as proxy with everchanging IP.",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/AG4lyf/ec2_proxy"
    },
    "split_keywords": [
        "ec2_proxy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cadab51a190e3183a520835b1824ee7e720c38437e2c605c9681da3d71b66b94",
                "md5": "d811967ddc1cfe82f1044fad33f1ab60",
                "sha256": "95829317614221a3757c41b1db506676af8a9845d88f5cc09e5293e0f0ed1bbd"
            },
            "downloads": -1,
            "filename": "ec2_proxy-0.1.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d811967ddc1cfe82f1044fad33f1ab60",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 4329,
            "upload_time": "2023-06-12T00:33:06",
            "upload_time_iso_8601": "2023-06-12T00:33:06.156217Z",
            "url": "https://files.pythonhosted.org/packages/ca/da/b51a190e3183a520835b1824ee7e720c38437e2c605c9681da3d71b66b94/ec2_proxy-0.1.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4b021d511da0906796ec2439001f31ff1b7d1bdcca6524bf7f044cc1576dafd7",
                "md5": "23384ee730659b1ede3f203c445694cb",
                "sha256": "2f0982bbb848dc6efc36ff46618613a61514c6b8aa9bf55ab197fbcdeee264be"
            },
            "downloads": -1,
            "filename": "ec2_proxy-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "23384ee730659b1ede3f203c445694cb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 10983,
            "upload_time": "2023-06-12T00:33:08",
            "upload_time_iso_8601": "2023-06-12T00:33:08.166561Z",
            "url": "https://files.pythonhosted.org/packages/4b/02/1d511da0906796ec2439001f31ff1b7d1bdcca6524bf7f044cc1576dafd7/ec2_proxy-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-12 00:33:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AG4lyf",
    "github_project": "ec2_proxy",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "ec2-proxy"
}
        
Elapsed time: 1.44325s