Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syllib-2022.108.130193701.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syllib-2022.108.130193701-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file syllib-2022.108.130193701.tar.gz.

File metadata

  • Download URL: syllib-2022.108.130193701.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.6

File hashes

Hashes for syllib-2022.108.130193701.tar.gz
Algorithm Hash digest
SHA256 a55f974a8b15c7226ea54dddd53f11d13fe427efd443ba5fbbe02f930a6cca91
MD5 c90fa1e4288977d7bde1a77fc35549ca
BLAKE2b-256 09afe1f0f258dbcff51a5fcba22cd337a3a09d9b4ad9a82c9e7fbec27e10e7e6

See more details on using hashes here.

File details

Details for the file syllib-2022.108.130193701-py3-none-any.whl.

File metadata

File hashes

Hashes for syllib-2022.108.130193701-py3-none-any.whl
Algorithm Hash digest
SHA256 322f96eaae317a6d053fb939e01a9f56b1332b490b091e75819d3a97959b8c92
MD5 6601afa13f4c3ca07c8465082909a9ef
BLAKE2b-256 a4ce8991ca2cc41a2ee97d7cdb6368ff50f1ba0d72cc12749a1817036f1186e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page