freemt-utils 


various utils for freemt
Update v.0.0.7
langcode_to_tmxcode: need (marisa-trie) and langcodes.
If you don't have VC in the system, you'll need to install a whl version of marisa-trie that can be downloaded from https://www.lfd.uci.edu/~gohlke/pythonlibs/#marisa-trie
Installation
pip install freemt-utils
Validate installation
python -c "import freemt_utils; print(freemt_utils.__version__)"
0.0.1
Usage
from pathlib import Path
import asyncio
from freemt_utils import save_tempfile, switch_to, httpx_get, make_url, arun, fetch_proxies, logger_level
with switch_to():
print(Path.cwd()) # home dir
print(Path.cwd()) # back to the current work directory
try:
arun(httpx_get('www.baidu.com'))
except Exception as exc:
print(exc) # InvalidURL: No scheme included in URL.
res = arun(httpx_get(make_url('www.baidu.com')))
print(res.headers)
# Headers([('bdpagetype', '1'), ('bdqid',...
logger_level('info')
res.encoding = 'UTF-8'
save_tempfile(res.text) # display res.text in the default browser
Metadata
Release files for freemt-utils 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| freemt-utils-0.1.1.tar.gz | 9.3 kB | Without provenance | Details for freemt-utils-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| freemt_utils-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for freemt_utils-0.1.1-py3-none-any.whl |
Total release size: 22.6 kB
Release files / freemt-utils-0.1.1.tar.gz
| Download URL | freemt-utils-0.1.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc7e513a1bf238364c1b6edd60ee74626a69094cf0ee3b72c0c218d821e04ef9
|
|
BLAKE2b-256 checksum How to use checksums |
5cc31a25a01624af2477a09625bbe1109c60935fcf36b295e12264e77864dad1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12
|
Release files / freemt_utils-0.1.1-py3-none-any.whl
| Download URL | freemt_utils-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ac3a917ef01876394af086b7e6d6f068b9a257f2fd857338ebfe2a76767e1a6
|
|
BLAKE2b-256 checksum How to use checksums |
9516e4f121b7c6cb5f747f5d89523e638b148cd809ca5dc90cfec92eb9e089a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12
|
Security for freemt-utils 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.