{"id":13388784,"url":"https://github.com/mishudark/s3-parallel-put","last_synced_at":"2025-12-18T03:18:31.640Z","repository":{"id":57463460,"uuid":"2645086","full_name":"mishudark/s3-parallel-put","owner":"mishudark","description":"Parallel uploads to Amazon AWS S3","archived":false,"fork":false,"pushed_at":"2020-09-27T09:06:48.000Z","size":121,"stargazers_count":313,"open_issues_count":14,"forks_count":104,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-07-30T13:13:31.697Z","etag":null,"topics":["parallel","python","s3","s3-parallel"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mishudark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-25T17:32:58.000Z","updated_at":"2024-04-24T11:10:51.000Z","dependencies_parsed_at":"2022-09-14T17:10:55.559Z","dependency_job_id":null,"html_url":"https://github.com/mishudark/s3-parallel-put","commit_stats":null,"previous_names":["twpayne/s3-parallel-put"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishudark%2Fs3-parallel-put","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishudark%2Fs3-parallel-put/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishudark%2Fs3-parallel-put/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishudark%2Fs3-parallel-put/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mishudark","download_url":"https://codeload.github.com/mishudark/s3-parallel-put/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243414503,"owners_count":20287133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parallel","python","s3","s3-parallel"],"created_at":"2024-07-30T13:00:54.310Z","updated_at":"2025-12-18T03:18:31.588Z","avatar_url":"https://github.com/mishudark.png","language":"Python","funding_links":[],"categories":["Open Source Repos"],"sub_categories":["S3"],"readme":"s3-parallel-put  Parallel uploads to Amazon AWS S3\n==================================================\n\ns3-parallel-put speeds the uploading of many small keys to Amazon AWS S3 by\nexecuting multiple PUTs in parallel.\n\n\nDependencies\n------------\n\n* Python 2.X\n* [Boto](http://code.google.com/p/boto/)\n* [python-magic](https://github.com/ahupp/python-magic)\n\n\nInstallation\n------------\n\n```bash\n# Debian family\napt-get update \u0026\u0026 apt-get -y install python-pip\npip install boto\npip install python-magic\nwget -O /usr/bin/s3-parallel-put https://raw.githubusercontent.com/mishudark/s3-parallel-put/master/s3-parallel-put\nchmod +x /usr/bin/s3-parallel-put\n```\n\nUsage\n-----\n\nThe program reads your credentials from the environment variables\n`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.\n\n```bash\ns3-parallel-put --bucket=BUCKET --prefix=PREFIX SOURCE\n```\n\nKeys are computed by combining `PREFIX` with the path of the file, starting\nfrom `SOURCE`.  Values are file contents.\n\n#### Options:\n* `-h, --help` — show help message\n\n##### S3 options:\n* `--bucket=BUCKET` — set bucket\n* `--bucket_region=BUCKET_REGION` — set bucket region if not in us-east-1 (default new bucket region)\n* `--host=HOST` — set AWS host name\n* `--secure` and `--insecure` control whether a secure connection is used\n  \n##### Source options:\n* `--walk=MODE` — set walk mode (filesystem or tar)\n* `--exclude=PATTERN` — exclude files matching PATTERN\n* `--include=PATTERN` — don't exclude files matching PATTERN\n* `--ignore-files-older-than-days=DAYS` — ignore files older than defined DAYS, only sync newer files\n  \n##### Put options:\n* `--content-type=CONTENT-TYPE` — sets the `Content-Type` header, set to \"guess\" to guess based on file name or \"magic\" to guess by filename and libmagic\n* `--gzip` — compresses common text files and sets the `Content-Encoding` header to `gzip`\n* `--gzip-type=GZIP_TYPE` — if `--gzip` is set, sets what content-type to gzip, defaults to a list of known text content types, \"all\" will gzip everything. Specify multiple times for multiple content types (eg.`--gzip-type=guess --gzip-type=\"image/svg+xml\"`) [default: \"guess\"]\n* `--put=MODE` — sets the heuristic used for deciding whether to upload a file or not.  Valid modes are:\n  * `add` set the key's content if the key is not already present.\n  * `stupid` always set the key's content.\n  * `update` set the key's content if the key is not already present and its\n  content has changed (as determined by its ETag).\n  * `copy`\u003cbr\u003e\n  The default heuristic is `update`.  If you know that the keys are not already present then `stupid` is fastest (it avoids an extra HEAD request for each key).  If you know that some keys are already present and that they have the correct values, then `add` is faster than `update` (it avoids calculating the MD5 sum of the content on the client side).\n  \n  \n* `--prefix=PREFIX` — set key prefix\n* `--resume=FILENAME` — resume from log file\n* `--grant=GRANT` — A [Canned ACL](http://docs.amazonwebservices.com/AmazonS3/latest/dev/ACLOverview.html#CannedACL) policy to be applied to each file uploaded. Choices: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`, `log-delivery-write`\n* `--header=HEADER:VALUE` — adds an arbitrary header to the S3 file. This option can be specified multiple times.\n* `--encrypt-key` — use server side encryption\n\n##### Logging options:\n* `--log-filename=FILENAME` — set log filename\n* `-q, --quiet` — less output\n* `-v, --verbose` — more output to be printed, including progress of individual files\n\n##### Debug and performance tuning options:\n* `--dry-run` — don't write to S3. Causes the program to print what it would do, but not to upload any files. It is strongly recommended that you test the program with this option before transferring any real data.\n* `--limit=N` — set maximum number of keys to put. Causes the program to upload no more than N files.  Combined\nwith `--dry-run`, this is also useful for testing.\n* `--processes=N` —  sets the number of parallel upload processes\n\n\nArchitecture\n------------\n\n* A walker process generates (filename, key_name) pairs and inserts them in\n  `put_queue`.\n* Multiple putter processes consume these pairs in parallel, uploading the\n  files to S3 and sending file-by-file statistics to `stat_queue`.\n* A statter process consumes these file-by-file statistics and generates\n  summary statistics.\n\n\nBugs\n----\n\n* Limited error checking.\n\n\nTo Do\n-----\n* Automatically parallelize uploads of large files by splitting into chunks.\n\n\nRelated projects\n----------------\n\n* [JetS3t](http://www.jets3t.org/)\n* [s3cmd](http://s3tools.org/s3cmd)\n* [sync_media_s3](http://code.google.com/p/django-command-extensions/wiki/sync_media_s3)\n\n\nLicence\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2011-2014 Tom Payne\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nvim: set spell spelllang=en textwidth=76:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishudark%2Fs3-parallel-put","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmishudark%2Fs3-parallel-put","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishudark%2Fs3-parallel-put/lists"}