mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
* Retrieve and process summary or full ledgers. * Search using arbitrary criteria (any Python function). * Search using arbitrary formats (any Python function). * Caches ledgers as .gz files to avoid repeated server requests. * Handles ledger numbers, ranges, and special names like validated or closed.
8 lines
221 B
Python
8 lines
221 B
Python
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
import os
|
|
|
|
def normalize(f):
|
|
f = os.path.join(*f.split('/')) # For Windows users.
|
|
return os.path.abspath(os.path.expanduser(f))
|