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='')

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.apy(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.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: Suluoya-1.1.0.tar.gz
  • Upload date:
  • Size: 4.3 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.0.tar.gz
Algorithm Hash digest
SHA256 96f27cf356fe3dc2d104cf26ac29d93d5f7451aad977e0e67993c364be65ddb9
MD5 1d813757775c031342b417a958a67120
BLAKE2b-256 d63d6974200a4af636e7147a3c92c9fb033a5b4c13a71878c38c09b4a2c5d546

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