suyiyi's package
Project description
this is a lib of python
you can use syllib.__version__
to show the version
functions
in package syllib
function install(name: str)
(from syllib.pip)
install a package from https://pypi.org/simple
result: None
function uninstall(name: str)
(from syllib.pip)
uninstall a package
result: None
function abs_import(path: str, _globals=None, _locals=None, fromlist=(), level=0) -> module
it can import a package from a far away path
path: a string of path
_globals: a dictionary like globals()
_locals: a dictionary like locals()
fromlist: a list or tuple
if enabled,it works like:
from [path] import [fromlist]
result: a module
in package syllib.xes
function get_cookies() -> str
result: a string of cookies(in xueersi)
function get_run_token() -> str
result: a string of token(in the cookies)
function send(mobile: int, content: str) -> bool
mobile: the mobile number of who you want to send
content: a string of content what you want to send
result: True(success) or False(failed)
in package syllib.tools
function get_run_dir() -> str
result: a string where 'python.exe'
in package syllib.config
class Config(name: str, auto_save: bool = True)
You can use cfg = Config([name,[auto_save]])
to create a config file
the file saves at the python path
it saves by module pickle
function Config.read
read saved file
function Config.save
save the attributes
function Config.__getitem__
,Config.__setitem__
and Config.__delitem__
works like python dictionary
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
Built Distribution
Hashes for syllib-2022.108.130193219.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a601ee0d4f94cbf5bafcc31d199fa0cc9225f02a583e7f406c0937aed53da6 |
|
MD5 | d633295a8471dadd8c8e89acb6227de3 |
|
BLAKE2b-256 | c7da5e878dc05ac89ea64524bc2672db9a4f806e9712a5f6e20cee1be17d04c9 |
Hashes for syllib-2022.108.130193219-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43ac4b0ed1e7df387f0957dd03c7e95b0c1b0c743dbbcec834ae377e435b26bd |
|
MD5 | 3f95d7a4a9a29960a144d85cbc2943d3 |
|
BLAKE2b-256 | 730cca49b3e0313d88ceafc477ca4dc931fa4c3ee7ca8803e3960e22e2949cfb |