freenom-0.0.2
توضیحات
Freenom DNS API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | freenom-0.0.2 |
| نام | freenom |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nikolay Shamanovich |
| ایمیل نویسنده | shm013@yandex.ru |
| آدرس صفحه اصلی | https://github.com/Shm013/freenom-dns |
| آدرس اینترنتی | https://pypi.org/project/freenom/ |
| مجوز | - |
Freenom-dns Script
========================
An unofficial python implementation for managing freenom.com dns records.
## Freenom
Freenom is the world's first and only free domain provider.
## Install
```
pip install git+https://github.com/Shm013/freenom-dns.git
```
## How to use
```python
from freenom import Freenom
if __name__ == '__main__':
freenom = Freenom('your username', 'your password')
###################################################
pub_ip = freenom.getPublicIP()
# add or modify a record
freenom.setRecord('your domain', '', 'a', pub_ip)
freenom.setRecord('your domain', 'www', 'a', pub_ip)
freenom.setRecord('your domain', 'test', 'a', pub_ip)
# delete a record
freenom.delRecord('your domain', 'test')
# show all records with domain
freenom.showRecords('your domain')
```
## print results
```
doLogin: Login successfully.
PublicIP: xxx.xxx.xxx.xxx
setRecord: There were no changes
setRecord: There were no changes
setRecord: Record added successfully
delRecord: Record deleted successfully
--------------your domain--------------
['', 'A', '3600', 'xxx.xxx.xxx.xxx']
['WWW', 'A', '3600', 'xxx.xxx.xxx.xxx']
```
## License
[MIT](https://github.com/PunkLee2py/freenom-dns/blob/master/LICENSE)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.23.0 | requests |
| >=4.5.0 | lxml |
| >=1.3.3 | retrying |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl freenom-0.0.2:
pip install freenom-0.0.2.whl
نصب پکیج tar.gz freenom-0.0.2:
pip install freenom-0.0.2.tar.gz