/
usr
/
lib
/
python3
/
dist-packages
/
/usr/lib/python3/dist-packages
mkdir
upload
Name
Size
Mode
Actions
acme/
-
0755
rm
acme-1.1.0.egg-info/
-
0755
rm
apport/
-
0755
rm
apt/
-
0755
rm
aptsources/
-
0755
rm
apt_inst-stubs/
-
0755
rm
apt_pkg-stubs/
-
0755
rm
attr/
-
0755
rm
attrs-19.3.0.egg-info/
-
0755
rm
automat/
-
0755
rm
Automat-0.8.0.egg-info/
-
0755
rm
blinker/
-
0755
rm
certbot/
-
0755
rm
certbot-0.40.0.egg-info/
-
0755
rm
certbot_nginx/
-
0755
rm
certbot_nginx-0.40.0.egg-info/
-
0755
rm
certifi/
-
0755
rm
certifi-2019.11.28.egg-info/
-
0755
rm
chardet/
-
0755
rm
chardet-3.0.4.egg-info/
-
0755
rm
click/
-
0755
rm
Click-7.0.egg-info/
-
0755
rm
cloudinit/
-
0755
rm
cloud_init-23.1.2.egg-info/
-
0755
rm
colorama/
-
0755
rm
colorama-0.4.3.egg-info/
-
0755
rm
CommandNotFound/
-
0755
rm
ConfigArgParse-0.13.0.egg-info/
-
0755
rm
configobj-5.0.6.egg-info/
-
0755
rm
constantly/
-
0755
rm
constantly-15.1.0.egg-info/
-
0755
rm
cryptography/
-
0755
rm
cryptography-2.8.egg-info/
-
0755
rm
dbus/
-
0755
rm
dbus_python-1.2.16.egg-info/
-
0755
rm
debian/
-
0755
rm
debian_bundle/
-
0755
rm
distro-1.4.0.egg-info/
-
0755
rm
distro_info-0.23ubuntu1.egg-info/
-
0755
rm
DistUpgrade/
-
0755
rm
future/
-
0755
rm
future-0.18.2.egg-info/
-
0755
rm
gi/
-
0755
rm
hamcrest/
-
0755
rm
httplib2/
-
0755
rm
httplib2-0.14.0.egg-info/
-
0755
rm
HweSupportStatus/
-
0755
rm
hyperlink/
-
0755
rm
hyperlink-19.0.0.egg-info/
-
0755
rm
icu/
-
0755
rm
idna/
-
0755
rm
idna-2.8.egg-info/
-
0755
rm
importlib_metadata/
-
0755
rm
importlib_metadata-1.5.0.egg-info/
-
0755
rm
incremental/
-
0755
rm
incremental-16.10.1.egg-info/
-
0755
rm
janitor/
-
0755
rm
jinja2/
-
0755
rm
Jinja2-2.10.1.egg-info/
-
0755
rm
josepy/
-
0755
rm
josepy-1.2.0.egg-info/
-
0755
rm
jsonpatch-1.22.egg-info/
-
0755
rm
jsonpointer-2.0.egg-info/
-
0755
rm
jsonschema/
-
0755
rm
jsonschema-3.2.0.egg-info/
-
0755
rm
jwt/
-
0755
rm
keyring/
-
0755
rm
keyring-18.0.1.egg-info/
-
0755
rm
landscape/
-
0755
rm
LanguageSelector/
-
0755
rm
language_selector-0.1.egg-info/
-
0755
rm
launchpadlib/
-
0755
rm
launchpadlib-1.10.13.egg-info/
-
0755
rm
lazr/
-
0755
rm
lazr.restfulclient-0.14.2.egg-info/
-
0755
rm
lazr.uri-1.0.3.egg-info/
-
0755
rm
libfuturize/
-
0755
rm
libpasteurize/
-
0755
rm
markupsafe/
-
0755
rm
MarkupSafe-1.1.0.egg-info/
-
0755
rm
mock/
-
0755
rm
mock-3.0.5.egg-info/
-
0755
rm
more_itertools/
-
0755
rm
more_itertools-4.2.0.egg-info/
-
0755
rm
nacl/
-
0755
rm
netifaces-0.10.4.egg-info/
-
0755
rm
oauthlib/
-
0755
rm
oauthlib-3.1.0.egg-info/
-
0755
rm
OpenSSL/
-
0755
rm
parsedatetime/
-
0755
rm
parsedatetime-2.4.egg-info/
-
0755
rm
past/
-
0755
rm
pbr/
-
0755
rm
pbr-5.4.5.egg-info/
-
0755
rm
pexpect/
-
0755
rm
pkg_resources/
-
0755
rm
ptyprocess/
-
0755
rm
pyasn1/
-
0755
rm
pyasn1-0.4.2.egg-info/
-
0755
rm
pyasn1_modules/
-
0755
rm
PyGObject-3.36.0.egg-info/
-
0755
rm
pygtkcompat/
-
0755
rm
PyHamcrest-1.9.0.egg-info/
-
0755
rm
PyJWT-1.7.1.egg-info/
-
0755
rm
pymacaroons/
-
0755
rm
pymacaroons-0.13.0.egg-info/
-
0755
rm
PyNaCl-1.3.0.egg-info/
-
0755
rm
pyOpenSSL-19.0.0.egg-info/
-
0755
rm
pyparsing-2.4.6.egg-info/
-
0755
rm
pyrfc3339/
-
0755
rm
pyRFC3339-1.1.egg-info/
-
0755
rm
pyrsistent/
-
0755
rm
pyrsistent-0.15.5.egg-info/
-
0755
rm
pyserial-3.4.egg-info/
-
0755
rm
python_apt-2.0.0+ubuntu0.20.4.3.egg-info/
-
0755
rm
python_debian-0.1.36ubuntu1.egg-info/
-
0755
rm
pytz/
-
0755
rm
pytz-2019.3.egg-info/
-
0755
rm
requests/
-
0755
rm
requests-2.22.0.egg-info/
-
0755
rm
requests_toolbelt/
-
0755
rm
requests_toolbelt-0.8.0.egg-info/
-
0755
rm
requests_unixsocket/
-
0755
rm
requests_unixsocket-0.2.0.egg-info/
-
0755
rm
secretstorage/
-
0755
rm
SecretStorage-2.3.1.egg-info/
-
0755
rm
serial/
-
0755
rm
service_identity/
-
0755
rm
service_identity-18.1.0.egg-info/
-
0755
rm
setuptools/
-
0755
rm
setuptools-45.2.0.egg-info/
-
0755
rm
simplejson/
-
0755
rm
six-1.14.0.egg-info/
-
0755
rm
softwareproperties/
-
0755
rm
sos/
-
0755
rm
ssh_import_id/
-
0755
rm
ssh_import_id-5.10.egg-info/
-
0755
rm
systemd/
-
0755
rm
twisted/
-
0755
rm
Twisted-18.9.0.egg-info/
-
0755
rm
uaclient/
-
0755
rm
ubuntu_advantage_tools-20.3.egg-info/
-
0755
rm
ufw/
-
0755
rm
unattended_upgrades-0.1.egg-info/
-
0755
rm
UpdateManager/
-
0755
rm
urllib3/
-
0755
rm
urllib3-1.25.8.egg-info/
-
0755
rm
wadllib/
-
0755
rm
wadllib-1.3.3.egg-info/
-
0755
rm
yaml/
-
0755
rm
zipp-1.0.0.egg-info/
-
0755
rm
zope/
-
0755
rm
zope.component-4.3.0.egg-info/
-
0755
rm
zope.event-4.4.egg-info/
-
0755
rm
zope.hookable-5.0.0.egg-info/
-
0755
rm
zope.interface-4.7.1.egg-info/
-
0755
rm
__pycache__/
-
0755
rm
apport_python_hook.py
8063
0644
edit
dl
rm
apt_inst.cpython-38-x86_64-linux-gnu.so
60080
0644
edit
dl
rm
apt_pkg.cpython-38-x86_64-linux-gnu.so
359376
0644
edit
dl
rm
blinker-1.4.egg-info
3901
0644
edit
dl
rm
command_not_found-0.3.egg-info
189
0644
edit
dl
rm
configargparse.py
41446
0644
edit
dl
rm
configobj.py
89613
0644
edit
dl
rm
deb822.py
273
0644
edit
dl
rm
debconf.py
6769
0644
edit
dl
rm
distro.py
43251
0644
edit
dl
rm
distro_info.py
11155
0644
edit
dl
rm
easy_install.py
126
0644
edit
dl
rm
entrypoints.egg-info
226
0644
edit
dl
rm
entrypoints.py
8184
0644
edit
dl
rm
jsonpatch.py
25094
0644
edit
dl
rm
jsonpointer.py
9796
0644
edit
dl
rm
language_support_pkgs.py
9930
0644
edit
dl
rm
lsb_release.py
14901
0644
edit
dl
rm
netifaces.cpython-38-x86_64-linux-gnu.so
23224
0644
edit
dl
rm
netifaces.cpython-38d-x86_64-linux-gnu.so
27352
0644
edit
dl
rm
pexpect-4.6.0.egg-info
2285
0644
edit
dl
rm
problem_report.py
26867
0644
edit
dl
rm
pvectorc.cpython-38-x86_64-linux-gnu.so
37560
0644
edit
dl
rm
pyasn1_modules-0.2.1.egg-info
1722
0644
edit
dl
rm
PyICU-2.4.2.egg-info
10692
0644
edit
dl
rm
PyICU.py
1463
0644
edit
dl
rm
pyparsing.py
272400
0644
edit
dl
rm
PyYAML-5.3.1.egg-info
1781
0644
edit
dl
rm
simplejson-3.16.0.egg-info
3039
0644
edit
dl
rm
six.py
34074
0644
edit
dl
rm
snack.py
31134
0644
edit
dl
rm
sos-4.3.egg-info
295
0644
edit
dl
rm
systemd_python-234.egg-info
586
0644
edit
dl
rm
ufw-0.36.egg-info
261
0644
edit
dl
rm
validate.py
47243
0644
edit
dl
rm
zipp.py
6914
0644
edit
dl
rm
zope.component-4.3.0-nspkg.pth
529
0644
edit
dl
rm
zope.event-4.4-nspkg.pth
529
0644
edit
dl
rm
zope.hookable-5.0.0-nspkg.pth
529
0644
edit
dl
rm
zope.interface-4.7.1-nspkg.pth
529
0644
edit
dl
rm
_cffi_backend.cpython-38-x86_64-linux-gnu.so
186288
0644
edit
dl
rm
_dbus_bindings.cpython-38-x86_64-linux-gnu.so
172192
0644
edit
dl
rm
_dbus_glib_bindings.cpython-38-x86_64-linux-gnu.so
23080
0644
edit
dl
rm
_icu.cpython-38-x86_64-linux-gnu.so
1148408
0644
edit
dl
rm
_pyrsistent_version.py
23
0644
edit
dl
rm
_snack.cpython-38-x86_64-linux-gnu.so
43800
0644
edit
dl
rm
_version.py
21
0644
edit
dl
rm
_yaml.cpython-38-x86_64-linux-gnu.so
283376
0644
edit
dl
rm
Edit:
/usr/lib/python3/dist-packages/PyICU-2.4.2.egg-info
(10692B)
Metadata-Version: 1.1 Name: PyICU Version: 2.4.2 Summary: Python extension wrapping the ICU C++ API Home-page: https://github.com/ovalhub/pyicu Author: Andi Vajda Author-email: github@ovaltofu.org License: MIT Description: # README file for PyICU ## Welcome Welcome to PyICU, a Python extension wrapping the ICU C++ libraries. ICU stands for "International Components for Unicode". These are the i18n libraries of the Unicode Consortium. They implement much of the Unicode Standard, many of its companion Unicode Technical Standards, and much of Unicode CLDR. The PyICU source code is hosted on GitHub at https://github.com/ovalhub/pyicu. The ICU homepage is http://site.icu-project.org/ See also the CLDR homepage at http://cldr.unicode.org/ ## Building PyICU Before building PyICU the ICU libraries must be built and installed. Refer to each system's instructions for more information. PyICU is built with distutils or setuptools: - verify that the icu-config program is available or that the ``INCLUDES``, ``LFLAGS``, ``CFLAGS`` and ``LIBRARIES`` dictionaries in ``setup.py`` contain correct values for your platform. Starting with ICU 60, -std=c++11 must appear in your CFLAGS. - ``python setup.py build`` - ``sudo python setup.py install`` ## Running PyICU - Mac OS X Make sure that ``DYLD_LIBRARY_PATH`` contains paths to the directory(ies) containing the ICU libs. - Linux & Solaris Make sure that ``LD_LIBRARY_PATH`` contains paths to the directory(ies) containing the ICU libs or that you added the corresponding ``-rpath`` argument to ``LFLAGS``. - Windows Make sure that ``PATH`` contains paths to the directory(ies) containing the ICU DLLs. ## What's available See the ``CHANGES`` file for an up to date log of changes and additions. ## API Documentation There is no API documentation for PyICU. The API for ICU is documented at http://icu-project.org/apiref/icu4c/ and the following patterns can be used to translate from the C++ APIs to the corresponding Python APIs. ### strings The ICU string type, ``UnicodeString``, is a type pointing at a mutable array of ``UChar`` Unicode 16-bit wide characters. The Python unicode type is an immutable string of 16-bit or 32-bit wide Unicode characters. Because of these differences, ``UnicodeString`` and Python's ``unicode`` type are not merged into the same type when crossing the C++ boundary. ICU APIs taking ``UnicodeString`` arguments have been overloaded to also accept Python str or unicode type arguments. In the case of ``str`` objects, the ``utf-8`` encoding is assumed when converting them to ``UnicodeString`` objects. To convert a Python ``str`` encoded in an encoding other than ``utf-8`` to an ICU ``UnicodeString`` use the ``UnicodeString(str, encodingName)`` constructor. ICU's C++ APIs accept and return ``UnicodeString`` arguments in several ways: by value, by pointer or by reference. When an ICU C++ API is documented to accept a ``UnicodeString`` reference parameter, it is safe to assume that there are several corresponding PyICU python APIs making it accessible in simpler ways: For example, the ``'UnicodeString &Locale::getDisplayName(UnicodeString &)'`` API, documented at http://icu-project.org/apiref/icu4c/classLocale.html can be invoked from Python in several ways: 1. The ICU way >>> from icu import UnicodeString, Locale >>> locale = Locale('pt_BR') >>> string = UnicodeString() >>> name = locale.getDisplayName(string) >>> name <UnicodeString: Portuguese (Brazil)> >>> name is string True <-- string arg was returned, modified in place 2. The Python way >>> from icu import Locale >>> locale = Locale('pt_BR') >>> name = locale.getDisplayName() >>> name u'Portuguese (Brazil)' A ``UnicodeString`` object was allocated and converted to a Python ``unicode`` object. A UnicodeString can be coerced to a Python unicode string with Python's ``unicode()`` constructor. The usual ``len()``, ``str()``, comparison, ``[]`` and ``[:]`` operators are all available, with the additional twists that slicing is not read-only and that ``+=`` is also available since a UnicodeString is mutable. For example: >>> name = locale.getDisplayName() u'Portuguese (Brazil)' >>> name = UnicodeString(name) >>> name <UnicodeString: Portuguese (Brazil)> >>> unicode(name) u'Portuguese (Brazil)' >>> len(name) 19 >>> str(name) <-- works when chars fit with default encoding 'Portuguese (Brazil)' >>> name[3] u't' >>> name[12:18] <UnicodeString: Brazil> >>> name[12:18] = 'the country of Brasil' >>> name <UnicodeString: Portuguese (the country of Brasil)> >>> name += ' oh joy' >>> name <UnicodeString: Portuguese (the country of Brasil) oh joy> ### error reporting The C++ ICU library does not use C++ exceptions to report errors. ICU C++ APIs return errors via a ``UErrorCode`` reference argument. All such APIs are wrapped by Python APIs that omit this argument and throw an ``ICUError`` Python exception instead. The same is true for ICU APIs taking both a ``ParseError`` and a ``UErrorCode``, they are both to be omitted. For example, the ``'UnicodeString &DateFormat::format(const Formattable &, UnicodeString &, UErrorCode &)'`` API, documented at http://icu-project.org/apiref/icu4c/classDateFormat.html is invoked from Python with: >>> from icu import DateFormat, Formattable >>> df = DateFormat.createInstance() >>> df <SimpleDateFormat: M/d/yy h:mm a> >>> f = Formattable(940284258.0, Formattable.kIsDate) >>> df.format(f) u'10/18/99 3:04 PM' Of course, the simpler ``'UnicodeString &DateFormat::format(UDate, UnicodeString &)'`` documented here: http://icu-project.org/apiref/icu4c/classDateFormat.html can be used too: >>> from icu import DateFormat >>> df = DateFormat.createInstance() >>> df <SimpleDateFormat: M/d/yy h:mm a> >>> df.format(940284258.0) u'10/18/99 3:04 PM' ### dates ICU uses a double floating point type called ``UDate`` that represents the number of milliseconds elapsed since 1970-jan-01 UTC for dates. In Python, the value returned by the ``time`` module's ``time()`` function is the number of seconds since 1970-jan-01 UTC. Because of this difference, floating point values are multiplied by 1000 when passed to APIs taking ``UDate`` and divided by 1000 when returned as ``UDate``. Python's ``datetime`` objects, with or without timezone information, can also be used with APIs taking ``UDate`` arguments. The ``datetime`` objects get converted to ``UDate`` when crossing into the C++ layer. ### arrays Many ICU API take array arguments. A list of elements of the array element types is to be passed from Python. ### StringEnumeration An ICU ``StringEnumeration`` has three ``next`` methods: ``next()`` which returns a ``str`` objects, ``unext()`` which returns ``unicode`` objects and ``snext()`` which returns ``UnicodeString`` objects. Any of these methods can be used as an iterator, using the Python built-in ``iter`` function. For example, let ``e`` be a ``StringEnumeration`` instance:: ```python [s for s in e] is a list of 'str' objects [s for s in iter(e.unext, None)] is a list of 'unicode' objects [s for s in iter(e.snext, None)] is a list of 'UnicodeString' objects ``` ### timezones The ICU ``TimeZone`` type may be wrapped with an ``ICUtzinfo`` type for usage with Python's ``datetime`` type. For example:: ```python tz = ICUtzinfo(TimeZone.createTimeZone('US/Mountain')) datetime.now(tz) ``` or, even simpler:: ```python tz = ICUtzinfo.getInstance('Pacific/Fiji') datetime.now(tz) ``` To get the default time zone use:: ```python defaultTZ = ICUtzinfo.getDefault() ``` To get the time zone's id, use the ``tzid`` attribute or coerce the time zone to a string:: ```python ICUtzinfo.getInstance('Pacific/Fiji').tzid -> 'Pacific/Fiji' str(ICUtzinfo.getInstance('Pacific/Fiji')) -> 'Pacific/Fiji' ``` Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved Classifier: Operating System :: OS Independent Classifier: Programming Language :: C++ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Localization Classifier: Topic :: Software Development :: Internationalization
Save
cmd:
run