Releases: tankalxat34/UploadgramPyAPI
1.6.1
Version 1.6.1
EN
- Added new exception
UploadgramInvalidLengthPatternthat will be show if you are using incorrect length of pattern inUploadgramPyAPI.Random. - Edited arg
pattern_idin classRandom. - Corrected
README.md. - Added new attributes in
UploadgramPyAPI.NewFile:namesizescanneduserTelegramIdif availableuserIpif available
RU
- Добавлена новая ошибка
UploadgramInvalidLengthPattern, которая будет возникать если вы используете неправильную длину вашего шаблона дляUploadgramPyAPI.Random. - Изменен аргумент
pattern_idв классеUploadgramPyAPI.Random - Изменен
README.md - Добавлены новые атрибуты класса в
UploadgramPyAPI.NewFile:namesizescanneduserTelegramIdесли доступенuserIpесли доступен
1.6
Version 1.6
EN
Main in 1.6:
Added new class UploadgramPyAPI.Random, that can generate random ID or KEY. If you want to import any file (you can import also someone else's file) from Uploadgram in your Dashboard, you need in parameter KEY in class UploadgramPyAPI.File write this random KEY. For example:
import UploadgramPyAPI
import webbrowser
# here generating a random KEY
fake_key = UploadgramPyAPI.Random("key").get()
# connecting to file with using the generated key
up_file = UploadgramPyAPI.File("614e0729b6279g", fake_key)
# this line are opening url_import in your browser and you can see this file in Dashboard
webbrowser.open_new_tab(up_file.url_import)- Added new attribute
self.scannedin classFile. That is equalTrueif in file accepted absence any virus or any violations - Now
self.url_importwill be equalNone, if that unavailable generate - Added new class
UploadgramPyAPI.Random. Now you can generate a randomIDorKEY - Added new class
UploadgramPyAPI.ServiceRulesfor getting the actual text of Terms of Service and DMCA Policy - Added new exception
UploadgramInvalidKeythat will be show if you are using incorrectKEYfor file - Added new exception
UploadgramInvalidValuethat will be show if you are using incorrect value for any parameter - Corrected error that unsuccessful result of delete or rename the file was never showed in program
- Corrected grammar error in the name of variable
self.check_to_availablein classUploadgramPyAPI.NewFile - Added links to Terms of Service, DMCA Policy, PyPi, PePy and on telegram's author
- Added
README.mdto PyPi - Now all information of new releases will be double in Russian
Update to 1.6:
pip install --upgrade UploadgramPyAPIDownload:
pip install UploadgramPyAPIRU
Главное в 1.6:
Добавлен класс Random, благодаря которому вы можете сгенерировать случайный ID или KEY. Причем, если вы хотите импортировать какой-либой файл (в то числе и чужой) из Uploadgram себе в Dashboard, вам нужно в качестве параметра KEY класса UploadgramPyAPI.File указать этот случайный KEY. Пример:
import UploadgramPyAPI
import webbrowser
# генерация случайного KEY
fake_key = UploadgramPyAPI.Random("key").get()
# подключение к файлу с использованием сгенерированного случайного ключа
up_file = UploadgramPyAPI.File("614e0729b6279g", fake_key)
# этой строкой вы открываете url_import у себя в браузере и необходимый файл появится у вас в Dashboard
webbrowser.open_new_tab(up_file.url_import)- Добавлен новый атрибут
scannedклассаUploadgramPyAPI.File. Он равенTrue, если в файле подтверждено отсутствие вирусов или каких-либо нарушений - Теперь
url_importбудет становится равнымNone, если его невозможно сгенерировать - Добавлен класс
UploadgramPyAPI.Random, благодаря которому можно сгенерировать случайныйidилиkey - Добавлен класс
UploadgramPyAPI.ServiceRulesдля получения актуального текста из Terms of Service и DMCA Policy - Добавлена ошибка
UploadgramInvalidKey, которая возникает, если вы используете неподходящий или неправильныйkeyдля файла - Добавлена ошибка
UploadgramInvalidValue, которая возникает, если вы используете неправильное или неподходящее значение для какого либо параметра - Исправлена ошибка, при которой неудачный результат удаления или переименования файла никак не отражался в ходе выполнения программы
- Исправлена ошибка в названии переменной
self.check_to_available - Добавлены ссылки на Terms of Service, DMCA Policy, PyPi, PePy и на Telegram автора
- Добавлено описание проекта на PyPi
- Теперь информация об изменениях будет дублироваться и на русском языке
Обновить:
pip install --upgrade UploadgramPyAPIСкачать:
pip install UploadgramPyAPI1.5
- Simplified error classes.
- Added the
LENGTH_IDconstant. - Now the
KEYparameter has become optional. To delete or rename a file, it is enough to specify theKEYin theIDparameter. - Now the
IDandURLparameters are determined directly from the server response. - The
URL_IMPORTparameter no longer receives a link if the fileIDis specified instead of theKEYparameter. - The
UploadgramUsingKeyErrorerror now has an updated description. - Now the
userTelegramIdanduserIdparameters can take the valueNoneof the "None" type if they are not in the response from the server. - The variable
self.jsonhas been renamed on theself.readfileof theUploadgramPyAPI.NewFileclass. - Minor edits have been made to
__doc__. - Other edits have been made to the code.
1.4
VERSION CHANGES:
-
Added this exceptions:
UploadgramConnectionError,UploadgramUsingKeyErrorandUploadgramFileIsNotAvalible;
1.1.UploadgramConnectionError: if uploadgram.me will fall down, you will get this error
1.2.UploadgramUsingKeyError: if you set key parameter equal "none" string and you will try to rename or delete the file, you will get this error
1.3.UploadgramFileIsNotAvalible: if you trying to connection to file that does not exists, you will get this error -
Added
example of useinto__doc__; -
Some other edits;
INSTALL:
pip install uploadgrampyapi
UPGRADE:
pip install --upgrade uploadgrampyapi