File: PKG-INFO

package info (click to toggle)
python-freenom 0.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 120 kB
  • sloc: python: 283; makefile: 4
file content (59 lines) | stat: -rw-r--r-- 2,053 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Metadata-Version: 2.1
Name: freenom
Version: 0.0.2
Summary: Freenom DNS API
Home-page: https://github.com/Shm013/freenom-dns
Author: Nikolay Shamanovich
Author-email: shm013@yandex.ru
License: UNKNOWN
Description: 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)
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown