README.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. ===============================
  2. Boto3 - The AWS SDK for Python
  3. ===============================
  4. |Version| |Gitter|
  5. Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
  6. Python, which allows Python developers to write software that makes use
  7. of services like Amazon S3 and Amazon EC2. You can find the latest, most
  8. up to date, documentation at our `doc site`_, including a list of
  9. services that are supported.
  10. On 01/15/2021 deprecation for Python 2.7 was announced and support will be dropped
  11. on 07/15/2021. To avoid disruption, customers using Boto3 on Python 2.7 may
  12. need to upgrade their version of Python or pin the version of Boto3. For
  13. more information, see this `blog post <https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/>`__.
  14. .. _boto: https://docs.pythonboto.org/
  15. .. _`doc site`: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
  16. .. |Gitter| image:: https://badges.gitter.im/boto/boto3.svg
  17. :target: https://gitter.im/boto/boto3
  18. :alt: Gitter
  19. .. |Downloads| image:: http://img.shields.io/pypi/dm/boto3.svg?style=flat
  20. :target: https://pypi.python.org/pypi/boto3/
  21. :alt: Downloads
  22. .. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat
  23. :target: https://pypi.python.org/pypi/boto3/
  24. :alt: Version
  25. .. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat
  26. :target: https://github.com/boto/boto3/blob/develop/LICENSE
  27. :alt: License
  28. Getting Started
  29. ---------------
  30. Assuming that you have Python and ``virtualenv`` installed, set up your environment and install the required dependencies like this or you can install the library using ``pip``:
  31. .. code-block:: sh
  32. $ git clone https://github.com/boto/boto3.git
  33. $ cd boto3
  34. $ virtualenv venv
  35. ...
  36. $ . venv/bin/activate
  37. $ python -m pip install -r requirements.txt
  38. $ python -m pip install -e .
  39. .. code-block:: sh
  40. $ python -m pip install boto3
  41. Using Boto3
  42. ~~~~~~~~~~~~~~
  43. After installing boto3
  44. Next, set up credentials (in e.g. ``~/.aws/credentials``):
  45. .. code-block:: ini
  46. [default]
  47. aws_access_key_id = YOUR_KEY
  48. aws_secret_access_key = YOUR_SECRET
  49. Then, set up a default region (in e.g. ``~/.aws/config``):
  50. .. code-block:: ini
  51. [default]
  52. region=us-east-1
  53. Other credentials configuration method can be found `here <https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html>`__
  54. Then, from a Python interpreter:
  55. .. code-block:: python
  56. >>> import boto3
  57. >>> s3 = boto3.resource('s3')
  58. >>> for bucket in s3.buckets.all():
  59. print(bucket.name)
  60. Running Tests
  61. ~~~~~~~~~~~~~
  62. You can run tests in all supported Python versions using ``tox``. By default,
  63. it will run all of the unit and functional tests, but you can also specify your own
  64. ``nosetests`` options. Note that this requires that you have all supported
  65. versions of Python installed, otherwise you must pass ``-e`` or run the
  66. ``nosetests`` command directly:
  67. .. code-block:: sh
  68. $ tox
  69. $ tox -- unit/test_session.py
  70. $ tox -e py26,py33 -- integration/
  71. You can also run individual tests with your default Python version:
  72. .. code-block:: sh
  73. $ nosetests tests/unit
  74. Getting Help
  75. ------------
  76. We use GitHub issues for tracking bugs and feature requests and have limited
  77. bandwidth to address them. Please use these community resources for getting
  78. help:
  79. * Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__
  80. * Come join the AWS Python community chat on `gitter <https://gitter.im/boto/boto3>`__
  81. * Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__
  82. * If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/boto3/issues/new>`__
  83. Contributing
  84. ------------
  85. We value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests. Please read through this `CONTRIBUTING <https://github.com/boto/boto3/blob/develop/CONTRIBUTING.rst>`__ document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your contribution.
  86. Maintenance and Support for SDK Major Versions
  87. ----------------------------------------------
  88. Boto3 was made generally available on 06/22/2015 and is currently in the full support phase of the availability life cycle.
  89. For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide:
  90. * `AWS SDKs and Tools Maintenance Policy <https://docs.aws.amazon.com/credref/latest/refdocs/maint-policy.html>`__
  91. * `AWS SDKs and Tools Version Support Matrix <https://docs.aws.amazon.com/credref/latest/refdocs/version-support-matrix.html>`__
  92. More Resources
  93. --------------
  94. * `NOTICE <https://github.com/boto/boto3/blob/develop/NOTICE>`__
  95. * `Changelog <https://github.com/boto/boto3/blob/develop/CHANGELOG.rst>`__
  96. * `License <https://github.com/boto/boto3/blob/develop/LICENSE>`__