Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add boto3 -> botocore module mapping #20932

Conversation

andrelegault
Copy link
Contributor

No description provided.

@huonw
Copy link
Contributor

huonw commented May 15, 2024

Heya, thanks for taking the time to submit this. Unfortunately, I'm not sure this is quite right: the module mapping is meant to say "when you install the boto3 package from PyPI, it allows import botocore to work". In practice, this means that its wheel contains files or directories of those names.

Looking at https://pypi.org/project/boto3/#files, unzip -l ... on the wheel indicates it contains:

M    Mode     Size        Date&time         Filename
- ----------  -----  --------------------  ----------------
  -rw-r--r--   3421  15-May-2024 18:04:34  boto3/__init__.py
  -rw-r--r--   2887  15-May-2024 18:02:06  boto3/compat.py
  -rw-r--r--   5407  15-May-2024 18:02:06  boto3/crt.py
  -rw-r--r--   4127  15-May-2024 18:02:06  boto3/exceptions.py
  -rw-r--r--  20758  15-May-2024 18:02:06  boto3/session.py
  -rw-r--r--   3141  15-May-2024 18:02:06  boto3/utils.py
  -rw-r--r--   5110  15-May-2024 18:02:06  boto3/data/cloudformation/2010-05-15/resources-1.json
  -rw-r--r--  11690  15-May-2024 18:02:06  boto3/data/cloudwatch/2010-08-01/resources-1.json
  -rw-r--r--   3849  15-May-2024 18:02:06  boto3/data/dynamodb/2012-08-10/resources-1.json
  -rw-r--r--  68469  15-May-2024 18:02:06  boto3/data/ec2/2014-10-01/resources-1.json
  -rw-r--r--  68469  15-May-2024 18:02:06  boto3/data/ec2/2015-03-01/resources-1.json
  -rw-r--r--  68469  15-May-2024 18:02:06  boto3/data/ec2/2015-04-15/resources-1.json
  -rw-r--r--  76564  15-May-2024 18:02:06  boto3/data/ec2/2015-10-01/resources-1.json
  -rw-r--r--  76564  15-May-2024 18:02:06  boto3/data/ec2/2016-04-01/resources-1.json
  -rw-r--r--  76564  15-May-2024 18:02:06  boto3/data/ec2/2016-09-15/resources-1.json
  -rw-r--r--  76922  15-May-2024 18:02:06  boto3/data/ec2/2016-11-15/resources-1.json
  -rw-r--r--  19940  15-May-2024 18:02:06  boto3/data/glacier/2012-06-01/resources-1.json
  -rw-r--r--  50357  15-May-2024 18:02:06  boto3/data/iam/2010-05-08/resources-1.json
  -rw-r--r--   4136  15-May-2024 18:02:06  boto3/data/opsworks/2013-02-18/resources-1.json
  -rw-r--r--  37204  15-May-2024 18:02:06  boto3/data/s3/2006-03-01/resources-1.json
  -rw-r--r--   9091  15-May-2024 18:02:06  boto3/data/sns/2010-03-31/resources-1.json
  -rw-r--r--   6545  15-May-2024 18:02:06  boto3/data/sqs/2012-11-05/resources-1.json
  -rw-r--r--   1845  15-May-2024 18:02:06  boto3/docs/__init__.py
  -rw-r--r--   8178  15-May-2024 18:02:06  boto3/docs/action.py
  -rw-r--r--   2500  15-May-2024 18:02:06  boto3/docs/attr.py
  -rw-r--r--   2103  15-May-2024 18:02:06  boto3/docs/base.py
  -rw-r--r--   1078  15-May-2024 18:02:06  boto3/docs/client.py
  -rw-r--r--  11679  15-May-2024 18:02:06  boto3/docs/collection.py
  -rw-r--r--   2511  15-May-2024 18:02:06  boto3/docs/docstring.py
  -rw-r--r--   2733  15-May-2024 18:02:06  boto3/docs/method.py
  -rw-r--r--  15307  15-May-2024 18:02:06  boto3/docs/resource.py
  -rw-r--r--   8544  15-May-2024 18:02:06  boto3/docs/service.py
  -rw-r--r--   5864  15-May-2024 18:02:06  boto3/docs/subresource.py
  -rw-r--r--   5436  15-May-2024 18:02:06  boto3/docs/utils.py
  -rw-r--r--   5173  15-May-2024 18:02:06  boto3/docs/waiter.py
  -rw-r--r--    562  15-May-2024 18:02:06  boto3/dynamodb/__init__.py
  -rw-r--r--  15045  15-May-2024 18:02:06  boto3/dynamodb/conditions.py
  -rw-r--r--   6343  15-May-2024 18:02:06  boto3/dynamodb/table.py
  -rw-r--r--  12909  15-May-2024 18:02:06  boto3/dynamodb/transform.py
  -rw-r--r--   9541  15-May-2024 18:02:06  boto3/dynamodb/types.py
  -rw-r--r--    562  15-May-2024 18:02:06  boto3/ec2/__init__.py
  -rw-r--r--   1577  15-May-2024 18:02:06  boto3/ec2/createtags.py
  -rw-r--r--   1217  15-May-2024 18:02:06  boto3/ec2/deletetags.py
  -rw-r--r--   1390  15-May-2024 18:02:06  boto3/examples/cloudfront.rst
  -rw-r--r--   5486  15-May-2024 18:02:06  boto3/examples/s3.rst
  -rw-r--r--      0  15-May-2024 18:02:06  boto3/resources/__init__.py
  -rw-r--r--   9600  15-May-2024 18:02:06  boto3/resources/action.py
  -rw-r--r--   5044  15-May-2024 18:02:06  boto3/resources/base.py
  -rw-r--r--  19242  15-May-2024 18:02:06  boto3/resources/collection.py
  -rw-r--r--  22708  15-May-2024 18:02:06  boto3/resources/factory.py
  -rw-r--r--  20394  15-May-2024 18:02:06  boto3/resources/model.py
  -rw-r--r--   6112  15-May-2024 18:02:06  boto3/resources/params.py
  -rw-r--r--  11694  15-May-2024 18:02:06  boto3/resources/response.py
  -rw-r--r--    562  15-May-2024 18:02:06  boto3/s3/__init__.py
  -rw-r--r--    690  15-May-2024 18:02:06  boto3/s3/constants.py
  -rw-r--r--  28191  15-May-2024 18:02:06  boto3/s3/inject.py
  -rw-r--r--  15934  15-May-2024 18:02:06  boto3/s3/transfer.py
  -rw-r--r--  10174  15-May-2024 18:04:34  boto3-1.34.106.dist-info/LICENSE
  -rw-r--r--   6622  15-May-2024 18:04:34  boto3-1.34.106.dist-info/METADATA
  -rw-r--r--     83  15-May-2024 18:04:34  boto3-1.34.106.dist-info/NOTICE
  -rw-r--r--     92  15-May-2024 18:04:34  boto3-1.34.106.dist-info/WHEEL
  -rw-r--r--      6  15-May-2024 18:04:34  boto3-1.34.106.dist-info/top_level.txt
  -rw-rw-r--   5338  15-May-2024 18:04:34  boto3-1.34.106.dist-info/RECORD
- ----------  -----  --------------------  ----------------
             989753                         63 files

Looking at the top-level directory names suggests the boto3 package provides import boto3 only.

I think import botocore is provided by the separate https://pypi.org/project/botocore/ package.

Could you describe a bit about what problem this fixes for you?

@andrelegault
Copy link
Contributor Author

Ah you're right. Thanks for double checking!

@andrelegault andrelegault deleted the andre/botocore-module-mapping branch May 16, 2024 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants