Skip to main content

All kinds of things written by Suluoya.

Project description

Suluoya

This is a package written by Suluoya just for fun!

import

import Suluoya as sly

search_question

#search question by inputting for only once
sly.search_question()
#search question by inputting for many times
sly.search_question(again=True)
#search question by calling parameters and return answer
print(sly.search_question(question='Besides key points, the other element a summary should include is:'))
#search question by calling parameters and directly print answer 
sly.search_question(question='Besides key points, the other element a summary should include is:',show=True)

download_music

#download music to d:\ 
sly.download_music()
#download music to any path you want
sly.download_music(path='c:\\')

draw_a_heart

#draw a Suluoya heart
sly.draw_a_heart()
#draw any hearts you want
sly.draw_a_heart(name='any name you like')

xkcd

#You know what I mean!
sly.xkcd()

get_soup

#directly get soup from url
#not need to fill all
#url='https://pypi.org/project/Suluoya-pkg/' in default
#code='utf8' in default
#payloads means data in module 'requests' 
#'show=False' means show the soup instead of return it
get_soup(url='',code='',headers='',params={},payloads={},show=False)

get_json

#directly get json from url
#not need to fill all
#if url='',Suluoya will go on strike
#code='utf8' in default
#payloads means data in module 'requests'
#'show=False' means show the json instead of return it
get_soup(url='',code='',headers='',params={},payloads={},show=False)

QRcode

#make a QRcode
#fill in an url or some strings in content
#fill in the name of the QRcode in name
sly.QRcode(content='',name='')

download

#download anything you want with an url
sly.download('http:\\...')

translate

#could translate both English and Chinese
sly.translate(text='hello word!')

text_compare

#copare text
#accurate=True --> accurate match mode
#accurate=False --> fuzzy match mode
#show=False --> return ratio without print
sly.text_compare(text1='',text2='',accurate=True,show=True)

gender_guess

#name should be a Chinese name!
sly.gender_guess(name='',show=True)

contact

#If you wanna contact Suluoya...
sly.contact(mode='wechat')
sly.contact(mode='qq')

pay

#If you wanna make a donation...
sly.pay(mode='alipay')
sly.pay(mode='wechatpay')

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

Suluoya-1.1.2.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file Suluoya-1.1.2.tar.gz.

File metadata

  • Download URL: Suluoya-1.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.5

File hashes

Hashes for Suluoya-1.1.2.tar.gz
Algorithm Hash digest
SHA256 2a7eb955e8849d8b6e8098a33a0f29620f102c6ae9f3020fcca40cdf6afff361
MD5 0f0230b995f0329068a4660a9fd030bb
BLAKE2b-256 19e608ba45c3738c1ef1dba25311a128b1970494e85b1fd38c6b7cf62d094d31

See more details on using hashes here.

Provenance

Supported by

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