Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tencentyun/cos-python-sdk-v5
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.7
Choose a base ref
...
head repository: tencentyun/cos-python-sdk-v5
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 31,726 additions and 3,570 deletions.
  1. +55 −0 .github/workflows/auto-changelog.yml
  2. +3 −0 .gitignore
  3. +18 −3 .travis.yml
  4. +659 −0 CHANGELOG.md
  5. +1 −0 MANIFEST.in
  6. +3 −3 README.rst
  7. +584 −0 demo/ai_recognition_demo.py
  8. +124 −0 demo/batch_operation_demo.py
  9. +31 −0 demo/bucket_acl.py
  10. +55 −0 demo/bucket_cors.py
  11. +45 −0 demo/bucket_domain.py
  12. +85 −0 demo/bucket_inventory.py
  13. +59 −0 demo/bucket_lifecycle.py
  14. +36 −0 demo/bucket_logging.py
  15. +46 −0 demo/bucket_operation.py
  16. +61 −0 demo/bucket_policy.py
  17. +47 −0 demo/bucket_referer.py
  18. +49 −0 demo/bucket_replication.py
  19. +45 −0 demo/bucket_tagging.py
  20. +38 −0 demo/bucket_versioning.py
  21. +61 −0 demo/bucket_website.py
  22. +316 −0 demo/ci_audit.py
  23. +66 −0 demo/ci_compress.py
  24. +201 −0 demo/ci_doc_preview.py
  25. +213 −0 demo/ci_file_process.py
  26. +757 −0 demo/ci_image.py
  27. +2,328 −0 demo/ci_media.py
  28. +198 −0 demo/ci_speech_recognition.py
  29. +1,925 −0 demo/ci_template.py
  30. +56 −0 demo/ci_watermark.py
  31. +128 −0 demo/client_encrypt.py
  32. +79 −0 demo/copy_object.py
  33. +111 −0 demo/delete_object.py
  34. +212 −0 demo/demo.py
  35. +135 −0 demo/dir_download_demo.py
  36. +93 −0 demo/disaster_recovery_demo.py
  37. +180 −0 demo/download_object.py
  38. +39 −0 demo/fetch_demo.py
  39. +32 −0 demo/get_object_url.py
  40. +258 −0 demo/get_presigned_url.py
  41. +26 −0 demo/head_object.py
  42. +100 −0 demo/hls_decrypt_token.py
  43. +62 −0 demo/list_objects.py
  44. +400 −0 demo/meta_insight_demo.py
  45. +47 −0 demo/modify_object_meta.py
  46. +33 −0 demo/object_acl.py
  47. +25 −0 demo/object_exists.py
  48. +50 −0 demo/object_tagging.py
  49. +31 −0 demo/restore_object.py
  50. +46 −0 demo/select_object.py
  51. +39 −0 demo/server_bucket_encrypt.py
  52. +136 −0 demo/server_object_encrypt.py
  53. +39 −24 {qcloud_cos → demo}/tce_demo.py
  54. +39 −0 demo/traffic_limit.py
  55. +224 −0 demo/upload_object.py
  56. +31 −0 qcloud_cos/.travis.yml
  57. +19 −17 qcloud_cos/__init__.py
  58. +1,048 −0 qcloud_cos/ai_recognition.py
  59. +198 −89 qcloud_cos/cos_auth.py
  60. +11,176 −2,693 qcloud_cos/cos_client.py
  61. +594 −404 qcloud_cos/cos_comm.py
  62. +182 −0 qcloud_cos/cos_encryption_client.py
  63. +12 −4 qcloud_cos/cos_exception.py
  64. +24 −16 qcloud_cos/cos_threadpool.py
  65. +429 −0 qcloud_cos/crypto.py
  66. +0 −136 qcloud_cos/demo.py
  67. +908 −0 qcloud_cos/meta_insight.py
  68. +234 −0 qcloud_cos/resumable_downloader.py
  69. +97 −0 qcloud_cos/select_event_stream.py
  70. +73 −26 qcloud_cos/streambody.py
  71. +1 −2 qcloud_cos/version.py
  72. +13 −10 qcloud_cos/xml2dict.py
  73. +3 −2 requirements.txt
  74. +22 −5 setup.py
  75. 0 ut/__init__.py
  76. +5,933 −136 ut/test.py
55 changes: 55 additions & 0 deletions .github/workflows/auto-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: ChangeLog

on:
workflow_dispatch:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Checkout Tool
uses: actions/checkout@v2
with:
repository: konakonall/auto-changelog
path: 'auto-changelog'
- name: Build Tool
run: |
cd auto-changelog
npm install
npm link
- name: Generate ChangeLog
env: # Or as an environment variable
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
auto-changelog --token $TOKEN
- name: Cat ChangeLog
run: cat CHANGELOG.md

- name: Commit files
env:
CI_USER: "gouki0123"
CI_EMAIL: "gouki0123@gmail.com"
run: |
git config --local user.email "$CI_EMAIL"
git config --local user.name "$CI_USER"
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo "push=1" >> $GITHUB_ENV || echo "No changes to CHANGELOG.md"
- name: Push changes
if: env.push == 1
env:
CI_USER: "gouki0123"
CI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push "https://$CI_USER:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:master
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pyc
ignore/
.vscode/
21 changes: 18 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
sudo: false
language: python
dist: xenial
python:
- '2.6'
- '2.7'
- '3.5'
- '3.6'
- '3.8'
- '3.9'
- '3.9'
dist: focal
- '3.10'
dist: focal
install:
- pip install requests
- pip install six
- pip install nose
- pip install pycodestyle
- pip install dicttoxml
- pip install importlib_metadata
- pip install xmltodict
- pip install crcmod
- pip install pycryptodome
notifications:
email:
recipients:
- wjielai@tencent.com
- fysntian@tencent.com
script:
- pycodestyle --max-line-length=180 qcloud_cos/.
- pycodestyle --max-line-length=200 qcloud_cos/.
- pycodestyle --max-line-length=200 ut/.
- nosetests -s -v ut/
deploy:
provider: pypi
Loading