semvec/pypi-packages huggingface dataset:
freenom-dns 2.0.1
An unofficial python implementation for managing freenom.com dns records.
License: MIT
Requires Python: >=3.6

Freenom-dns Script v2.x
=======================
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 freenom-dns
```
## How to use
### Instantiate an object
```python
from freenom_dns import Freenom

your_username = 'your username'
your_password = 'your password'
your_domain = 'your domain'
freenom = Freenom(your_username, your_password)
```
### Show All Domains
```python
freenom.show_domains()
```
### Show All Records
```python
freenom.show_records(your_domain)
```
### Add One Record
```python
# add '' record name with public ip
freenom.add_record(your_domain)
# add 'www' record name with public ip
freenom.add_record(your_domain, 'www')
freenom.add_record(your_domain, 'www', '192.168.1.1')
freenom.add_record(your_domain, '_dnsauth', type='txt', ttl='3000', target='33333333')
```
### Modify One Record (if the record exists then modify)
```python
# modify '' record name with public ip
freenom.modify_record(your_domain)
# modify 'www' record name with public ip
freenom.modify_record(your_domain, 'www')
freenom.modify_record(your_domain, 'www', '192.168.2.2')
freenom.modify_record(your_domain, '_dnsauth', ttl='2800', target='88888888')
```
### Set One Record (Add or Modify)
```python
freenom.set_record(your_domain, 'my')
freenom.set_record(your_domain, 'my', '0.0.0.0')
```
### Set Record List (Beta)
```python
"""
record_list:
{name}: *required!!!
{type}: default: A
{ttl}: default: 3600
{target}: default: your Public IP
"""
record_list = [
    {'name': ''},
    {'name': 'www', 'target': '100.100.100.100'},
    {'name': '_dnsauth', 'type': 'txt', 'ttl': '2800', 'target': '22222222'}]
freenom.set_record_list(your_domain, record_list)
```
### Delete One Record
```python
freenom.del_record(your_domain, 'www')
```
### Clear All Record (Beta)
```python
freenom.clear_record(your_domain)
```

## License
[MIT](https://github.com/PunkLee2py/freenom-dns/blob/master/LICENSE)
qt5reactor 0.6.3
Twisted Qt Integration
License: MIT
Requires Python: >=3.5
Keywords: Qt,twisted

Qt5Reactor
==========

|PyPI| |Pythons| |GitHub| |GitHub Actions|


.. |PyPI| image:: https://img.shields.io/pypi/v/qt5reactor.svg
   :alt: PyPI version
   :target: https://pypi.org/project/qt5reactor/

.. |Pythons| image:: https://img.shields.io/pypi/pyversions/qt5reactor.svg
   :alt: supported Python versions
   :target: https://pypi.org/project/qt5reactor/

.. |GitHub| image:: https://img.shields.io/github/last-commit/twisted/qt5reactor/master.svg
   :alt: source on GitHub
   :target: https://github.com/twisted/qt5reactor

.. |GitHub Actions| image:: https://github.com/twisted/qt5reactor/workflows/CI/badge.svg
   :alt: GitHub Actions build status
   :target: https://github.com/twisted/qt5reactor/actions


Using the Qt5Reactor
--------------------

Qt5Reactor is compatible with both PyQt5 and PySide2.

Install using pip

::

    pip install qt5reactor

Before running / importing any other Twisted code, invoke:

::

    app = QApplication(sys.argv) # your code to init QtCore
    from twisted.application import reactors
    reactors.installReactor('qt5')

or

::

    app = QApplication(sys.argv) # your code to init QtCore
    import qt5reactor
    qt5reactor.install()

Testing
~~~~~~~

::

   trial --reactor=qt5 [twisted] [twisted.test] [twisted.test.test_internet]

Make sure the plugin directory is in path or in the current directory for
reactor discovery to work.

There is also `pytest-twisted`_ for use with pytest_.
You can specify to use the qt5reactor by adding ``--reactor=qt5reactor``.

.. _pytest-twisted: https://github.com/pytest-dev/pytest-twisted
.. _pytest: https://github.com/pytest-dev/pytest
get-filename 1.0.0
from a filename(str) extension or name
License: MIT
Keywords: filename,extension

# get_filename

我絕對不要再為了這個坑花了整整2小時 Orz......    
如題，只是一個獲取檔案名稱或副檔名的東東。    

From a filename(str) get extension or name.     

----
# 用法 how to use
**get_filename( filename=str, mode='filename', index=0):**

    @param  {str} filename (不能為空)
    @param  {str} mode ('filename' or 'extension') or ( 1 or 2)
    @param  {int} index (當 mode = 'extension' 或 2 才會作用)
    @return {str}

  ex1 :

      t = get_filename('explosion.hard.txt')
      t -> 'explosion.hard'

  ex2 :

    t = get_filename('/path/to/somefile.ext')
    t = 'somefile'

  ex3 :

    t = get_filename('explosion.hard.txt','extension',-3)
    t = get_filename('explosion.hard.txt',2,0)
    t -> 'explosion'

  ex4 :

    t = get_filename('/path/to/somefile.txt','extension',-1)
    t = get_filename('/path/to/somefile.txt',2,-1)
    t -> 'txt'
test-setup-app 1.0.0
description
License: MIT
Requires Python: >=3.6

# A test setup.py

setup(
name='freenom_dns',
version=version,
author='Punk Lee',
author_email='punklee333@gmail.com',
description=
'An unofficial python implementation for managing freenom.com dns records.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/PunkLee2py/freenom-dns',
license='MIT',
python_requires='>=3.6',
packages=find_packages(),
install_requires=install_requires)