diff --git a/LICENSE.txt b/LICENSE.txt index eea94d3..37cd8bc 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -3,7 +3,7 @@ https://www.convertapi.com (c) 2011-2018 Baltsoft ConvertAPI.Python -https://github.com/ConvertAPI/convertapi-python +https://github.com/ConvertAPI/convertapi-library-python Copyright (c) 2018 Tomas Rutkauskas The MIT License diff --git a/README.md b/README.md index c05b919..28204fe 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ConvertAPI Python Client [![PyPI version](https://badge.fury.io/py/convertapi.svg)](https://badge.fury.io/py/convertapi) -[![Build Status](https://github.com/ConvertAPI/convertapi-python/actions/workflows/main.yml/badge.svg)](https://github.com/ConvertAPI/convertapi-python/actions) +[![Build Status](https://github.com/ConvertAPI/convertapi-library-python/actions/workflows/main.yml/badge.svg)](https://github.com/ConvertAPI/convertapi-library-python/actions) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) ## Convert your files with our online file conversion API @@ -31,7 +31,7 @@ You can get your API credentials at https://www.convertapi.com/a ```python import convertapi -convertapi.api_credentials = 'your-api-secret-or-token' +convertapi.api_credentials = 'api-token' ``` #### Proxy configuration @@ -41,7 +41,7 @@ If you need to use a proxy, you can specify it using `HTTPS_PROXY` environment v Example: ``` -CONVERT_API_SECRET=secret HTTPS_PROXY=https://user:pass@127.0.0.1:9000/ python convert_word_to_pdf_and_png.py +API_TOKEN=api-token HTTPS_PROXY=https://user:pass@127.0.0.1:9000/ python convert_word_to_pdf_and_png.py ``` ### File conversion @@ -119,15 +119,15 @@ convertapi.base_uri = 'https://eu-v2.convertapi.com/' ### More examples -Find more advanced examples in the [/examples](https://github.com/ConvertAPI/convertapi-python/tree/master/examples) folder. +Find more advanced examples in the [/examples](https://github.com/ConvertAPI/convertapi-library-python/tree/master/examples) folder. ## Development -Execute `CONVERT_API_SECRET=your_secret nosetests --nocapture` to run the tests. +Execute `API_TOKEN=api-token nosetests --nocapture` to run the tests. ## Contributing -Bug reports and pull requests are welcome on GitHub at https://github.com/ConvertAPI/convertapi-python. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. +Bug reports and pull requests are welcome on GitHub at https://github.com/ConvertAPI/convertapi-library-python. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License diff --git a/examples/conversions_chaining.py b/examples/conversions_chaining.py index fff7aa7..9e61a36 100644 --- a/examples/conversions_chaining.py +++ b/examples/conversions_chaining.py @@ -2,7 +2,7 @@ import os import tempfile -convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token +convertapi.api_credentials = os.environ['API_TOKEN'] # your api token # Short example of conversions chaining, the PDF pages extracted and saved as separated JPGs and then ZIP'ed # https://www.convertapi.com/doc/chaining diff --git a/examples/convert_stream.py b/examples/convert_stream.py index 5ff2ba3..dd21280 100644 --- a/examples/convert_stream.py +++ b/examples/convert_stream.py @@ -3,7 +3,7 @@ import io import tempfile -convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token +convertapi.api_credentials = os.environ['API_TOKEN'] # your api token # Example of using content stream to convert to pdf # https://www.convertapi.com/txt-to-pdf diff --git a/examples/convert_url_to_pdf.py b/examples/convert_url_to_pdf.py index 7f9c57b..8e44273 100644 --- a/examples/convert_url_to_pdf.py +++ b/examples/convert_url_to_pdf.py @@ -2,7 +2,7 @@ import os import tempfile -convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token +convertapi.api_credentials = os.environ['API_TOKEN'] # your api token # Example of converting Web Page URL to PDF file # https://www.convertapi.com/web-to-pdf diff --git a/examples/convert_word_to_pdf_and_png.py b/examples/convert_word_to_pdf_and_png.py index a406119..670cd40 100644 --- a/examples/convert_word_to_pdf_and_png.py +++ b/examples/convert_word_to_pdf_and_png.py @@ -2,7 +2,7 @@ import os import tempfile -convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token +convertapi.api_credentials = os.environ['API_TOKEN'] # your api token # Example of saving Word docx to PDF and to PNG # https://www.convertapi.com/docx-to-pdf diff --git a/examples/create_pdf_thumbnail.py b/examples/create_pdf_thumbnail.py index 6e548c1..43a7956 100644 --- a/examples/create_pdf_thumbnail.py +++ b/examples/create_pdf_thumbnail.py @@ -2,7 +2,7 @@ import os import tempfile -convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token +convertapi.api_credentials = os.environ['API_TOKEN'] # your api token # Example of extracting first page from PDF and then chaining conversion PDF page to JPG. # https://www.convertapi.com/pdf-to-extract diff --git a/examples/retrieve_user_information.py b/examples/retrieve_user_information.py index b488244..f835c11 100644 --- a/examples/retrieve_user_information.py +++ b/examples/retrieve_user_information.py @@ -1,7 +1,7 @@ import convertapi import os -convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token +convertapi.api_credentials = os.environ['API_TOKEN'] # your api token # Retrieve user information # https://www.convertapi.com/doc/user diff --git a/examples/split_and_merge_pdf.py b/examples/split_and_merge_pdf.py index e4c8d9a..c5da9b5 100644 --- a/examples/split_and_merge_pdf.py +++ b/examples/split_and_merge_pdf.py @@ -2,7 +2,7 @@ import os import tempfile -convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token +convertapi.api_credentials = os.environ['API_TOKEN'] # your api token # Example of extracting first and last pages from PDF and then merging them back to new PDF. # https://www.convertapi.com/pdf-to-split diff --git a/setup.py b/setup.py index a848eaa..9d0b508 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,8 @@ long_description = 'Convert various files like MS Word, Excel, PowerPoint, Images to PDF and Images. Create PDF and Images from url and raw HTML. Extract and create PowerPoint presentation from PDF. Merge, Encrypt, Split, Repair and Decrypt PDF files. All supported files conversions and manipulations can be found at https://www.convertapi.com/doc/supported-formats', author = 'Tomas Rutkauskas', author_email = 'support@convertapi.com', - url = 'https://github.com/ConvertAPI/convertapi-python', - download_url = 'https://github.com/ConvertAPI/convertapi-python', + url = 'https://github.com/ConvertAPI/convertapi-library-python', + download_url = 'https://github.com/ConvertAPI/convertapi-library-python', keywords = ['convert', 'api', 'client', 'conversion'], install_requires= ['requests>=2.4.2'], classifiers = [],