Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boto/boto3
/ functions
Functions
499 in github.com/boto/boto3
⨍
Functions
499
◇
Types & classes
79
↳
Endpoints
32
↓ 40 callers
Method
load
Get the load action for this resource, if it is defined. :type: :py:class:`Action` or ``None``
boto3/resources/model.py:436
↓ 17 callers
Method
get_collection
(self)
tests/unit/resources/test_collection.py:134
↓ 15 callers
Function
py_type_name
Get the Python type name for a given model type. >>> py_type_name('list') 'list' >>> py_type_name('structure') '
boto3/docs.py:43
↓ 14 callers
Method
read
(self, amount=None)
boto3/s3/transfer.py:231
↓ 14 callers
Method
upload_file
(self, filename, bucket, key, callback=None, extra_args=None)
boto3/s3/transfer.py:581
↓ 13 callers
Function
create_request_parameters
Handle request parameters that can be filled in from identifiers, resource data members or constants. By passing ``params``, you can inv
boto3/resources/params.py:51
↓ 13 callers
Method
download_file
Download an S3 object to a file. This method will issue a ``head_object`` request to determine the size of the S3 object. This is us
boto3/s3/transfer.py:602
↓ 13 callers
Method
resource
Create a resource service client by name. :type service_name: string :param service_name: The name of a service, e.g. 's3' o
boto3/session.py:234
↓ 12 callers
Method
all
(self, limit=None, page_size=None)
boto3/resources/collection.py:340
↓ 11 callers
Method
client
Create a low-level service client by name. :type service_name: string :param service_name: The name of a service, e.g. 's3'
boto3/session.py:166
↓ 11 callers
Method
create_file_with_size
(self, filename, filesize)
tests/integration/test_s3.py:77
↓ 11 callers
Method
create_s3_transfer
(self, config=None)
tests/integration/test_s3.py:248
↓ 10 callers
Method
load_rename_map
Load a name translation map given a shape. This will set up renamed values for any collisions, e.g. if the shape, an action,
boto3/resources/model.py:261
↓ 9 callers
Method
from_filename
Convenience factory function to create from a filename. :type start_byte: int :param start_byte: The first byte from which to start r
boto3/s3/transfer.py:200
↓ 9 callers
Method
get_response
(self)
tests/unit/resources/test_response.py:150
↓ 8 callers
Function
build_identifiers
Builds a mapping of identifier names to values based on the identifier source location, type, and target. Identifier values may be scalar
boto3/resources/response.py:33
↓ 8 callers
Function
build_param_structure
This method provides a basic reverse JMESPath implementation that lets you go from a JMESPath-like string to a possibly deeply nested obj
boto3/resources/params.py:98
↓ 7 callers
Method
_get_name
Get a possibly renamed value given a category and name. This uses the rename map set up in ``load_rename_map``, so that metho
boto3/resources/model.py:370
↓ 7 callers
Method
download_file
(self, bucket, key, filename, object_size, extra_args, callback=None)
boto3/s3/transfer.py:428
↓ 6 callers
Method
put
(self, item)
boto3/s3/transfer.py:409
↓ 5 callers
Method
get_resource
(self, search_path, response)
tests/unit/resources/test_response.py:334
↓ 5 callers
Method
iterator
Get a resource collection iterator from this manager. :rtype: :py:class:`ResourceCollection` :return: An iterable representi
boto3/resources/collection.py:329
↓ 4 callers
Method
_clone
Create a clone of this collection. This is used by the methods below to provide a chainable interface that returns copies rat
boto3/resources/collection.py:91
↓ 4 callers
Function
document_operation
Document an operation. The description can be overridden and certain params hidden to support documenting resource actions.
boto3/docs.py:538
↓ 4 callers
Function
document_param_response
Document a nested structure (list or dict) parameter or return value as a snippet of Python code with dummy placeholders. For example:
boto3/docs.py:630
↓ 4 callers
Method
filter
(self, **kwargs)
boto3/resources/collection.py:344
↓ 4 callers
Method
get_attributes
Get a dictionary of attribute names to original name and shape models that represent the attributes of this resource. Looks l
boto3/resources/model.py:391
↓ 4 callers
Method
limit
(self, count)
boto3/resources/collection.py:348
↓ 4 callers
Method
load_from_definition
Loads a resource from a model, creating a new :py:class:`~boto3.resources.base.ServiceResource` subclass with the correct pro
boto3/resources/factory.py:40
↓ 4 callers
Method
object_exists
(self, key)
tests/integration/test_s3.py:243
↓ 4 callers
Method
read
(self, *args, **kwargs)
boto3/s3/transfer.py:281
↓ 4 callers
Method
seek
(self, where)
boto3/s3/transfer.py:242
↓ 4 callers
Method
upload_file
(self, filename, bucket, key, callback, extra_args)
boto3/s3/transfer.py:338
↓ 3 callers
Function
assert_files_equal
(first, second)
tests/integration/test_s3.py:32
↓ 3 callers
Method
create_bucket_resource
(self, bucket_name, region=None)
tests/integration/test_s3.py:115
↓ 3 callers
Method
get_available_resources
Get a list of available services that can be loaded as resource clients via :py:meth:`Session.resource`. :rtype: list
boto3/session.py:150
↓ 3 callers
Method
get_file_size
(self, filename)
boto3/s3/transfer.py:289
↓ 3 callers
Method
page_size
(self, count)
boto3/resources/collection.py:352
↓ 3 callers
Method
pages
(self)
boto3/resources/collection.py:356
↓ 2 callers
Method
__init__
(self, name, definition, resource_defs)
boto3/resources/model.py:57
↓ 2 callers
Function
_get_default_session
Get the default session, creating one if needed. :rtype: :py:class:`~boto3.session.Sesssion` :return: The default session
boto3/__init__.py:61
↓ 2 callers
Method
_get_has_definition
Get a ``has`` relationship definition from a model, where the service resource model is treated special in that it contains a
boto3/resources/model.py:479
↓ 2 callers
Method
_get_related_resources
Get a list of sub-resources or references. :type subresources: bool :param subresources: ``True`` to get sub-resources, ``Fa
boto3/resources/model.py:542
↓ 2 callers
Method
_get_resource_files
This generator yields paths to resource files in the loader's search paths. Specifically, it looks for files that end with ``
boto3/session.py:100
↓ 2 callers
Method
_validate_all_known_args
(self, actual, allowed)
boto3/s3/transfer.py:635
↓ 2 callers
Method
assert_has_public_read_acl
(self, response)
tests/integration/test_s3.py:252
↓ 2 callers
Function
build_empty_response
Creates an appropriate empty response for the type that is expected, based on the service model's shape type. For example, a value that i
boto3/resources/response.py:80
↓ 2 callers
Method
close
(self)
boto3/s3/transfer.py:246
↓ 2 callers
Method
copy
Create a copy of this metadata object.
boto3/resources/base.py:52
↓ 2 callers
Function
docs_for
Generate reference documentation (low and high level) for a service by name. This generates docs for the latest available version. :type
boto3/docs.py:123
↓ 2 callers
Function
document_action
Document a resource action, including the low-level client operation and parameters.
boto3/docs.py:499
↓ 2 callers
Method
get_available_services
Get a list of available services that can be loaded as low-level clients via :py:meth:`Session.client`. :rtype: list
boto3/session.py:140
↓ 2 callers
Function
get_data_member
Get a data member from a parent using a JMESPath search query, loading the parent if required. If the parent cannot be loaded and no data
boto3/resources/params.py:25
↓ 2 callers
Function
html_to_rst
Use bcdoc to convert html to rst. :type html: string :param html: Input HTML to be converted :type indent: int :param indent: Nu
boto3/docs.py:92
↓ 2 callers
Method
map
(self, function, args)
tests/unit/s3/test_transfer.py:75
↓ 2 callers
Method
open
(self, filename, mode)
boto3/s3/transfer.py:296
↓ 2 callers
Function
random_file_extension
(num_digits=8)
boto3/s3/transfer.py:151
↓ 2 callers
Method
remove_file
(self, filename)
tests/unit/s3/test_transfer.py:53
↓ 2 callers
Method
setUp
(self)
tests/unit/resources/test_factory.py:24
↓ 2 callers
Method
setUp
(self)
tests/unit/resources/test_action.py:161
↓ 2 callers
Method
submit
(self, function)
tests/unit/s3/test_transfer.py:81
↓ 2 callers
Method
trigger_shutdown
(self)
boto3/s3/transfer.py:404
↓ 2 callers
Function
unique_id
Generate a unique ID that includes the given name, a timestamp and a random number. This helps when running integration tests in parallel
tests/__init__.py:35
↓ 1 callers
Method
_calculate_file_size
(self, fileobj, requested_size, start_byte, actual_file_size)
boto3/s3/transfer.py:226
↓ 1 callers
Method
_calculate_range_param
(self, part_size, part_index, num_parts)
boto3/s3/transfer.py:464
↓ 1 callers
Method
_create_action
Creates a new method which makes a request to the underlying AWS service.
boto3/resources/factory.py:310
↓ 1 callers
Method
_create_autoload_property
Creates a new property on the resource to lazy-load its value via the resource's ``load`` method (if it exists).
boto3/resources/factory.py:187
↓ 1 callers
Method
_create_batch_action
Creates a new method which makes a batch operation request to the underlying service API.
boto3/resources/collection.py:421
↓ 1 callers
Method
_create_class_partial
Creates a new method which acts as a functools.partial, passing along the instance's low-level `client` to the new resource c
boto3/resources/factory.py:275
↓ 1 callers
Method
_create_collection
Creates a new property on the resource to lazy-load a collection.
boto3/resources/factory.py:224
↓ 1 callers
Method
_create_reference
Creates a new property on the resource to lazy-load a reference.
boto3/resources/factory.py:241
↓ 1 callers
Method
_create_waiter
Creates a new wait method for each resource where both a waiter and resource model is defined.
boto3/resources/factory.py:210
↓ 1 callers
Method
_do_get_object
(self, bucket, key, filename, extra_args, callback)
boto3/s3/transfer.py:669
↓ 1 callers
Method
_download_file
(self, bucket, key, filename, object_size, extra_args, callback)
boto3/s3/transfer.py:627
↓ 1 callers
Method
_extra_upload_part_args
(self, extra_args)
boto3/s3/transfer.py:329
↓ 1 callers
Method
_find_latest_version
Find the latest resource version of a given service if it exists, otherwise raises an exception. TODO: Merge this logic upst
boto3/session.py:115
↓ 1 callers
Method
_get_object
(self, bucket, key, filename, extra_args, callback)
boto3/s3/transfer.py:650
↓ 1 callers
Method
_load_actions
Actions on the resource become methods, with the ``load`` method being a special case which sets internal data for attributes, and
boto3/resources/factory.py:107
↓ 1 callers
Method
_load_attributes
Load resource attributes based on the resource shape. The shape name is referenced in the resource JSON, but the shape itself
boto3/resources/factory.py:122
↓ 1 callers
Method
_load_batch_actions
Batch actions on the collection become methods on both the collection manager and iterators.
boto3/resources/collection.py:411
↓ 1 callers
Method
_load_collections
Load resource collections from the model. Each collection becomes a :py:class:`~boto3.resources.collection.CollectionManager` instanc
boto3/resources/factory.py:136
↓ 1 callers
Method
_load_has_relations
Load related resources, which are defined via a ``has`` relationship but conceptually come in two forms: 1. A reference, whi
boto3/resources/factory.py:148
↓ 1 callers
Method
_load_identifiers
Populate required identifiers. These are arguments without which the resource cannot be used. Identifiers become arguments for
boto3/resources/factory.py:97
↓ 1 callers
Method
_load_name_with_category
Load a name with a given category, possibly renaming it if that name is already in use. The name will be stored in ``names``
boto3/resources/model.py:337
↓ 1 callers
Method
_load_waiters
Load resource waiters from the model. Each waiter allows you to wait until a resource reaches a specific state by polling the state
boto3/resources/factory.py:178
↓ 1 callers
Method
_multipart_upload
(self, filename, bucket, key, callback, extra_args)
boto3/s3/transfer.py:682
↓ 1 callers
Method
_object_size
(self, bucket, key, extra_args)
boto3/s3/transfer.py:678
↓ 1 callers
Method
_process_future_results
(self, futures)
boto3/s3/transfer.py:445
↓ 1 callers
Method
_put_object
(self, filename, bucket, key, callback, extra_args)
boto3/s3/transfer.py:592
↓ 1 callers
Method
_ranged_download
(self, bucket, key, filename, object_size, extra_args, callback)
boto3/s3/transfer.py:643
↓ 1 callers
Method
_register_default_handlers
(self)
boto3/session.py:314
↓ 1 callers
Method
_setup_loader
Setup loader paths so that we can load resources.
boto3/session.py:90
↓ 1 callers
Method
_upload_parts
(self, upload_id, filename, bucket, key, callback, extra_args)
boto3/s3/transfer.py:357
↓ 1 callers
Function
all_not_none
Return True if all elements of the iterable are not None (or if the iterable is empty). This is like the built-in ``all``, except checks
boto3/resources/response.py:21
↓ 1 callers
Method
create_file
Creates a file in a tmpdir ``filename`` should be a relative path, e.g. "foo/bar/baz.txt" It will be translated into a full path in a
tests/integration/test_s3.py:58
↓ 1 callers
Function
document_client
Generate low-level client documentation for a service. This generates documentation for all available operations.
boto3/docs.py:228
↓ 1 callers
Function
document_client_waiter
(session, official_name, service_name, service_model, client)
boto3/docs.py:264
↓ 1 callers
Function
document_collection
Generate reference documentation about a collection and any batch actions it might have.
boto3/docs.py:427
↓ 1 callers
Function
document_resource
Generate reference documentation from a resource model.
boto3/docs.py:293
↓ 1 callers
Function
document_waiter
Document a resource waiter, including the low-level client waiter and parameters.
boto3/docs.py:463
next →
1–100 of 499, ranked by callers