Saravanan666/pypi-org huggingface dataset:
Package: skyatc
sky-atcCreating a clusterCreate a cluster with a controller (currently max: 1) and optionally workers (all in a single region).python cli.py create-cluster \
    --region_tag gcp:us-central1-a 
    --controller_instance_type e2-standard-2 \
    --worker_instance_type n1-standard-1 \
    --num_workers 2Add workers with different instance types or from different regions:python cli.py add-worker --region_tag aws:us-west-1 --worker_instance_type g4dn.xlargeDeploying an inference serviceCreate a deployment with:kubectl --kubeconfig  ~/.skyatc/skyatc/k3s.yaml apply -f kubernetes/deployment.ymlCreate a service with:kubectl --kubeconfig  ~/.skyatc/skyatc/k3s.yaml apply -f kubernetes/service.ymlOnce created, you can send requests with:curl http://35.209.44.206:30153/generate \                                                                                     ─╯
-d '{
"prompt": "San Francisco is a",
"use_beam_search": true,
"n": 4,
"temperature": 0
}'

Output: 
{"text":["San Francisco is a pretty of for start, but I I is not a great place to work.","San Francisco is a very city to live in. \nI also a place to\n live.","San Francisco is a great place to live., but it's not the best place to live in","San Francisco is a city that. go and work.  I a for everyone.  work."]}%AutoscalerThe autoscaler is a docker container that runs on the controller node. You can update it with the following:cd ./cluster
sudo docker build -t sarahwooders/skyatc-autoscaler .
docker push sarahwooders/skyatc-autoscaler:latest
Package: skybellpy
skybell-pythonA thin Python library for the Skybell HD API.
Only compatible with Python 3+Disclaimer:Published under the MIT license - See LICENSE file for more details.“Skybell” is a trademark owned by SkyBell Technologies, Inc, see www.skybell.com for more information.
I am in no way affiliated with Skybell.Thank you Skybell for having a relatively simple API to reverse engineer. Hopefully in the future you’ll
open it up for official use.API calls faster than 60 seconds is not recommended as it can overwhelm Skybell’s servers.Please use this module responsibly.InstallationFrom PyPi:pip3 install skybellpyCommand Line UsageSimple command line implementation arguments:$ skybellpy --help
  usage: SkybellPy: Command Line Utility [-h] -u USERNAME -p PASSWORD [--mode]
                                       [--devices] [--device device_id]

  optional arguments:
    -h, --help            show this help message and exit
    -u USERNAME, --username USERNAME
                          Username
    -p PASSWORD, --password PASSWORD
                          Password
    --devices             Output all devices
    --device device_id    Output one device for device_idYou can get all device information:$ skybellpy -u USERNAME -p PASSWORD --devices

  Output hereDevelopment and TestingInstall the core dependencies:$ sudo apt-get install python3-pip python3-dev python3-venvCheckout from github and then create a virtual environment:$ git clone https://github.com/MisterWil/skybellpy.git
$ cd skybellpy
$ python3 -m venv venvActivate the virtual environment:$ source venv/bin/activateInstall requirements:$ pip install -r requirements.txt -r requirements_test.txtInstall skybellpy locally in “editable mode”:$ pip3 install -e .Run the run the full test suite with tox before commit:$ toxAlternatively you can run just the tests:$ tox -e py35Library UsageTODOClass DescriptionsTODO
Package: sky-bkg
sky-bkgDescriptionTwo sources of sky background are considered:Zodiacal lightEarth shineZodiacal lightZodiacal light varies as a function of angular distance of the
target from the Sun and from the ecliptic. We adopt data in Leinert
et al. (1998).Earth-shineEarth-shine varies strongly as a function of angle between the target
and the Earth lime. We adopt data from Figure 9.1 in HST/WFC3 instrument
handbook.Installationvia pip:pip install sky-bkgUsagefrom sky_bkg import sky_bkg

ra = 150
dec = 45
time = '2019-07-01'
zodi_wave, zodi_flux = sky_bkg.zodiacal(ra, dec, time)

theta = 40
earth_wave, earth_flux = sky_bkg.earthshine(theta)ReferencesThe night sky brightness in general and for the zodiacal light in Leinert et al. 1998 A&AS, 127, 1.Sky background from WFC3 document
(https://hst-docs.stsci.edu/wfc3ihb/chapter-9-wfc3-exposure-time-calculation/9-7-sky-background)The solar spectrum is from Colina et al. 1996, download fromhttps://cads.iiap.res.in/tools/zodiacalCalc/Documentation
Package: skybox
一个用来对 字符串/列表/元组/数列 等数据按固定单元长度分组的功能：fromskyboximportcut_data# 分字符串data='ABCDEFGHIJKLMNOPQRSTUVWXYZ'cut_data(data,3)# >>> ['ABC', 'DEF', 'GHI', 'JKL', 'MNO', 'PQR', 'STU', 'VWX', 'YZ']# 分列表data=['赤','橙','黄','绿','青','蓝','紫']cut_data(data,3)# >>> [['赤', '橙', '黄'], ['绿', '青', '蓝'], ['紫']]# 分元组data=('赤','橙','黄','绿','青','蓝','紫')cut_data(data,3)# >>> [('赤', '橙', '黄'), ('绿', '青', '蓝'), ('紫',)]# 分数列data=range(1,15)cut_data(data,3)# >>> [range(1, 4), range(4, 7), range(7, 10), range(10, 13), range(13, 15)]
Package: skycalc-cli
InstallationThe SkyCalc CLI works in Python 2.7 or Python3. Install the SkyCalc CLI
on your computer using the command:pip install --user skycalc_cliThis will also install skycalc_cli’s dependency, i.e. the requests package for
making HTTP calls.DocumentationDocumentation can be found on theESO SkyCalc Web Page.
Package: skyCatalogs
The skyCatalogs packageThis package will containcode to create sky catalogs from input like cosmoDC2 (for galaxies) and similar catalogs for other source typesimplement an API to access information in the catalogs and products, such as flux calculations, derived from the catalogsSky Catalogs are chiefly intended for use by simulation programs. The physical representation is meant to compactly represent information needed to compute fluxes at a given time, under specified conditions (e.g. band).Set-up and testingFrom bash$ source <skyCatalogs install directory>/setup/setup.sh
$ nosetests <skyCatalogs install directory>DemoPeopleJoanne Bogart(SLAC)License, etc.This is open source software, available under the BSD license. If you are interested in this project, please do drop us a line via the hyperlinked contact names above, or bywriting us an issue.
Package: skychart
Author:Behrouz SafariWebsite:AstroDataScience.NetSky ChartCreating star charts with pythonExample 1:Let's create sky chart of Paris at this moment. We want just the stars with apparent magnitude below 5.importskychartasschfromdatetimeimportdatetimeimportmatplotlib.pyplotaspltt=datetime.now()obs_loc=(2.3522,48.8566)fig,ax,df=sch.draw(obs_loc,t,mag_max=5,alpha=0.3)plt.show()Example 2:Here we make the same chart, using the low-level functiondraw_chart. We want only two constellations be drawn (Ursa MajorandCassiopeia).importskychartasschfromdatetimeimportdatetimeimportmatplotlib.pyplotaspltt=datetime.now()obs_loc=(2.3522,48.8566)# Base dataframedf=sch.visible_hipparcos(obs_loc,t)# DataFrame of stars that will be showndf_show=df[df['Vmag']<5]# Load constellation datadc_const=sch.load_constellations()# Show only Ursa Major and Cassiopeia constellationsdc_const={'UMa':dc_const['UMa'],'Cas':dc_const['Cas']}fig,ax,df_show=sch.draw_chart(df,df_show,dc_const,alpha=0.3)plt.show()
Package: skycoreprototype
PLEASE NOTE: Required environment variablesPY_SEL_ENVIRONMENTSpecifies the execution environment.  Accepted values: grid, local, saucelabs, amazonPY_SEL_BROWSERSpecifies the browser.  Accepted values: chrome, firefox, iePY_SEL_HOMEPAGESpecifies the homepage.  E.g.http://www.skyscanner.netPY_SEL_SCREENSHOT_DIRSpecifies the directory to write screenshots to. E.g. ./tmp/screenshotPY_SEL_HUB_URLSpecifies the URL of a standard selenium hub instancePY_SEL_AMAZON_HUB_URLSpecifies the URL of an amazon hosted selenium hub instancePY_SEL_SAUCE_USERNAMEThe username to use for Saucelabs authenticationPY_SEL_SAUCE_KEYThe access key to use for Saucelabs authentication
Package: skydance
OverviewA library for communication with Skydance Wi-Fi relays.The original product isa Wi-Fi to RF gatewaymanufactured by Skydance Co. China.Sometimes, it is re-branded under different names. For example, in the Czech Republic,it is soldas "dimLED" system.This aim of this library is to roughly cover capabilities ofthe official SkySmart Android application.SetupRequirementsPython 3.8+Installation$ pip install skydanceUsageThe protocol implementation isSans I/O.
You must create the connection and send the byte payloads on your own.
There are some helpers inskydance.networkbuilt on top of Python's asyncio which helps you to wrap the I/O.TODO - In meantime, please seetest/test_manual.py.LinksHome Assistant reverse engineering forum thread
Package: sky-dictionary
安装前必看安装步骤配置 INSTALLED_APPS 添加'django_simple_api;配置配置setting   中间件
'django.middleware.security.SecurityMiddleware',接口：configure 全部配置接口URL：http://127.0.0.1:8000/dictionary/configure/请求方式：GETContent-Type：multipart/form-data成功响应示例{"err":0,"msg":"ok",//返回文字描述"data": {"45888": {"45456": "{name:123456}"}} //返回数据}_configure 按照group查找接口状态：已完成接口URL：http://127.0.0.1:8000/dictionary/configure/45888/请求方式：GETContent-Type：multipart/form-data成功响应示例{"err":0,"msg":"ok",//返回文字描述"data": {"45456": "{name:123456}"} //返回数据}_configure 按照/group/key查找接口状态：已完成接口URL：http://127.0.0.1:8000/dictionary/configure/45888/45456/请求方式：GETContent-Type：multipart/form-data成功响应示例{"err":0,"msg":"ok",//返回文字描述"data": {"45456": "{name:123456}"} //返回数据}字段描述参数名示例值参数类型参数描述err0Number-msgokString返回文字描述-data-Object返回数据data.45456{name:123456}String-SQLCREATETABLE`dictionary_configure`(`id`bigint(20)NOTNULLAUTO_INCREMENT,`group`varchar(128)NOTNULL,`key`varchar(128)NOTNULL,`value`longtextNOTNULL,`description`varchar(255)NOTNULL,PRIMARYKEY(`id`)USINGBTREE,UNIQUEKEY`dictionary_configure_group_key_d0e0a692_uniq`(`group`,`key`)USINGBTREE,KEY`dictionary_configure_group_09d9ee65`(`group`)USINGBTREE,KEY`dictionary_configure_key_52d53a3c`(`key`)USINGBTREE)ENGINE=InnoDBAUTO_INCREMENT=4DEFAULTCHARSET=utf8ROW_FORMAT=DYNAMIC;
Package: skydl
# skydl
high efficiency deep learning framework# add skydl quickly
pip install skydl (or: pip install –no-deps skydl)# how to use skydl` >>> import skydl >>> skydl.__version__ `# how to setup
$python setup.py install or $python3 setup.py sdist bdist_wheel –universal , it will create folder: build, dist, egg-info
Package: skydroppy
A python library to interface with the Skydrop sprinkler controller API.first things first: OAuth your app with your usersTo use this library you must have a developer account to the Skydrop API. You can try emailingapi@skydrop.comasking for developer access to your account.You’ll have to navigate the OAuth2 flow per the docs to get a usercodewhich can be used to collect the access and refresh token for users:Skydrop API DocumentationThere are a few helper methods in the client to assist with thatexample codedocumentation coming later, for now, feel free to explore the codeexample code:import skydroppy
import time

async def main():
    client = skydroppy.SkydropClient(client_key, client_secret)
    # load tokens for the user from your favorite long term storage
    # should match the structure below.
    tokens = load_tokens()
    #{
    #    'access': <access token>,
    #    'refresh': <refresh token>>,
    #    'expires': <epoch timestamp for when access token expires>
    #}

    if tokens:
        client.load_token_data(tokens) # little helper method
    else:
        tokens = await client.get_access_token(code)
        save_tokens(client._tokens)

    if client.is_token_expired():
        tokens = await client.refresh_access_token()
        save_tokens(client._tokens)

    controllers = await client.update_controllers()
    for controller in controllers:
        print(controller)
        for zone in controller.zones:
            if zone.status == 'wired':
                print(zone)

    front_yard = controllers[0]
    back_yard = controllers[1]
    await front_yard.update() #updates status of all zones and controller status
    await front_yard.get_zone(3).start_watering()
    await back_yard.get_zone(1).start_watering()
    time.sleep(120)
    print(back_yard.get_zone(1).time_remaining)
    await back_yard.stop_watering() # stops all zones
    await front_yard.get_zone(3).stop_watering() # also stops all zones.. API/Skydrop limitation

asyncio.run(main())
Package: skye-users
skyeusers is an app for managing users for skyetech backend api systems.Detailed documentation is in the “docs” directory.Quick startAdd “skyeusers” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'skyeusers',
]Include the skyeusers URLconf in your project urls.py like this:path('skyeusers/', include('skyeusers.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/skyeusers/toRead the documentation for instructions on how to extend it and add new users, set random passwords, email users, add users roles and permission
Package: sky-excel
SKY-EXCEL Moduleexcel工具模块Part 1. Introduce介绍如果你不希望每一次需要把接口返回的字典数据导出成excel表格而去设计表头、合并单元格，而进行一次一次重复大量的编程活动。那么你可以尝试一下这个模块。sky-excel把表头设计与单元格设计耦合到一起，你只需要创建一个excel模板即可，然后进行配置对应输入的字段就可以实现，把接口的数据导出单元格。这个模块仅仅做了一件事情，就是把你写好的表头版本抄写一般，把字典数据按照键值对匹配填充进去即可。Part 2. API DocumentAPI 接口文档v1版本API:export_instance=ExcelExport(input_dict=global_export_data,excel_templet_path="./templet/templet.xlsx",save_path="D:\\PySet/sky-excel/templet/")参数介绍：input_dict：输入的字典数据，格式是[{..},{..}......]excel_templet_path:保存模板的路径，确保程序可以找到你的模板excel文件excel_templet_title:当前仅仅可以导出一个sheet，不可以实现批量的导出。所以需要指定，默认值Sheet1save_path:保存的文件路径，不传则返回文件流直接返回前端提供下载，注意返回时候需要修改响应头协议导出方法：data,err=export_instance.export()data:返回文件地址，或者文件流。前提是没有异常的情况下，否则返回空。err:返回的是异常提示v2版本API介绍:ExcelExport(excel_templet_path="./templet/templet.xls")参数介绍：excel_templet_path:模板的路径，可用则追加读写方式，不可用只写模式方法:1.追加读写：export_instance.additional_write(input_dict=global_export_data)参数介绍::paraminput_dict:[{..},{..}..]:paramexcel_templet_title:操作的sheet,需要与parse_max_row保持一致:return:data,err2.保存excel，当没有save_path的时候返回流，存在则返回流：export_instance.save(workbook=export_instance.additional_write_wb,save_path="D:\\PySet/sky-excel/sky_excel/export/")参数介绍::paramworkbook:操作的Workbook对象:paramsave_path:保存路径:return:data,err;data:None或者文件流Django 返回流提供下载templet_path=ROOT_DIR+"/excel_templates/templet.xlsx"exporter=ExcelExport(input_dict=global_export_data,excel_templet_path=templet_path)data,err=exporter.export()iferr:returnJsonResponse({"err":1000,"msg":err})response=HttpResponse(content_type='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')response['Content-Disposition']='attachment;filename=export_overview.xlsx'response.write(data)returnresponsePart 3. 版本更新1.0.51.支持python2.7与python3.0以上版本2.增加边界判断3.直接拷贝模板，避免了表头样式问题。4.支持文字+表达式5.使用规则，最后一行表示表达式行，所以模板应该清除掉多余不需要的单元格内容。1.0.61.解决openpyxl数据量大，导出数据慢的问题添加v2版本API，使用xlwt+xlrd+xlutils实现，写入效率有所提高。2.原有1.0.5所有API放在v1里面
Package: skyeye
### 安装

#### python3环境安装brew install python3#### skyeye安装pip3 install skyeye#### 扫描APK中代码引用

1. 本地创建config.yaml文件,格式如下

```yaml
- className: "com.xx.xx.yourClassName1"
  methodName: "methodName"
- className: "com.xx.xx.yourClassName2"
  filedName: "filedName"如果methodName,filedName不填写,会扫描className所有方法和变量的外部引用情况方法和字段名都是模糊匹配，例如methodName(x,x)只需要填写methodName即可扫描skyeyescan-i,--input输入扫描的APK路径-c,--config扫描配置yaml文件路径-o,--output输出结果的文件夹路径【可选，默认运行文件夹路径】输出结果，格式如下{"cn.Test:<init>()V":[{"caller_class":"cn.xx.MainActivity","caller_method":"protected onCreate(Landroid.os.Bundle;)V","invoke_num":" 58"}],"cn.Test.staticString":[{"caller_class":"cn.xx.MainActivity","caller_method":"protected onCreate(Landroid.os.Bundle;)V","invoke_num":" 60"}]}反编译skyeyedec-i,--input输入扫描的APK路径-o,--output输出结果的文件夹路径【可选，默认运行文件夹路径】GUI打开源码skyeyejd-i,--input目标class文件路径或者class文件夹路径查看当前版本skyeye-v输出版本同时，检查更新changeLog3.6.0支持扫描子父类的继承方法和字段3.4.2支持APK反编译3.2.0支持静态变量&&变量扫描支持扫描类里面所有变量&&方法3.1.0增加结果报告执行函数输出增加PyYaml的依赖3.0.0在侧边扫描特定类的所有方法外部的引用扫描特定类的特定方法的外部引用支持图片的裁剪选择
Package: skyfield
Skyfield is a pure-Python astronomy package
that is compatible with both Python 2 and 3
and makes it easy to generate high precision research-grade
positions for planets and Earth satellites.fromskyfield.apiimportloadplanets=load('de421.bsp')earth,mars=planets['earth'],planets['mars']ts=load.timescale()t=ts.now()position=earth.at(t).observe(mars)ra,dec,distance=position.radec()print(ra)print(dec)print(distance)The result:10h 47m 56.24s
+09deg 03' 23.1"
2.33251 auSkyfield’s only binary dependency is NumPy.
Once that is available, Skyfield can usually be installed with:pip install skyfieldHere are the essential project links:Home page and documentation.Installing Skyfield.Contributing to Skyfield.Skyfield packageon the Python Package Index.Issue trackeron GitHub.
Package: skygear
Python plugin runtime for SkygearWhen the Skygear Server calls your plugin,py-skygearwill take the plugin message and calls the appropriate function automatically.Python Cloud Functionspy-skygearis useful for running Python Cloud Functions to work withskygear-server;skygear-nodeis the counter part of py-skygear but for Javascript.You can read more about how to write Skygear Cloud Functions inSkygear Guides. You don't need py-skygear if you're using skygear.io and don't plan to deploy it on your own.Install py-skygearYou may want to readSetup Skygear Development Server Locallybefore installing py-skygear (and understand why you might or might not needpy-skygear)Install skygear by using pip. py-skygear requires Python 3.$ pip3 install skygearAlternatively, you can installpy-skygearfrom source by cloningpy-skygearfrom this official repository.DevelopmentSkygear support two kind of protocol for different use case, make sure you
add support to all of them or raise appropriate exception.Supported protocols:httpandzmqIf you want to use zmq, you need to install pyzmq, and respective cbinding.
You can install via homebrew in OSXbrew install zeromqYou may run a long running process that hook with your own skygear-server
instance.DATABASE_URL=postgresql://localhost/skygear?sslmode=disable \
py-skygear sample.py \
--skygear-address tcp://127.0.0.1:5555 \
--skygear-endpoint http://127.0.0.1:3000 \
--apikey=API_KEYSupportFor implementation related questions or technical support, please find us on theofficial forumorcommunity chat.If you believe you've found an issue with the Skygear Python cloud function SDK, please feel free toreport an issue.How to contributePull Requests Welcome!We really want to see Skygear grows and thrives in the open source community.
If you have any fixes or suggestions, simply send us a pull request!License & CopyrightCopyright (c) 2015-present, Oursky Ltd.
All rights reserved.

This source code is licensed under the Apache License version 2.0 
found in the LICENSE file in the root directory of this source tree. 
An additional grant of patent rights can be found in the PATENTS 
file in the same directory.
Package: skyhook
This implements the Skyhook ELG binary protocol in pythonInstallationJust install withpip:pip install python-skyhookUsagePython example:import skyhook

key = 'ABCDEF1234567890'  # from the API console
userID = 11111            # from the API console

bssid = 'ab:cd:ef:12:34:56'
rssi = -60

request = skyhook.SkyhookRequest()
request.addAccessPoint(bssid.replace(':', ''), rssi)

connection = skyhook.SkyhookConnection(key=key, userID=userID)
response = connection.performRequest(request)

if response.status != 'Ok':
        print('Error:', response.status)
else:
        print('Response: ', response.coordinate)Command line clientIn thetestdirectory you’ll find a command line client to test if everything works:$ python cmdline_client.py --help
usage: cmdline_client.py [-h] -k KEY -u USERID [-w WIFI] [-g GPS] [-c CELL]
                                                 [-b BT]

Make a location request against the skyhook service

optional arguments:
  -h, --help            show this help message and exit
  -k KEY, --key KEY     encryption key from Skyhook API panel
  -u USERID, --user USERID
                                                user ID from Skyhook API panel
  -w WIFI, --wifi WIFI  WIFI BSSID and signal strength (format: XX:XX:XX:XX:XX:XX@RSSI)
  -g GPS, --gps GPS     GPS coordinate (format: latitude,longitude@num_satelites)
  -c CELL, --cell CELL, --celltower CELL
                                                Celltower information (format: MCC,MNC,LAC,CellID@RSSI)
  -b BT, --bt BT, --bluetooth BT
                                                Bluetooth beacon (format: XX:XX:XX:XX:XX:XX,UUID,Major,Minor@RSSI)
Package: skyhookfilecrypt
skyhookfilecryptMultithreaded file encryption and decryption module extracted from Skyhook:https://github.com/deedeecx330/skyhookDesigned to be both fast and easy on the resources.UsageThe module has two functions, encryptFile and decryptFile. The function arguments in both cases are:File that is to be encrypted/decryptedOutput file where encrypted/decrypted contents will be saved toA bytestring passphrase to encrypt/decrypt the file withFor exampleskyhookfilecrypt.encryptFile("file.in", "file.out", b"password")will encrypt file.in with the given password and write the encrypted contents of file.in to file.out. Same principle works for decrypting files:skyhookfilecrypt.decryptFile("file.in", "file.out", b"password")will decrypt file.in with the given password and write the decrypted contents to file.out.
Package: skyimages
skyimagesDownload sky images for solar power forecasting as pytorch-ready datasets.Installation using pypiFrom release v0.0.1,skyimageswill be installable via pip:pipinstallskyimagesInstallation using githubDownloadskyimagesfromgithub.
Change the CWD to the download folderskyimages/and install
the package using pip.gitclonegit@github.com:FlorianK13/skyimages.gitcdskyimages
pipinstall.Getting startedTo download the dataset SKIPP'D (source) and use it as a pytorch torchvision dataset,
run the following code in pythonfromskyimages.datasetimportSKIPPDDataSetimporttorchtraindata=SKIPPDDataSet(download=True)testdata=SKIPPDDataSet(download=True,train=False)trainloader=torch.utils.data.DataLoader(traindata,batch_size=200,shuffle=True,num_workers=0)testloader=torch.utils.data.DataLoader(testdata,batch_size=20,shuffle=False,num_workers=0)Running code on WindowsIf you use windows, wrap your code in theif __name__ == '__main__'clause to support multiprocessing.Hereyou can find more info on this issue.