Parser for ripple.txt files
Project description
Python Parser for ripple.txt files
---------------------------
Example:
>>> import rippletxt
>>> rippletxt.loads("""
[domain]
example.org
[accounts]
r3THXKcb5KnJbD5M74kRdMfpoMY1ik8dQ5
[ips]
# ripple.example.org
8.46.236.185 5006
""")
{
'ips': ['8.46.236.185 5006'],
'domain': ['example.org'],
'accounts': ['r3THXKcb5KnJbD5M74kRdMfpoMY1ik8dQ5']
}
>>> rippletxt.get_urls("wasipaid.com")
[
'https://ripple.wasipaid.com/ripple.txt',
'https://www.wasipaid.com/ripple.txt',
'https://wasipaid.com/ripple.txt'
]
Install:
$ pip install rippletxt
---------------------------
Example:
>>> import rippletxt
>>> rippletxt.loads("""
[domain]
example.org
[accounts]
r3THXKcb5KnJbD5M74kRdMfpoMY1ik8dQ5
[ips]
# ripple.example.org
8.46.236.185 5006
""")
{
'ips': ['8.46.236.185 5006'],
'domain': ['example.org'],
'accounts': ['r3THXKcb5KnJbD5M74kRdMfpoMY1ik8dQ5']
}
>>> rippletxt.get_urls("wasipaid.com")
[
'https://ripple.wasipaid.com/ripple.txt',
'https://www.wasipaid.com/ripple.txt',
'https://wasipaid.com/ripple.txt'
]
Install:
$ pip install rippletxt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rippletxt-1.0.tar.gz
(1.6 kB
view hashes)