package
stringlengths 1
122
| pacakge-description
stringlengths 0
1.3M
|
---|---|
zurb-foundation | This repository is automatically updated fromhttps://github.com/zurb/bower-foundationFoundationFoundation is the most advanced responsive front-end framework in the world. You can quickly prototype and build sites or apps that work on any kind of device with Foundation, which includes layout constructs (like a fully responsive grid), elements and best practices.To get started, check outhttp://foundation.zurb.com/docsInstallationTo get going with Foundation python module you can install it fromPyPi package:pipinstallzurb-foundationDocumentationFoundation documentation pages are available athttp://foundation.zurb.com/docsPython packageAfter installation you can usepkg_resourcemodule to access assets:importpkg_resourcesas_string=pkg_resources.resource_string("zurb_foundation","js/vendor/custom.modernizr.js")full_path_to_file=pkg_resources.resource_filename("zurb_foundation","js/vendor/custom.modernizr.js")file_like=pkg_resources.resource_stream("zurb_foundation","js/vendor/custom.modernizr.js")Package consists of:js, compiledcssandscssfiles. |
zurich | Asynchronous Python client for the open datasets of Zurich (Switzerland).AboutA python package with which you can retrieve data from the Open Data Platform of Zurich viatheir API. This package was initially created to only retrieve parking data from the API, but the code base is made in such a way that it is easy to extend for other datasets from the same platform.InstallationpipinstallzurichDatasetsYou can read the following datasets with this package:Parking spaces for disabled / Behindertenparkplรคtze(413 locations)Click here to get more detailsDisabled parkingsVariableTypeDescriptionspot_idintThe ID of the parking spotaddressstrThe address of the parking spotlongitudefloatThe longitude of the parking spotlatitudefloatThe latitude of the parking spotExampleimportasynciofromzurichimportODPZurichasyncdefmain()->None:"""Show example on using the Open Data API client."""asyncwithODPZurich()asclient:disabled_parkings=awaitclient.disabled_parkings()print(disabled_parkings)if__name__=="__main__":asyncio.run(main())Use casesNIPKaart.nlA website that provides insight into where disabled parking spaces are, based
on data from users and municipalities. Operates mainly in the Netherlands, but
also has plans to process data from abroad.ContributingThis is an active open-source project. We are always open to people who want to
use the code or contribute to it.We've set up a separate document for ourcontribution guidelines.Thank you for being involved! :heart_eyes:Setting up development environmentThe simplest way to begin is by utilizing theDev Containerfeature of Visual Studio Code or by opening a CodeSpace directly on GitHub.
By clicking the button below you immediately start a Dev Container in Visual Studio Code.This Python project relies onPoetryas its dependency manager,
providing comprehensive management and control over project dependencies.You need at least:Python 3.11+PoetryInstall all packages, including all development requirements:poetryinstallPoetry creates by default an virtual environment where it installs all
necessary pip packages, to enter or exit the venv run the following commands:poetryshellexitSetup the pre-commit check, you must run this inside the virtual environment:pre-commitinstallNow you're all set to get started!As this repository uses thepre-commitframework, all changes
are linted and tested with each commit. You can run all checks and tests
manually, using the following command:poetryrunpre-commitrun--all-filesTo run just the Python tests:poetryrunpytestLicenseMIT LicenseCopyright (c) 2022-2023 Klaas SchoutePermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zurkon | No description available on PyPI. |
zusha-web-app | Polls is a simple Django app to conduct Web-based polls. For each
question, visitors can choose between a fixed number of answers.Detailed documentation is in the โdocsโ directory.Quick startTo be overwrittenTo be overwrittenRunpython manage.py migrateto create migrations.Start the development server and visithttp://127.0.0.1:8000/Visithttps://zusha.duckdns.org |
zuspec | Co-specification of hardware, software, design, and test behavior |
zuspec-arl-dm | Provides a library interface for creating and evaluating ARL models at an API level |
zuspec-arl-eval | Provides a library interface for creating and evaluating ARL models at an API level |
zuspec-be-sw | Provides features for mapping ARL models to software output |
zuspec-cli | Co-specification of hardware, software, design, and test behavior |
zuspec-dataclasses | PyARL-Dataclasses provides a front-end for capturing actions, and activities
in a dataclass-centric manner |
zuspec-fe-parser | Zuspec front-end to bring in parsed PSS |
zuspec-parser | Zuspec parser |
zuss | Control USB Shifter via python SDK, send serial commands via COM connection. |
zut | ZutReusable Python and Django common utilities.InstallationFrom PyPI:pip install zutFrom a Git branch or tag (using https or ssh):pip install git+https://gitlab.com/ipamo/zut.git@main#egg=zut
pip install git+ssh://git@gitlab.com/ipamo/zut.git@main#egg=zutUsage examplesConfigure loggingfromzutimportconfigure_loggingconfigure_logging()Flexible in/outWrite text or tabular data to a flexible, easily configurable output: CSV or Excel file, or tabulated stdout/stderr.The output file may be on the local file system or on a Windows/Samba share (including when the library is used on Linux).Export text to stdout or to a file:importsysfromzutimportout_filewithout_file(filenameorsys.stdout)asf:f.write("Content")Export tabular data to stdout or to a file:importsysfromzutimportout_tablewithout_table(filenameorsys.stdout,headers=["Id","Word"])ast:t.append([1,"Hello"])t.append([2,"World"])Tabular data can also be exported using dictionnaries (in this case, headers will be detected automatically by the library):importsysfromzutimportout_tablewithout_table(filenameorsys.stdout)ast:t.append({'id':1,'name':"Hello"})t.append({'id':2,'col3':True})Iffilenamehas extension with.xlsx, output will be in Excel 2010 format.
Otherwise it will be in CSV format.Iffilenamestarts with\\, output will be done on the corresponding Windows/Samba share.
To indicate Samba credentials, callconfigure_smb_credentialsbefore using functionout_table.
Example:fromzutimportout_table,configure_smb_credentialsconfigure_smb_credentials(user=...,password=...)without_table(r"\\server\share\path\to\file")aso:...ResourcesMaintenance of the library and repository |
zutil | zutilNote: This library sets Paraview compatibility to version >= 5.4 |
zutilities | zutilitiesA collection of Python utilitiesTable of ContentsPrerequisitesInstallationUsageLicensePrerequisitesYou'll need to have Python installed in order to usezutilities. Start by downloading and installingPython.Note: Python 3 is recommended, howeverzutilitieswill probably work just fine with most verions of Python 2Installationpython -m pip install zutilitiesUsagezutilities.jprint(list_or_dict, indent=2)Prints a list or dictionary as formatted JSON.>>> zutilities.jprint([{'key1':'value1','key2':'value2'}])
[
{
"key1": "value1",
"key2": "value2"
}
]zutilities.read_json_file(json_file)Reads a JSON file from the filesystem and returns a list or dictionary.>>> j = zutilities.read_json_file('file.json')
>>> j
[{'key1': 'value1', 'key2': 'value2'}]zutilities.get_logger(log_level=20, format=default_log_format, streams=[sys.stdout])Returns alogging.RootLoggerobject with preferred defaults set. Thedefault_log_formatis '[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s'>>> logr = zutilities.get_logger()
>>> logr.info('Hello World')
[2021-10-08 21:08:40,353] {<stdin>:1} INFO - Hello worldLicenseThis project is licensed under the MIT License |
zutils | DOCSome utils for python dev.Intro1 views.View ๆไพไบๆๅฎmodel็fieldsไฟกๆฏ๏ผ ้้
็ฝฎHTMLModelไฝฟ็จ |
zutnlp | Failed to fetch description. HTTP Status Code: 404 |
zut-nlp-utils | No description available on PyPI. |
zutool | zutoolUnofficial zutool (้ ญ็ใผใซ:https://zutool.jp/) API WrapperInstallpipinstallzutoolAs Libraryimportzutoolasz# see: <https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html>area_code="13"# ๆฑไบฌ้ฝz.get_pain_status(area_code)keyword="ๆฑไบฌ้ฝ"z.get_weather_point(keyword)# see: <https://geoshape.ex.nii.ac.jp/city/code/?13113>city_code="13113"# ๆฑไบฌ้ฝๆธ่ฐทๅบz.get_weather_status(city_code)city_code="13101"# ๆฑไบฌ้ฝๅไปฃ็ฐๅบz.get_otenki_asp(city_code)As CLI$ zutool -h
usage: zutool [-h] [-j] {pain_status,ps,weather_point,wp,weather_status,ws,otenki_asp,oa} ...
Get info of zutool <https://zutool.jp/>.
positional arguments:
{pain_status,ps,weather_point,wp,weather_status,ws,otenki_asp,oa}
pain_status (ps) get pain status by prefecture
weather_point (wp) search weather point
weather_status (ws) get pain status by city
otenki_asp (oa) get weather infomations
optional arguments:
-h, --help show this help message and exit
-j, --json print as json (default: False)pain_status (ps)$ zutool ps -h
usage: zutool pain_status [-h] [-s CODE] area_code
positional arguments:
area_code see: <https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html> (ex. `13`)
optional arguments:
-h, --help show this help message and exit
-s CODE set weather point code as default (ex. `13113`) (default: None)$ zutool ps 01
ไปใฎใฟใใชใฎไฝ่ชฟใฏ๏ผ <ๅๆตท้|01>
(้่จๆ้: 12ๆ-18ๆๅฐ)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐๐๐๐๐๐๐๐ 17.098445595855% โ
โ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ 31.60621761658% โ
โ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ 37.823834196891% โ
โ ๐คฏ๐คฏ๐คฏ๐คฏ๐คฏ๐คฏ 13.471502590674% โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ [๐๏ฝฅ๏ฝฅ๏ฝฅๆฎ้, ๐๏ฝฅ๏ฝฅ๏ฝฅๅฐใ็ใ, ๐๏ฝฅ๏ฝฅ๏ฝฅ็ใ, ๐คฏ๏ฝฅ๏ฝฅ๏ฝฅใใชใ็ใ] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโweather_point (wp)$ zutool wp -h
usage: zutool weather_point [-h] [-k] keyword
positional arguments:
keyword keyword for searching city_code (ex. `ๆฑไบฌ้ฝ`)
optional arguments:
-h, --help show this help message and exit
-k, --kata with kata column in non-json output (default: False)$ zutool wp "ๆธฏๅบ"
ใๆธฏๅบใใฎๆค็ดข็ตๆ
โโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโ
โ ๅฐๅใณใผใ โ ๅฐๅๅ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 13103 โ ๆฑไบฌ้ฝๆธฏๅบ โ
โ 23111 โ ๆ็ฅ็ๅๅคๅฑๅธๆธฏๅบ โ
โ 27107 โ ๅคง้ชๅบๅคง้ชๅธๆธฏๅบ โ
โโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโweather_status (ws)$ zutool ws -h
usage: zutool weather_status [-h] [-n N [N ...]] city_code
positional arguments:
city_code see: <https://geoshape.ex.nii.ac.jp/city/code/> (ex. `13113`)
optional arguments:
-h, --help show this help message and exit
-n N [N ...] specify day number to show (default: [0])$ zutool ws 13113
<ๆฑไบฌ้ฝๆธ่ฐทๅบ|13113>ใฎๆฐๅงไบๅ ฑ
today = 2023-08-15 20:00:00+09:00
โโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโ
โ 0 โ 1 โ 2 โ 3 โ 4 โ 5 โ 6 โ 7 โ 8 โ 9 โ 10 โ 11 โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ 28.4โ โ 27.5โ โ 27.3โ โ 26.5โ โ 26.9โ โ 26.7โ โ 26.9โ โ 27.9โ โ 28.4โ โ 28.4โ โ 29.1โ โ 30.7โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ 1004.8 โ 1004.2 โ 1004.3 โ 1004.3 โ 1004.6 โ 1004.9 โ 1005.2 โ 1005.4 โ 1005.8 โ 1006.0 โ 1005.8 โ 1005.3 โ
โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ
โโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโ
โโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโณโโโโโโโโโณโโโโโโโโโณโโโโโโโโโณโโโโโโโโโณโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโ
โ 12 โ 13 โ 14 โ 15 โ 16 โ 17 โ 18 โ 19 โ 20 โ 21 โ 22 โ 23 โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ 31.1โ โ 32.2โ โ 31.9โ โ 31.6โ โ 31.3โ โ 29.9โ โ 29.3โ โ 29.2โ โ 28.4โ โ 27.9โ โ 27.5โ โ 27.2โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ 1005.1 โ 1004.9 โ 1004.9 โ 1004.6 โ 1004.7 โ 1004.8 โ 1005.2 โ 1005.7 โ 1006.3 โ 1006.5 โ 1006.5 โ 1006.4 โ
โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ้ๅธธ_0 โ ้ๅธธ_0 โ ้ๅธธ_0 โ ้ๅธธ_0 โ ้ๅธธ_0 โ ้ๅธธ_0 โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ ใใ่ญฆๆ โ
โโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโotenki_asp (oa)$ zutool oa -h
usage: zutool otenki_asp [-h] [-n N [N ...]] {01101,04101,13101,15103,17201,23106,27128,34101,39201,40133,47201}
positional arguments:
{01101,04101,13101,15103,17201,23106,27128,34101,39201,40133,47201}
see: <https://geoshape.ex.nii.ac.jp/city/code/> (ex. `13113`)
optional arguments:
-h, --help show this help message and exit
-n N [N ...] specify day number to show (default: [0, 1, 2, 3, 4, 5, 6])$ zutool oa 13101
<ๆฑไบฌ|13101>ใฎๅคฉๆฐๆ
ๅ ฑ
โโโโโโโโโณโโโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโณโโโโโโโโโโโ
โ ๆฅไป โ ๅคฉๆฐ โ ้ๆฐด็ขบ็ โ ๆ้ซๆฐๆธฉ โ ๆไฝๆฐๆธฉ โ ๆๅคง้ขจ้ โ ๆๅคง้ขจ้ๆ้ขจๅ โ ๆฐๅงไบๅ ฑใฌใใซ โ ๆๅฐๆนฟๅบฆ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 08/02 โ ๆดใ โ 10.0 โ 35.0 โ 26.0 โ 11.2 โ 8.0 โ 2.0 โ 60.5 โ
โ 08/03 โ ๆดใ โ 10.0 โ 36.0 โ 26.0 โ 11.8 โ 8.0 โ 4.0 โ 63.6 โ
โ 08/04 โ ๆดใ โ 0.0 โ 36.0 โ 26.0 โ 10.0 โ 8.0 โ 2.0 โ 59.6 โ
โ 08/05 โ ๆดใใฎใก้จ โ 30.0 โ 36.0 โ 27.0 โ 11.8 โ 8.0 โ 1.0 โ 64.3 โ
โ 08/06 โ ้จใฎใกๆดใ โ 30.0 โ 36.0 โ 27.0 โ 10.3 โ 8.0 โ 2.0 โ 61.9 โ
โ 08/07 โ ๆดใใฎใก้จ โ 50.0 โ 33.0 โ 26.0 โ 7.2 โ 2.0 โ 2.0 โ 63.6 โ
โ 08/08 โ ้จไธๆๆดใ โ 80.0 โ 33.0 โ 26.0 โ 6.2 โ 6.0 โ 1.0 โ 79.5 โ
โโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโ |
zuul | Zuul is a project gating system.The latest documentation for Zuul v3 is published at:https://zuul-ci.org/docs/zuul/If you are looking for the Edge routing service named Zuul that is
related to Netflix, it can be found here:https://github.com/Netflix/zuulIf you are looking for the Javascript testing tool named Zuul, it
can be found here:https://github.com/defunctzombie/zuulGetting HelpThere are two Zuul-related mailing lists:zuul-announceA low-traffic announcement-only list to which every Zuul operator or
power-user should subscribe.zuul-discussGeneral discussion about Zuul, including questions about how to use
it, and future development.You will also find Zuul developers onMatrix <https://matrix.to/#/#zuul:opendev.org>.ContributingTo browse the latest code, see:https://opendev.org/zuul/zuulTo clone the latest code, usegit clone https://opendev.org/zuul/zuulBugs are handled at:https://storyboard.openstack.org/#!/project/zuul/zuulSuspected security vulnerabilities are most appreciated if first
reported privately following any of the supported mechanisms
described athttps://zuul-ci.org/docs/zuul/user/vulnerabilities.htmlCode reviews are handled by gerrit athttps://review.opendev.orgAfter creating a Gerrit account, usegit reviewto submit patches.
Example:# Do your commits
$ git review
# Enter your username if promptedJoin us on Matrixto discuss
development or usage.LicenseZuul is free software. Most of Zuul is licensed under the Apache
License, version 2.0. Some parts of Zuul are licensed under the
General Public License, version 3.0. Please see the license headers
at the tops of individual source files.Python Version SupportZuul requires Python 3. It does not support Python 2.Since Zuul uses Ansible to drive CI jobs, Zuul can run tests anywhere
Ansible can, including Python 2 environments. |
zuulcilint | zuulcilintValidate from the command linepip install zuulcilint
usage: zuulcilint [-h] [--version] [--check-playbook-paths] [--schema SCHEMA] [--ignore-warnings] [--warnings-as-errors] file [file ...]
positional arguments:
file file(s) or paths to lint
options:
-h, --help show this help message and exit
--version show program's version number and exit
--check-playbook-paths, -c
check that playbook paths are valid
--schema SCHEMA, -s SCHEMA
path to Zuul schema file
--ignore-warnings, -i
ignore warnings
--warnings-as-errors handle warnings as errorsValidate with pre-commitAdd the code below to your.pre-commit-config.yamlfile:-repo:https://github.com/codesquadnest/zuulcilint.gitrev:"0.2.5"hooks:-id:zuulcilintValidate with VS CodeTo ease editing Zuul CI configuration file we added experimental support for
a Zuul JSON Schema. This should enable validation and auto-completion in
code editors.For example onVSCodeyou can use theYAMLextension to use such a schema
validation by adding the following to.vscode/settings.json:"yaml.schemas":{"https://raw.githubusercontent.com/codesquadnest/zuulcilint/master/zuulcilint/zuul-schema.json":["*zuul-extra.d/***/*.yaml","*zuul.d/**/*.yaml","*zuul.d/**/**/*.yaml","*/.zuul.yaml"]},"yaml.customTags":["!encrypted/pkcs1-oaep array"],"sortJSON.orderOverride":["title","name","$schema","version","description","type"],"sortJSON.orderUnderride":["definitions"] |
zuul-client | Zuul-client is a CLI tool that can be used to interact with Zuul, the project
gating system.The latest documentation for Zuul and Zuul Client can be found at:https://zuul-ci.org/docs/Getting HelpThere are two Zuul-related mailing lists:zuul-announceA low-traffic announcement-only list to which every Zuul operator or
power-user should subscribe.zuul-discussGeneral discussion about Zuul, including questions about how to use
it, and future development.You will also find Zuul developers in the#zuulchannel on Freenode
IRC.ContributingTo browse the latest code, see:https://opendev.org/zuul/zuul-clientTo clone the latest code, usegit clone https://opendev.org/zuul/zuul-clientBugs are handled at:https://storyboard.openstack.org/#!/project/zuul/zuulSuspected security vulnerabilities are most appreciated if first
reported privately following any of the supported mechanisms
described athttps://zuul-ci.org/docs/zuul/user/vulnerabilities.htmlCode reviews are handled by gerrit athttps://review.opendev.orgAfter creating a Gerrit account, usegit reviewto submit patches.
Example:# Do your commits
$ git review
# Enter your username if promptedJoin#zuulon Freenode to discuss development or usage.LicenseZuul-client is free software, and licensed under the Apache License, version 2.0.Python Version SupportZuul-client requires Python 3. It does not support Python 2. |
zuulfmt | zuulfmtA Zuul/Ansible yaml formatter/prettifier.Changes0.2.0The fmt function output is new-line terminated0.1.0Initial release |
zuul_get | No description available on PyPI. |
zuul-lint | zuul-lintValidate from the command linepip install zuul-lint
zuul-lint .zuul.yamlValidate with pre-commitAdd the code below to your.pre-commit-config.yamlfile:-repo:https://github.com/pycontribs/zuul-lint.gitrev:"0.1"hooks:-id:zuul-lintValidate with VS CodeTo ease editing Zuul CI configuration file we added experimental support for
a Zuul JSON Schema. This should enable validation and auto-completion in
code editors.For example onVSCodeyou can use theYAMLextension to use such a schema
validation by adding the following tosettings.json:"yaml.schemas":{"https://raw.githubusercontent.com/pycontribs/zuul-lint/master/zuul_lint/zuul-schema.json":["*zuul.d/*.yaml","*/.zuul.yaml"]},"yaml.customTags":["!encrypted/pkcs1-oaep array"],"sortJSON.orderOverride":["title","name","$schema","version","description","type"],"sortJSON.orderUnderride":["definitions"] |
zuul-registry | This is a container image registry for use with the Zuul project
gating system.The defining feature of this registry is support for shadowing images:
it allows you to upload a local version of an image to use instead of
an upstream version. If you pull an image from this registry, it will
provide the local version if it exists, or the upstream if it does
not.This makes it suitable for use in a Zuul-driven speculative image
pipeline.The latest documentation for Zuul is published at:https://zuul-ci.org/docs/Getting HelpThere are two Zuul-related mailing lists:zuul-announceA low-traffic announcement-only list to which every Zuul operator or
power-user should subscribe.zuul-discussGeneral discussion about Zuul, including questions about how to use
it, and future development.You will also find Zuul developers in the#zuulchannel on Freenode
IRC.ContributingTo browse the latest code, see:https://opendev.org/zuul/zuul-registryTo clone the latest code, usegit clone https://opendev.org/zuul/zuul-registryBugs are handled at:https://storyboard.openstack.org/#!/project/zuul/zuul-registrySuspected security vulnerabilities are most appreciated if first
reported privately following any of the supported mechanisms
described athttps://zuul-ci.org/docs/zuul/user/vulnerabilities.htmlCode reviews are handled by gerrit athttps://review.opendev.orgAfter creating a Gerrit account, usegit reviewto submit patches.
Example:# Do your commits
$ git review
# Enter your username if promptedJoin#zuulon Freenode to discuss development or usage.LicenseZuul-registry is free software licensed under the General Public
License, version 3.0.Python Version SupportZuul requires Python 3. It does not support Python 2. |
zuul-sphinx | ASphinxextension for documentingZuuljobs and configuration. |
zuul-stats-client | This is a Python client to report various statistics from aZuulserver.Requirements.Python 3.6+. Therequirements.txtfile lists the extra Python librarires
required by the client.Installation & UsageInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all
users)You can run the client directly:$zuul-stats-client-h |
zuup | Command line to consult Openstack zuul statusFree software: Apache licenseDocumentation:http://zuup.readthedocs.orgSource:http://github.com/sileht/zuupBugs:http://github.com/sileht/zuup/issuesInstallationAt the command line:$ pip install zuupOr, if you have virtualenvwrapper installed:$ mkvirtualenv zuup
$ pip install zuupUsageTo use zuup:$ zuup --help
usage: zuup [-h] [-D] [-d] [-w DELAY] [-e EXPIRATION] [-u USERNAME]
[-p PROJECTS] [-c CHANGES] [-l] [-r] [-s] [-j JOB]
optional arguments:
-h, --help show this help message and exit
-D Daemonize and exit if no more reviews
-d Daemonize
-w DELAY refresh delay
-e EXPIRATION review expiration in deamon mode
-u USERNAME Username
-p PROJECTS Projects
-c CHANGES changes
-l local changes
-r current repo changes
-s short output
-j JOB show log of a job of a changeExamplePrint jobs of projects:$ zuup -p openstack/ceilometer -p openstack/gnocchi
[openstack/gnocchi] check[0]: https://review.openstack.org/235161
TEST 01:22:14/00:00:00
- SUCCESS --:--:-- gate-gnocchi-pep8 http://logs.openstack.org/61/235161/4/check/gate-gnocchi-pep8/ac6632a
- SUCCESS --:--:-- gate-gnocchi-docs http://logs.openstack.org/61/235161/4/check/gate-gnocchi-docs/ff085e7
- SUCCESS --:--:-- gate-gnocchi-python27 http://logs.openstack.org/61/235161/4/check/gate-gnocchi-python27/9e3fd5e
- SUCCESS --:--:-- gate-gnocchi-python34 http://logs.openstack.org/61/235161/4/check/gate-gnocchi-python34/afcef87
- SUCCESS --:--:-- gate-gnocchi-bashate http://logs.openstack.org/61/235161/4/check/gate-gnocchi-bashate/f7b10d4
- SUCCESS --:--:-- gate-gnocchi-dsvm-functional-file-mysql http://logs.openstack.org/61/235161/4/check/gate-gnocchi-dsvm-functional-file-mysql/d016760
- ======= 00:00:00 gate-gnocchi-dsvm-functional-swift-postgresql https://jenkins06.openstack.org/job/gate-gnocchi-dsvm-functional-swift-postgresql/263/
- SUCCESS --:--:-- gate-gnocchi-dsvm-functional-ceph-mysql http://logs.openstack.org/61/235161/4/check/gate-gnocchi-dsvm-functional-ceph-mysql/2b54187
- SUCCESS --:--:-- gate-ceilometer-dsvm-integration http://logs.openstack.org/61/235161/4/check/gate-ceilometer-dsvm-integration/a937fd5
[openstack/ceilometer] check[0]: https://review.openstack.org/235202
Merge tag '5.0.0' 01:02:46/00:09:20
- SUCCESS --:--:-- gate-ceilometer-pep8 http://logs.openstack.org/02/235202/1/check/gate-ceilometer-pep8/bac67ce
- SUCCESS --:--:-- gate-ceilometer-docs http://logs.openstack.org/02/235202/1/check/gate-ceilometer-docs/1d1eb96
- FAILURE --:--:-- gate-ceilometer-python27 http://logs.openstack.org/02/235202/1/check/gate-ceilometer-python27/d993423
- FAILURE --:--:-- gate-ceilometer-python34 http://logs.openstack.org/02/235202/1/check/gate-ceilometer-python34/5ee29b5
- SUCCESS --:--:-- gate-tempest-dsvm-ceilometer-mongodb-full http://logs.openstack.org/02/235202/1/check/gate-tempest-dsvm-ceilometer-mongodb-full/a55e9e6
- ======. 00:09:20 gate-tempest-dsvm-ceilometer-mysql-neutron-full https://jenkins06.openstack.org/job/gate-tempest-dsvm-ceilometer-mysql-neutron-full/114/
- ======= 00:00:00 gate-tempest-dsvm-ceilometer-mysql-full https://jenkins03.openstack.org/job/gate-tempest-dsvm-ceilometer-mysql-full/36/
- SUCCESS --:--:-- gate-tempest-dsvm-ceilometer-postgresql-full http://logs.openstack.org/02/235202/1/check/gate-tempest-dsvm-ceilometer-postgresql-full/a1eee16
- ======= 00:00:00 gate-ceilometer-dsvm-functional-mongodb https://jenkins03.openstack.org/job/gate-ceilometer-dsvm-functional-mongodb/275/
- ======= 00:00:00 gate-ceilometer-dsvm-functional-postgresql https://jenkins05.openstack.org/job/gate-ceilometer-dsvm-functional-postgresql/146/
- SUCCESS --:--:-- gate-grenade-dsvm-ceilometer http://logs.openstack.org/02/235202/1/check/gate-grenade-dsvm-ceilometer/383ecfb
- SUCCESS --:--:-- gate-ceilometer-dsvm-integration http://logs.openstack.org/02/235202/1/check/gate-ceilometer-dsvm-integration/6758820
...Print jobs of an user:$ zuup -u sileht
$ zuup -u sileht -d # Run it in loopPrint jobs of a change-id:$ zuup -c 235161
or
$ zuup -c https://review.openstack.org/235207Print jobs of change-ids on your local git branch:$ zuup -lPrint jobs resume$ zuup -c https://review.openstack.org/235207 -s
[openstack/ceilometer] check[0]: https://review.openstack.org/235207 Switch to post-versioning 00:59:40/00:04:08 SSFSSSSPPSS
- FAILURE --:--:-- gate-ceilometer-python27 http://logs.openstack.org/07/235207/1/check/gate-ceilometer-python27/546a067Print running and failed jobs only$ zuup -c https://review.openstack.org/235207 -R
[openstack/ceilometer] check[0]: https://review.openstack.org/235207
Switch to post-versioning 01:00:18/00:03:30
- FAILURE --:--:-- gate-ceilometer-python27 http://logs.openstack.org/07/235207/1/check/gate-ceilometer-python27/546a067
- ======= 00:00:00 gate-ceilometer-dsvm-functional-mongodb https://jenkins03.openstack.org/job/gate-ceilometer-dsvm-functional-mongodb/276/
- ======. 00:03:30 gate-ceilometer-dsvm-functional-postgresql https://jenkins04.openstack.org/job/gate-ceilometer-dsvm-functional-postgresql/140/ |
zuydbot-api | No description available on PyPI. |
zuz | zuzTwo zuzim |
zuzuvibhu | ZuzuVibhuThe module provides the zuzu package for Vibhu Agarwal.Zuzu is a unique language defined by Vibhu Agarwal himself.The language is in no way related to other standard languages understood in public which is not specifically defined by Vibhu Agarwal.Happy Go Zuzus!Installing the packagepip install zuzuvibhuUsing the package>>> import zuzuvibhu
>>> zuzuvibhu.get_zuzus()Go tohttp://localhost:5000/to get the response in HTMLor you may visithttp://localhost:5000/apito get the text in JSON format. |
zv | Example PackageThis is a simple example package. You can useGithub-flavored Markdownto write your content. |
zvapi | zvolv Python SDK[]
[]
[]
[]DocumentationDocs site- explore our docs site and learn more about Zvolv.User Guide- explore our user guide docs and learn more about sdkGetting startedInstallationYou can install the Zvolv Python SDK using the following command.pip install zvolv_sdkRequires Python 3.7 or higher.UsageThe Zvolv Hyper automation platform offers several APIs to build apps. Each Zvolv API delivers part of the capabilities from the platform, so that you can pick just those that fit for your needs. This SDK offers a corresponding package for each of Zvolvโs APIs.Generate Zvolv authentication token and create a form submissionUtilize Zvolv SDK to create and update form submissions by obtaining an authentication token through the client, with examples demonstrating the creation and subsequent update of a form submission for a specified form ID using input dataimportzvolv_sdk# zvolv Application without credentialsclient=zvolv_sdk.Client()# zvolv Application with credentialszvolv_user_id='your_id'zvolv_password='your_password'zvolv_domain='your_zvolv_domain'client=zvolv_sdk.Client(zvolv_user_id,zvolv_password,zvolv_domain)# Create form submissionform_id=1150input_data={"646":"Akshay","647":"CS","648":"Pune","649":"2023-12-24","OverrideMetaData":False}print(client.create_form_submission(form_id,input_data))# update form sumissionform_id=1150form_submission_id=1171input_data={"646":"sandip","647":"CS","648":"Nashik","649":"2023-12-30","OverrideMetaData":False}print(client.update_form_submission(form_id,input_data,form_submission_id))Here we also ensure that the response back from Zvolv is a successful one and that the message is the one we sent by using theassertstatement.Authentication EndpointsDatabase (authentication.Database)Delegated (authentication.Delegated)Enterprise (authentication.Enterprise)API Authorization - Get Token (authentication.GetToken)Passwordless (authentication.Passwordless)RevokeToken (authentication.RevokeToken)Social (authentication.Social)Users (authentication.Users)Management EndpointsActions() (Zvolv().action)AttackProtection() (Zvolv().attack_protection)Blacklists() (Zvolv().blacklists)Branding() (Zvolv().branding)Supported VersionOnly the current MAJOR version of SDK is supported. New features, functionality, bug fixes, and security updates will only be added to the current MAJOR version.A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features. Instead of stating a release date for a new feature, we set a fixed minor or patch release cadence of maximum 2-3 months (while we may release more often). At the same time, there is no schedule for major or breaking release. Instead, we will communicate one quarter in advance the upcoming breaking change to allow customers to plan for the upgrade. We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.Copyright and LicenseCopyright (c) 2018 The Python Packaging Authority
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zvbot | see morehttps://github.com/zevtyardt/zvbot/blob/master/README.md |
zvdata | ๅ
ถไป่ฏญ่จ:english.zvdataๆฏไธไธชๅฏๆฉๅฑ็่ฎฐๅฝๆฐๆฎๅๅๆๆฐๆฎ็ๅบ.ๅฆไฝไฝฟ็จ่ฟๆฏzvtๆฝ่ฑกๅบๆฅ็้็จๅบ,ๅฏไปฅ็จไธ็งๆนไพฟ็ๆนๅผๆฅ่ฎฐๅฝ,่ฎก็ฎๅๅฏ่งๅๆฐๆฎ.่็ณปๆนๅผๅพฎไฟกใfoolcage |
zvi | No description available on PyPI. |
zvi-client | No description available on PyPI. |
zvideo | zvideoZen video library. |
zvit | Zvit is a logging package that makes it easy to write TensorFlow Events
files compatible with TensorBoard.The name โZvitโ is a phonetic transliteration of the Ukrainian word โะะฒััโ,
meaning โreportโ or โaccountโ, typically of a written form. |
zviz | SeeHere |
zvm | ZVMInstallationRun the following command for a minimal ZVM install.liam:~$pipinstallzvmIf you are working on a ZVM extension, you might want thedevelopanddocsextras.liam:~$pipinstall"zvm[develop,docs]"DocumentationDo the following to generate the documentation (and open the live link):liam:~$cd~/zvmliam:~$mkdocsserveINFO - Building documentation...INFO - Cleaning site directoryINFO - Documentation built in 0.08 secondsINFO - [09:05:15] Watching paths for changes: 'docs', 'mkdocs.yml'INFO - [09:05:15] Serving on http://127.0.0.1:8000/ |
zvma10-api-wrapper | zvma-py-sdkPython SDK for working with the Zerto ZVMa |
zVMCloudConnector | FeilongDescriptionFeilong is a development sdk for managing z/VM. It provides a set of APIs to operate z/VM including guest, image, network, volume etc.Just like os-win for nova hyperv driver and oslo.vmware for nova vmware driver, Feilong is for nova z/VM driver and other z/VM related openstack driver such as neutron, ceilometer.QuickstartPlease refer toQuick Start Guide.DocumentationPlease refer toDocumentation of Feilong.LicenseThis package is licensed under theApache 2.0 LicenseBug reportingIf you encounter any problem with this package, please open a bug againstcloud connector issue trackerGovernanceFeilong is a hosted project at theOpen Mainframe Project, and is openly governed as defined inGOVERNANCE.md.Documentation license:Creative Commons Attribution 4.0 International License. |
zvolvArithmetic | zvolv Python SDK[]
[]
[]
[]InstallingGetting StartedVersionsSupported VersionInstallingpip install ZvolvArithmeticThe current version of the SDK is 0.1.0. --- With this release support for
Python 3.8 and earlier (including 2.x). if you're
looking for the code or documentation for v0.1.0Getting StartedTo get started with the SDK, get a Developer Token from the
Configuration page of your app.The SDK provides an interactivearithmeticthat makes it easy
to test out the SDK in a REPL. This client will automatically prompt for
a new Developer.>>>fromZvolvArithmeticimportarithmetic_opertion>>>result=arithmetic_opertion.add_numbers(10,20)>>>print(result)>>>20>>>result=arithmetic_opertion.sub_numbers(10,20)>>>print(result)>>>-10VersionsWe use a modified version of Semantic Versioning for all changes. See version strategy for details which is effective from 2 Nov 2023.Project Statistics and ContributionsYou can view statistics for this project onLibraries.ioor check out ourGitHub repositoryfor more detailed insights. We welcome contributions, bug reports, and feature requests. Feel free to open issues or submit pull requests on GitHub!Supported VersionOnly the current MAJOR version of SDK is supported. New features, functionality, bug fixes, and security updates will only be added to the current MAJOR version.A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features. Instead of stating a release date for a new feature, we set a fixed minor or patch release cadence of maximum 2-3 months (while we may release more often). At the same time, there is no schedule for major or breaking release. Instead, we will communicate one quarter in advance the upcoming breaking change to allow customers to plan for the upgrade. We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.Copyright and LicenseCopyright (c) 2018 The Python Packaging Authority
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zvolvArithmetic5 | zvolv Python SDK[]
[]
[]
[]InstallingGetting StartedVersionsSupported VersionInstallingpip install ZvolvArithmeticThe current version of the SDK is 0.1.0. --- With this release support for
Python 3.8 and earlier (including 2.x). if you're
looking for the code or documentation for v0.1.0Getting StartedTo get started with the SDK, get a Developer Token from the
Configuration page of your app.The SDK provides an interactivearithmeticthat makes it easy
to test out the SDK in a REPL. This client will automatically prompt for
a new Developer.>>>fromZvolvArithmeticimportarithmetic_opertion>>>result=arithmetic_opertion.add_numbers(10,20)>>>print(result)>>>20>>>result=arithmetic_opertion.sub_numbers(10,20)>>>print(result)>>>-10VersionsWe use a modified version of Semantic Versioning for all changes. See version strategy for details which is effective from 2 Nov 2023.Project Statistics and ContributionsYou can view statistics for this project onLibraries.ioor check out ourGitHub repositoryfor more detailed insights. We welcome contributions, bug reports, and feature requests. Feel free to open issues or submit pull requests on GitHub!Supported VersionOnly the current MAJOR version of SDK is supported. New features, functionality, bug fixes, and security updates will only be added to the current MAJOR version.A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features. Instead of stating a release date for a new feature, we set a fixed minor or patch release cadence of maximum 2-3 months (while we may release more often). At the same time, there is no schedule for major or breaking release. Instead, we will communicate one quarter in advance the upcoming breaking change to allow customers to plan for the upgrade. We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.Copyright and LicenseCopyright (c) 2018 The Python Packaging Authority
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zvolvArithmeticz1 | zvolv Python SDK[]
[]
[]
[]InstallingGetting StartedVersionsSupported VersionInstallingpip install ZvolvArithmeticThe current version of the SDK is 0.1.0. --- With this release support for
Python 3.8 and earlier (including 2.x). if you're
looking for the code or documentation for v0.1.0Getting StartedTo get started with the SDK, get a Developer Token from the
Configuration page of your app.The SDK provides an interactivearithmeticthat makes it easy
to test out the SDK in a REPL. This client will automatically prompt for
a new Developer.>>>fromZvolvArithmeticimportarithmetic_opertion>>>result=arithmetic_opertion.add_numbers(10,20)>>>print(result)>>>20>>>result=arithmetic_opertion.sub_numbers(10,20)>>>print(result)>>>-10VersionsWe use a modified version of Semantic Versioning for all changes. See version strategy for details which is effective from 2 Nov 2023.Project Statistics and ContributionsYou can view statistics for this project onLibraries.ioor check out ourGitHub repositoryfor more detailed insights. We welcome contributions, bug reports, and feature requests. Feel free to open issues or submit pull requests on GitHub!Supported VersionOnly the current MAJOR version of SDK is supported. New features, functionality, bug fixes, and security updates will only be added to the current MAJOR version.A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features. Instead of stating a release date for a new feature, we set a fixed minor or patch release cadence of maximum 2-3 months (while we may release more often). At the same time, there is no schedule for major or breaking release. Instead, we will communicate one quarter in advance the upcoming breaking change to allow customers to plan for the upgrade. We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.Copyright and LicenseCopyright (c) 2018 The Python Packaging Authority
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zvolvArithmeticzz | zvolv Python SDK[]
[]
[]
[]InstallingGetting StartedVersionsSupported VersionInstallingpip install ZvolvArithmeticThe current version of the SDK is 0.1.0. --- With this release support for
Python 3.8 and earlier (including 2.x). if you're
looking for the code or documentation for v0.1.0Getting StartedTo get started with the SDK, get a Developer Token from the
Configuration page of your app.The SDK provides an interactivearithmeticthat makes it easy
to test out the SDK in a REPL. This client will automatically prompt for
a new Developer.>>>fromZvolvArithmeticimportarithmetic_opertion>>>result=arithmetic_opertion.add_numbers(10,20)>>>print(result)>>>20>>>result=arithmetic_opertion.sub_numbers(10,20)>>>print(result)>>>-10VersionsWe use a modified version of Semantic Versioning for all changes. See version strategy for details which is effective from 2 Nov 2023.Project Statistics and ContributionsYou can view statistics for this project onLibraries.ioor check out ourGitHub repositoryfor more detailed insights. We welcome contributions, bug reports, and feature requests. Feel free to open issues or submit pull requests on GitHub!Supported VersionOnly the current MAJOR version of SDK is supported. New features, functionality, bug fixes, and security updates will only be added to the current MAJOR version.A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features. Instead of stating a release date for a new feature, we set a fixed minor or patch release cadence of maximum 2-3 months (while we may release more often). At the same time, there is no schedule for major or breaking release. Instead, we will communicate one quarter in advance the upcoming breaking change to allow customers to plan for the upgrade. We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.Copyright and LicenseCopyright (c) 2018 The Python Packaging Authority
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zvolvAuth | zvolv Python SDK[]
[]
[]
[]InstallingGetting StartedVersionsSupported VersionInstallingpip install ZvolvArithmeticThe current version of the SDK is 0.1.0. --- With this release support for
Python 3.8 and earlier (including 2.x). if you're
looking for the code or documentation for v0.1.0Getting StartedTo get started with the SDK, get a Developer Token from the
Configuration page of your app.The SDK provides an interactivearithmeticthat makes it easy
to test out the SDK in a REPL. This client will automatically prompt for
a new Developer.>>>fromZvolvArithmeticimportarithmetic_opertion>>>result=arithmetic_opertion.add_numbers(10,20)>>>print(result)>>>20>>>result=arithmetic_opertion.sub_numbers(10,20)>>>print(result)>>>-10VersionsWe use a modified version of Semantic Versioning for all changes. See version strategy for details which is effective from 2 Nov 2023.Project Statistics and ContributionsYou can view statistics for this project onLibraries.ioor check out ourGitHub repositoryfor more detailed insights. We welcome contributions, bug reports, and feature requests. Feel free to open issues or submit pull requests on GitHub!Supported VersionOnly the current MAJOR version of SDK is supported. New features, functionality, bug fixes, and security updates will only be added to the current MAJOR version.A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features. Instead of stating a release date for a new feature, we set a fixed minor or patch release cadence of maximum 2-3 months (while we may release more often). At the same time, there is no schedule for major or breaking release. Instead, we will communicate one quarter in advance the upcoming breaking change to allow customers to plan for the upgrade. We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.Copyright and LicenseCopyright (c) 2018 The Python Packaging Authority
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zvolvAuthApi | zvolv Python SDK[]
[]
[]
[]InstallingGetting StartedVersionsSupported VersionInstallingpip install ZvolvArithmeticThe current version of the SDK is 0.1.0. --- With this release support for
Python 3.8 and earlier (including 2.x). if you're
looking for the code or documentation for v0.1.0Getting StartedTo get started with the SDK, get a Developer Token from the
Configuration page of your app.The SDK provides an interactivearithmeticthat makes it easy
to test out the SDK in a REPL. This client will automatically prompt for
a new Developer.>>>fromZvolvArithmeticimportarithmetic_opertion>>>result=arithmetic_opertion.add_numbers(10,20)>>>print(result)>>>20>>>result=arithmetic_opertion.sub_numbers(10,20)>>>print(result)>>>-10VersionsWe use a modified version of Semantic Versioning for all changes. See version strategy for details which is effective from 2 Nov 2023.Project Statistics and ContributionsYou can view statistics for this project onLibraries.ioor check out ourGitHub repositoryfor more detailed insights. We welcome contributions, bug reports, and feature requests. Feel free to open issues or submit pull requests on GitHub!Supported VersionOnly the current MAJOR version of SDK is supported. New features, functionality, bug fixes, and security updates will only be added to the current MAJOR version.A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features. Instead of stating a release date for a new feature, we set a fixed minor or patch release cadence of maximum 2-3 months (while we may release more often). At the same time, there is no schedule for major or breaking release. Instead, we will communicate one quarter in advance the upcoming breaking change to allow customers to plan for the upgrade. We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.Copyright and LicenseCopyright (c) 2018 The Python Packaging Authority
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
zvolv-sdk | ๐Documentation- ๐Getting started- ๐ปAPI reference- ๐ฌFeedbackLearn how to automate with Zvolv using Python.DocumentationDocs site- explore our docs site and learn more about Zvolv.Getting startedInstallationYou can install the auth0 Python SDK using the following command.pip install zvolv_sdkRequires Python 3.7 or higher.UsageThe Zvolv Hyper automation platform offers several APIs to build apps. Each Zvolv API delivers part of the capabilities from the platform, so that you can pick just those that fit for your needs. This SDK offers a corresponding package for each of Zvolvโs APIs.Sending an email from ZvolvOne of the most simple use-cases is sending an email from Zvolv. In our examples, we specify the channel name, however it is recommended to use thechannel_idwhere possible. Also, if your app's bot user is not in a channel yet, invite the bot user before running the code snippet (or addchat:write.publicto Bot Token Scopes for posting in any public channels).importosfromzvolv_sdkimportWebClientfromzvolv_sdk.errorsimportZvolvApiErrorclient=WebClient(token=os.environ['ZVOLV_BOT_TOKEN'])try:response=client.chat_postMessage(channel='#random',text="Hello world!")assertresponse["message"]["text"]=="Hello world!"exceptSlackApiErrorase:# You will get a ZvolvApiError if "ok" is Falseasserte.response["ok"]isFalseasserte.response["error"]# str like 'invalid_auth', 'channel_not_found'print(f"Got an error:{e.response['error']}")Here we also ensure that the response back from Zvolv is a successful one and that the message is the one we sent by using theassertstatement.Authentication EndpointsDatabase (authentication.Database)Delegated (authentication.Delegated)Enterprise (authentication.Enterprise)API Authorization - Get Token (authentication.GetToken)Passwordless (authentication.Passwordless)RevokeToken (authentication.RevokeToken)Social (authentication.Social)Users (authentication.Users)Management EndpointsActions() (Zvolv().action)AttackProtection() (Zvolv().attack_protection)Blacklists() (Zvolv().blacklists)Branding() (Zvolv().branding)FeedbackIf you get stuck, weโre here to help. The following are the best ways to get assistance working through your issue:Use ourGithub Issue Trackerfor reporting bugs or requesting features.
Visit theZvolv Communityfor getting help using Slack Developer Kit for Python or just generally bond with your fellow Zvolv developers. |
zvt | Read this in other languages:ไธญๆ.Read the docs:https://zvt.readthedocs.io/en/latest/Installpython3 -m pip install -U zvtMain uiAfter the installation is complete, enter zvt on the command linezvtopenhttp://127.0.0.1:8050/The example shown here relies on data, factor, trader, please readdocsThe core concept of the system is visual, and the name of the interface corresponds to it one-to-one, so it is also uniform and extensible.You can write and run the strategy in your favorite ide, and then view its related targets, factor, signal and performance on the UI.Behold, the power of zvt:>>> from zvt.domain import Stock, Stock1dHfqKdata
>>> from zvt.ml import MaStockMLMachine
>>> Stock.record_data(provider="em")
>>> entity_ids = ["stock_sz_000001", "stock_sz_000338", "stock_sh_601318"]
>>> Stock1dHfqKdata.record_data(provider="em", entity_ids=entity_ids, sleeping_time=1)
>>> machine = MaStockMLMachine(entity_ids=["stock_sz_000001"], data_provider="em")
>>> machine.train()
>>> machine.predict()
>>> machine.draw_result(entity_id="stock_sz_000001")The few lines of code above has done: data capture, persistence, incremental update, machine learning, prediction, and display results.
Once you are familiar with the core concepts of the system, you can apply it to any target in the market.DataChina stock>>> from zvt.domain import *
>>> Stock.record_data(provider="em")
>>> df = Stock.query_data(provider="em", index='code')
>>> print(df)
id entity_id timestamp entity_type exchange code name list_date end_date
code
000001 stock_sz_000001 stock_sz_000001 1991-04-03 stock sz 000001 ๅนณๅฎ้ถ่ก 1991-04-03 None
000002 stock_sz_000002 stock_sz_000002 1991-01-29 stock sz 000002 ไธ ็ง๏ผก 1991-01-29 None
000004 stock_sz_000004 stock_sz_000004 1990-12-01 stock sz 000004 ๅฝๅ็ฝๅฎ 1990-12-01 None
000005 stock_sz_000005 stock_sz_000005 1990-12-10 stock sz 000005 ไธ็บชๆๆบ 1990-12-10 None
000006 stock_sz_000006 stock_sz_000006 1992-04-27 stock sz 000006 ๆทฑๆฏไธ๏ผก 1992-04-27 None
... ... ... ... ... ... ... ... ... ...
605507 stock_sh_605507 stock_sh_605507 2021-08-02 stock sh 605507 ๅฝ้ฆๅป่ฏ 2021-08-02 None
605577 stock_sh_605577 stock_sh_605577 2021-08-24 stock sh 605577 ้พ็ไผ ๅช 2021-08-24 None
605580 stock_sh_605580 stock_sh_605580 2021-08-19 stock sh 605580 ๆ็่ฝๆบ 2021-08-19 None
605588 stock_sh_605588 stock_sh_605588 2021-08-12 stock sh 605588 ๅ ็ณ็งๆ 2021-08-12 None
605589 stock_sh_605589 stock_sh_605589 2021-08-10 stock sh 605589 ๅฃๆณ้ๅข 2021-08-10 None
[4136 rows x 9 columns]USA stock>>> Stockus.record_data()
>>> df = Stockus.query_data(index='code')
>>> print(df)
id entity_id timestamp entity_type exchange code name list_date end_date
code
A stockus_nyse_A stockus_nyse_A NaT stockus nyse A ๅฎๆทไผฆ None None
AA stockus_nyse_AA stockus_nyse_AA NaT stockus nyse AA ็พๅฝ้ไธ None None
AAC stockus_nyse_AAC stockus_nyse_AAC NaT stockus nyse AAC Ares Acquisition Corp-A None None
AACG stockus_nasdaq_AACG stockus_nasdaq_AACG NaT stockus nasdaq AACG ATA Creativity Global ADR None None
AACG stockus_nyse_AACG stockus_nyse_AACG NaT stockus nyse AACG ATA Creativity Global ADR None None
... ... ... ... ... ... ... ... ... ...
ZWRK stockus_nasdaq_ZWRK stockus_nasdaq_ZWRK NaT stockus nasdaq ZWRK Z-Work Acquisition Corp-A None None
ZY stockus_nasdaq_ZY stockus_nasdaq_ZY NaT stockus nasdaq ZY Zymergen Inc None None
ZYME stockus_nyse_ZYME stockus_nyse_ZYME NaT stockus nyse ZYME Zymeworks Inc None None
ZYNE stockus_nasdaq_ZYNE stockus_nasdaq_ZYNE NaT stockus nasdaq ZYNE Zynerba Pharmaceuticals Inc None None
ZYXI stockus_nasdaq_ZYXI stockus_nasdaq_ZYXI NaT stockus nasdaq ZYXI Zynex Inc None None
[5826 rows x 9 columns]
>>> Stockus.query_data(code='AAPL')
id entity_id timestamp entity_type exchange code name list_date end_date
0 stockus_nasdaq_AAPL stockus_nasdaq_AAPL None stockus nasdaq AAPL ่นๆ None NoneHong Kong stock>>> Stockhk.record_data()
>>> df = Stockhk.query_data(index='code')
>>> print(df)
id entity_id timestamp entity_type exchange code name list_date end_date
code
00001 stockhk_hk_00001 stockhk_hk_00001 NaT stockhk hk 00001 ้ฟๅ None None
00002 stockhk_hk_00002 stockhk_hk_00002 NaT stockhk hk 00002 ไธญ็ตๆง่ก None None
00003 stockhk_hk_00003 stockhk_hk_00003 NaT stockhk hk 00003 ้ฆๆธฏไธญๅ็
คๆฐ None None
00004 stockhk_hk_00004 stockhk_hk_00004 NaT stockhk hk 00004 ไน้พไป้ๅข None None
00005 stockhk_hk_00005 stockhk_hk_00005 NaT stockhk hk 00005 ๆฑไธฐๆง่ก None None
... ... ... ... ... ... ... ... ... ...
09996 stockhk_hk_09996 stockhk_hk_09996 NaT stockhk hk 09996 ๆฒๅๅป็-B None None
09997 stockhk_hk_09997 stockhk_hk_09997 NaT stockhk hk 09997 ๅบทๅบๅป็ None None
09998 stockhk_hk_09998 stockhk_hk_09998 NaT stockhk hk 09998 ๅ
่ฃๆง่ก None None
09999 stockhk_hk_09999 stockhk_hk_09999 NaT stockhk hk 09999 ็ฝๆ-S None None
80737 stockhk_hk_80737 stockhk_hk_80737 NaT stockhk hk 80737 ๆนพๅบๅๅฑ-R None None
[2597 rows x 9 columns]
>>> df[df.code=='00700']
id entity_id timestamp entity_type exchange code name list_date end_date
2112 stockhk_hk_00700 stockhk_hk_00700 None stockhk hk 00700 ่
พ่ฎฏๆง่ก None NoneAnd more>>> from zvt.contract import *
>>> zvt_context.tradable_schema_map
{'stockus': zvt.domain.meta.stockus_meta.Stockus,
'stockhk': zvt.domain.meta.stockhk_meta.Stockhk,
'index': zvt.domain.meta.index_meta.Index,
'etf': zvt.domain.meta.etf_meta.Etf,
'stock': zvt.domain.meta.stock_meta.Stock,
'block': zvt.domain.meta.block_meta.Block,
'fund': zvt.domain.meta.fund_meta.Fund}The key is tradable entity type, and the value is the schema. The system provides unifiedrecord (record_data)andquery (query_data)methods for the schema.>>> Index.record_data()
>>> df=Index.query_data(filters=[Index.category=='scope',Index.exchange='sh'])
>>> print(df)
id entity_id timestamp entity_type exchange code name list_date end_date publisher category base_point
0 index_sh_000001 index_sh_000001 1990-12-19 index sh 000001 ไธ่ฏๆๆฐ 1991-07-15 None csindex scope 100.00
1 index_sh_000002 index_sh_000002 1990-12-19 index sh 000002 ๏ผก่กๆๆฐ 1992-02-21 None csindex scope 100.00
2 index_sh_000003 index_sh_000003 1992-02-21 index sh 000003 B่กๆๆฐ 1992-08-17 None csindex scope 100.00
3 index_sh_000010 index_sh_000010 2002-06-28 index sh 000010 ไธ่ฏ180 2002-07-01 None csindex scope 3299.06
4 index_sh_000016 index_sh_000016 2003-12-31 index sh 000016 ไธ่ฏ50 2004-01-02 None csindex scope 1000.00
.. ... ... ... ... ... ... ... ... ... ... ... ...
25 index_sh_000020 index_sh_000020 2007-12-28 index sh 000020 ไธญๅ็ปผๆ 2008-05-12 None csindex scope 1000.00
26 index_sh_000090 index_sh_000090 2009-12-31 index sh 000090 ไธ่ฏๆต้ 2010-12-02 None csindex scope 1000.00
27 index_sh_930903 index_sh_930903 2012-12-31 index sh 930903 ไธญ่ฏ๏ผก่ก 2016-10-18 None csindex scope 1000.00
28 index_sh_000688 index_sh_000688 2019-12-31 index sh 000688 ็งๅ50 2020-07-23 None csindex scope 1000.00
29 index_sh_931643 index_sh_931643 2019-12-31 index sh 931643 ็งๅๅไธ50 2021-06-01 None csindex scope 1000.00
[30 rows x 12 columns]EntityEventWe have tradable entity and then events about them.Market quotesthe TradableEntity quote schema follows the following rules:{entity_shema}{level}{adjust_type}Kdataentity_schemaTradableEntity class๏ผe.g., Stock,Stockus.level>>> for level in IntervalLevel:
print(level.value)adjust type>>> for adjust_type in AdjustType:
print(adjust_type.value)Note: In order to be compatible with historical data, the pre-reset is an exception, {adjust_type} is left emptyqfq>>> Stock1dKdata.record_data(code='000338', provider='em')
>>> df = Stock1dKdata.query_data(code='000338', provider='em')
>>> print(df)
id entity_id timestamp provider code name level open close high low volume turnover change_pct turnover_rate
0 stock_sz_000338_2007-04-30 stock_sz_000338 2007-04-30 None 000338 ๆฝๆดๅจๅ 1d 2.33 2.00 2.40 1.87 207375.0 1.365189e+09 3.2472 0.1182
1 stock_sz_000338_2007-05-08 stock_sz_000338 2007-05-08 None 000338 ๆฝๆดๅจๅ 1d 2.11 1.94 2.20 1.87 86299.0 5.563198e+08 -0.0300 0.0492
2 stock_sz_000338_2007-05-09 stock_sz_000338 2007-05-09 None 000338 ๆฝๆดๅจๅ 1d 1.90 1.81 1.94 1.66 93823.0 5.782065e+08 -0.0670 0.0535
3 stock_sz_000338_2007-05-10 stock_sz_000338 2007-05-10 None 000338 ๆฝๆดๅจๅ 1d 1.78 1.85 1.98 1.75 47720.0 2.999226e+08 0.0221 0.0272
4 stock_sz_000338_2007-05-11 stock_sz_000338 2007-05-11 None 000338 ๆฝๆดๅจๅ 1d 1.81 1.73 1.81 1.66 39273.0 2.373126e+08 -0.0649 0.0224
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
3426 stock_sz_000338_2021-08-27 stock_sz_000338 2021-08-27 None 000338 ๆฝๆดๅจๅ 1d 19.39 20.30 20.30 19.25 1688497.0 3.370241e+09 0.0601 0.0398
3427 stock_sz_000338_2021-08-30 stock_sz_000338 2021-08-30 None 000338 ๆฝๆดๅจๅ 1d 20.30 20.09 20.31 19.78 1187601.0 2.377957e+09 -0.0103 0.0280
3428 stock_sz_000338_2021-08-31 stock_sz_000338 2021-08-31 None 000338 ๆฝๆดๅจๅ 1d 20.20 20.07 20.63 19.70 1143985.0 2.295195e+09 -0.0010 0.0270
3429 stock_sz_000338_2021-09-01 stock_sz_000338 2021-09-01 None 000338 ๆฝๆดๅจๅ 1d 19.98 19.68 19.98 19.15 1218697.0 2.383841e+09 -0.0194 0.0287
3430 stock_sz_000338_2021-09-02 stock_sz_000338 2021-09-02 None 000338 ๆฝๆดๅจๅ 1d 19.71 19.85 19.97 19.24 1023545.0 2.012006e+09 0.0086 0.0241
[3431 rows x 15 columns]
>>> Stockus1dKdata.record_data(code='AAPL', provider='em')
>>> df = Stockus1dKdata.query_data(code='AAPL', provider='em')
>>> print(df)
id entity_id timestamp provider code name level open close high low volume turnover change_pct turnover_rate
0 stockus_nasdaq_AAPL_1984-09-07 stockus_nasdaq_AAPL 1984-09-07 None AAPL ่นๆ 1d -5.59 -5.59 -5.58 -5.59 2981600.0 0.000000e+00 0.0000 0.0002
1 stockus_nasdaq_AAPL_1984-09-10 stockus_nasdaq_AAPL 1984-09-10 None AAPL ่นๆ 1d -5.59 -5.59 -5.58 -5.59 2346400.0 0.000000e+00 0.0000 0.0001
2 stockus_nasdaq_AAPL_1984-09-11 stockus_nasdaq_AAPL 1984-09-11 None AAPL ่นๆ 1d -5.58 -5.58 -5.58 -5.58 5444000.0 0.000000e+00 0.0018 0.0003
3 stockus_nasdaq_AAPL_1984-09-12 stockus_nasdaq_AAPL 1984-09-12 None AAPL ่นๆ 1d -5.58 -5.59 -5.58 -5.59 4773600.0 0.000000e+00 -0.0018 0.0003
4 stockus_nasdaq_AAPL_1984-09-13 stockus_nasdaq_AAPL 1984-09-13 None AAPL ่นๆ 1d -5.58 -5.58 -5.58 -5.58 7429600.0 0.000000e+00 0.0018 0.0004
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
8765 stockus_nasdaq_AAPL_2021-08-27 stockus_nasdaq_AAPL 2021-08-27 None AAPL ่นๆ 1d 147.48 148.60 148.75 146.83 55802388.0 8.265452e+09 0.0072 0.0034
8766 stockus_nasdaq_AAPL_2021-08-30 stockus_nasdaq_AAPL 2021-08-30 None AAPL ่นๆ 1d 149.00 153.12 153.49 148.61 90956723.0 1.383762e+10 0.0304 0.0055
8767 stockus_nasdaq_AAPL_2021-08-31 stockus_nasdaq_AAPL 2021-08-31 None AAPL ่นๆ 1d 152.66 151.83 152.80 151.29 86453117.0 1.314255e+10 -0.0084 0.0052
8768 stockus_nasdaq_AAPL_2021-09-01 stockus_nasdaq_AAPL 2021-09-01 None AAPL ่นๆ 1d 152.83 152.51 154.98 152.34 80313711.0 1.235321e+10 0.0045 0.0049
8769 stockus_nasdaq_AAPL_2021-09-02 stockus_nasdaq_AAPL 2021-09-02 None AAPL ่นๆ 1d 153.87 153.65 154.72 152.40 71171317.0 1.093251e+10 0.0075 0.0043
[8770 rows x 15 columns]hfq>>> Stock1dHfqKdata.record_data(code='000338', provider='em')
>>> df = Stock1dHfqKdata.query_data(code='000338', provider='em')
>>> print(df)
id entity_id timestamp provider code name level open close high low volume turnover change_pct turnover_rate
0 stock_sz_000338_2007-04-30 stock_sz_000338 2007-04-30 None 000338 ๆฝๆดๅจๅ 1d 70.00 64.93 71.00 62.88 207375.0 1.365189e+09 2.1720 0.1182
1 stock_sz_000338_2007-05-08 stock_sz_000338 2007-05-08 None 000338 ๆฝๆดๅจๅ 1d 66.60 64.00 68.00 62.88 86299.0 5.563198e+08 -0.0143 0.0492
2 stock_sz_000338_2007-05-09 stock_sz_000338 2007-05-09 None 000338 ๆฝๆดๅจๅ 1d 63.32 62.00 63.88 59.60 93823.0 5.782065e+08 -0.0313 0.0535
3 stock_sz_000338_2007-05-10 stock_sz_000338 2007-05-10 None 000338 ๆฝๆดๅจๅ 1d 61.50 62.49 64.48 61.01 47720.0 2.999226e+08 0.0079 0.0272
4 stock_sz_000338_2007-05-11 stock_sz_000338 2007-05-11 None 000338 ๆฝๆดๅจๅ 1d 61.90 60.65 61.90 59.70 39273.0 2.373126e+08 -0.0294 0.0224
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
3426 stock_sz_000338_2021-08-27 stock_sz_000338 2021-08-27 None 000338 ๆฝๆดๅจๅ 1d 331.97 345.95 345.95 329.82 1688497.0 3.370241e+09 0.0540 0.0398
3427 stock_sz_000338_2021-08-30 stock_sz_000338 2021-08-30 None 000338 ๆฝๆดๅจๅ 1d 345.95 342.72 346.10 337.96 1187601.0 2.377957e+09 -0.0093 0.0280
3428 stock_sz_000338_2021-08-31 stock_sz_000338 2021-08-31 None 000338 ๆฝๆดๅจๅ 1d 344.41 342.41 351.02 336.73 1143985.0 2.295195e+09 -0.0009 0.0270
3429 stock_sz_000338_2021-09-01 stock_sz_000338 2021-09-01 None 000338 ๆฝๆดๅจๅ 1d 341.03 336.42 341.03 328.28 1218697.0 2.383841e+09 -0.0175 0.0287
3430 stock_sz_000338_2021-09-02 stock_sz_000338 2021-09-02 None 000338 ๆฝๆดๅจๅ 1d 336.88 339.03 340.88 329.67 1023545.0 2.012006e+09 0.0078 0.0241
[3431 rows x 15 columns]Finance factor>>> FinanceFactor.record_data(code='000338')
>>> FinanceFactor.query_data(code='000338',columns=FinanceFactor.important_cols(),index='timestamp')
basic_eps total_op_income net_profit op_income_growth_yoy net_profit_growth_yoy roe rota gross_profit_margin net_margin timestamp
timestamp
2002-12-31 NaN 1.962000e+07 2.471000e+06 NaN NaN NaN NaN 0.2068 0.1259 2002-12-31
2003-12-31 1.27 3.574000e+09 2.739000e+08 181.2022 109.8778 0.7729 0.1783 0.2551 0.0766 2003-12-31
2004-12-31 1.75 6.188000e+09 5.369000e+08 0.7313 0.9598 0.3245 0.1474 0.2489 0.0868 2004-12-31
2005-12-31 0.93 5.283000e+09 3.065000e+08 -0.1463 -0.4291 0.1327 0.0603 0.2252 0.0583 2005-12-31
2006-03-31 0.33 1.859000e+09 1.079000e+08 NaN NaN NaN NaN NaN 0.0598 2006-03-31
... ... ... ... ... ... ... ... ... ... ...
2020-08-28 0.59 9.449000e+10 4.680000e+09 0.0400 -0.1148 0.0983 0.0229 0.1958 0.0603 2020-08-28
2020-10-31 0.90 1.474000e+11 7.106000e+09 0.1632 0.0067 0.1502 0.0347 0.1949 0.0590 2020-10-31
2021-03-31 1.16 1.975000e+11 9.207000e+09 0.1327 0.0112 0.1919 0.0444 0.1931 0.0571 2021-03-31
2021-04-30 0.42 6.547000e+10 3.344000e+09 0.6788 0.6197 0.0622 0.0158 0.1916 0.0667 2021-04-30
2021-08-31 0.80 1.264000e+11 6.432000e+09 0.3375 0.3742 0.1125 0.0287 0.1884 0.0653 2021-08-31
[66 rows x 10 columns]Three financial tables>>> BalanceSheet.record_data(code='000338')
>>> IncomeStatement.record_data(code='000338')
>>> CashFlowStatement.record_data(code='000338')And more>>> zvt_context.schemas
[zvt.domain.dividend_financing.DividendFinancing,
zvt.domain.dividend_financing.DividendDetail,
zvt.domain.dividend_financing.SpoDetail...]All schemas is registered in zvt_context.schemas,schemais table, data structure.
The fields and meaning could be checked in following ways:helptype the schema. and press tab to show its fields or .help()>>> FinanceFactor.help()source codeSchemas defined indomainFrom above examples, you should know the unified way of recording data:Schema.record_data(provider='your provider',codes='the codes')Note the optional parameter provider, which represents the data provider.
A schema can have multiple providers, which is the cornerstone of system stability.Check the provider has been implemented:>>> Stock.provider_map_recorder
{'joinquant': zvt.recorders.joinquant.meta.jq_stock_meta_recorder.JqChinaStockRecorder,
'exchange': zvt.recorders.exchange.exchange_stock_meta_recorder.ExchangeStockMetaRecorder,
'em': zvt.recorders.em.meta.em_stock_meta_recorder.EMStockRecorder,
'eastmoney': zvt.recorders.eastmoney.meta.eastmoney_stock_meta_recorder.EastmoneyChinaStockListRecorder}You can use any provider to get the data, the first one is used by default.One more example, the stock sector data recording:>>> Block.provider_map_recorder
{'eastmoney': zvt.recorders.eastmoney.meta.eastmoney_block_meta_recorder.EastmoneyChinaBlockRecorder,
'sina': zvt.recorders.sina.meta.sina_block_recorder.SinaBlockRecorder}
>>> Block.record_data(provider='sina')
Block registered recorders:{'eastmoney': <class 'zvt.recorders.eastmoney.meta.china_stock_category_recorder.EastmoneyChinaBlockRecorder'>, 'sina': <class 'zvt.recorders.sina.meta.sina_china_stock_category_recorder.SinaChinaBlockRecorder'>}
2020-03-04 23:56:48,931 INFO MainThread finish record sina blocks:industry
2020-03-04 23:56:49,450 INFO MainThread finish record sina blocks:conceptLearn more about record_dataThe parameter code[single], codes[multiple] represent the stock codes to be recordedRecording the whole market if not set code, codesThis method will store the data locally and only do incremental updatesRefer to the scheduling recoding waydata runnerMarket-wide stock selectionAfter recording the data of the whole market, you can quickly query the required data locally.An example: the top 20 stocks with roe>8% and revenue growth>8% in the 2018 annual report>>> df=FinanceFactor.query_data(filters=[FinanceFactor.roe>0.08,FinanceFactor.report_period=='year',FinanceFactor.op_income_growth_yoy>0.08],start_timestamp='2019-01-01',order=FinanceFactor.roe.desc(),limit=20,columns=["code"]+FinanceFactor.important_cols(),index='code')
code basic_eps total_op_income net_profit op_income_growth_yoy net_profit_growth_yoy roe rota gross_profit_margin net_margin timestamp
code
000048 000048 2.7350 4.919000e+09 1.101000e+09 0.4311 1.5168 0.7035 0.1988 0.5243 0.2355 2020-04-30
000912 000912 0.3500 4.405000e+09 3.516000e+08 0.1796 1.2363 4.7847 0.0539 0.2175 0.0795 2019-03-20
002207 002207 0.2200 3.021000e+08 5.189000e+07 0.1600 1.1526 1.1175 0.1182 0.1565 0.1718 2020-04-27
002234 002234 5.3300 3.276000e+09 1.610000e+09 0.8023 3.2295 0.8361 0.5469 0.5968 0.4913 2020-04-21
002458 002458 3.7900 3.584000e+09 2.176000e+09 1.4326 4.9973 0.8318 0.6754 0.6537 0.6080 2020-02-20
... ... ... ... ... ... ... ... ... ... ... ...
600701 600701 -3.6858 7.830000e+08 -3.814000e+09 1.3579 -0.0325 1.9498 -0.7012 0.4173 -4.9293 2020-04-29
600747 600747 -1.5600 3.467000e+08 -2.290000e+09 2.1489 -0.4633 3.1922 -1.5886 0.0378 -6.6093 2020-06-30
600793 600793 1.6568 1.293000e+09 1.745000e+08 0.1164 0.8868 0.7490 0.0486 0.1622 0.1350 2019-04-30
600870 600870 0.0087 3.096000e+07 4.554000e+06 0.7773 1.3702 0.7458 0.0724 0.2688 0.1675 2019-03-30
688169 688169 15.6600 4.205000e+09 7.829000e+08 0.3781 1.5452 0.7172 0.4832 0.3612 0.1862 2020-04-28
[20 rows x 11 columns]So, you should be able to answer the following three questions now:What data is there?How to record data?How to query data?For more advanced usage and extended data, please refer to the data section in the detailed document.Write strategyNow we could write strategy basing on TradableEntity and EntityEvent.
The so-called strategy backtesting is nothing but repeating the following process๏ผAt a certain time, find the targets which matching conditions, buy and sell them, and see the performance.Two modes to write strategy:solo (free style)At a certain time, calculate conditions according to the events, buy and sellformal (ๆญฃๅผ็)The calculation model of the two-dimensional index and multi-entitya too simple,sometimes naive person (solo)Well, this strategy is really too simple,sometimes naive, as we do most of the time.When the report comes out, I look at the report.
If the institution increases its position by more than 5%, I will buy it, and if the institution reduces its position by more than 50%, I will sell it.Show you the code:# -*- coding: utf-8 -*-
import pandas as pd
from zvt.api import get_recent_report_date
from zvt.contract import ActorType, AdjustType
from zvt.domain import StockActorSummary, Stock1dKdata
from zvt.trader import StockTrader
from zvt.utils import pd_is_not_null, is_same_date, to_pd_timestamp
class FollowIITrader(StockTrader):
finish_date = None
def on_time(self, timestamp: pd.Timestamp):
recent_report_date = to_pd_timestamp(get_recent_report_date(timestamp))
if self.finish_date and is_same_date(recent_report_date, self.finish_date):
return
filters = [StockActorSummary.actor_type == ActorType.raised_fund.value,
StockActorSummary.report_date == recent_report_date]
if self.entity_ids:
filters = filters + [StockActorSummary.entity_id.in_(self.entity_ids)]
df = StockActorSummary.query_data(filters=filters)
if pd_is_not_null(df):
self.logger.info(f'{df}')
self.finish_date = recent_report_date
long_df = df[df['change_ratio'] > 0.05]
short_df = df[df['change_ratio'] < -0.5]
try:
self.trade_the_targets(due_timestamp=timestamp, happen_timestamp=timestamp,
long_selected=set(long_df['entity_id'].to_list()),
short_selected=set(short_df['entity_id'].to_list()))
except Exception as e:
self.logger.error(e)
if __name__ == '__main__':
entity_id = 'stock_sh_600519'
Stock1dKdata.record_data(entity_id=entity_id, provider='em')
StockActorSummary.record_data(entity_id=entity_id, provider='em')
FollowIITrader(start_timestamp='2002-01-01', end_timestamp='2021-01-01', entity_ids=[entity_id],
provider='em', adjust_type=AdjustType.qfq, profit_threshold=None).run()So, writing a strategy is not that complicated.
Just use your imagination, find the relation of the price and the events.Then refreshhttp://127.0.0.1:8050/๏ผcheck the performance of your strategy.More examples is inStrategy exampleBe serious (formal)Simple calculation can be done through query_data.
Now it's time to introduce the two-dimensional index multi-entity calculation model.Takes technical factors as an example to illustrate thecalculation process:In [7]: from zvt.factors.technical_factor import *
In [8]: factor = BullFactor(codes=['000338','601318'],start_timestamp='2019-01-01',end_timestamp='2019-06-10', transformer=MacdTransformer())data_dftwo-dimensional indexDataFrame read from the schema by query_data.In [11]: factor.data_df
Out[11]:
level high id entity_id open low timestamp close
entity_id timestamp
stock_sh_601318 2019-01-02 1d 54.91 stock_sh_601318_2019-01-02 stock_sh_601318 54.78 53.70 2019-01-02 53.94
2019-01-03 1d 55.06 stock_sh_601318_2019-01-03 stock_sh_601318 53.91 53.82 2019-01-03 54.42
2019-01-04 1d 55.71 stock_sh_601318_2019-01-04 stock_sh_601318 54.03 53.98 2019-01-04 55.31
2019-01-07 1d 55.88 stock_sh_601318_2019-01-07 stock_sh_601318 55.80 54.64 2019-01-07 55.03
2019-01-08 1d 54.83 stock_sh_601318_2019-01-08 stock_sh_601318 54.79 53.96 2019-01-08 54.54
... ... ... ... ... ... ... ... ...
stock_sz_000338 2019-06-03 1d 11.04 stock_sz_000338_2019-06-03 stock_sz_000338 10.93 10.74 2019-06-03 10.81
2019-06-04 1d 10.85 stock_sz_000338_2019-06-04 stock_sz_000338 10.84 10.57 2019-06-04 10.73
2019-06-05 1d 10.92 stock_sz_000338_2019-06-05 stock_sz_000338 10.87 10.59 2019-06-05 10.59
2019-06-06 1d 10.71 stock_sz_000338_2019-06-06 stock_sz_000338 10.59 10.49 2019-06-06 10.65
2019-06-10 1d 11.05 stock_sz_000338_2019-06-10 stock_sz_000338 10.73 10.71 2019-06-10 11.02
[208 rows x 8 columns]factor_dftwo-dimensional indexDataFrame which calculating using data_df bytransformere.g., MacdTransformer.In [12]: factor.factor_df
Out[12]:
level high id entity_id open low timestamp close diff dea macd
entity_id timestamp
stock_sh_601318 2019-01-02 1d 54.91 stock_sh_601318_2019-01-02 stock_sh_601318 54.78 53.70 2019-01-02 53.94 NaN NaN NaN
2019-01-03 1d 55.06 stock_sh_601318_2019-01-03 stock_sh_601318 53.91 53.82 2019-01-03 54.42 NaN NaN NaN
2019-01-04 1d 55.71 stock_sh_601318_2019-01-04 stock_sh_601318 54.03 53.98 2019-01-04 55.31 NaN NaN NaN
2019-01-07 1d 55.88 stock_sh_601318_2019-01-07 stock_sh_601318 55.80 54.64 2019-01-07 55.03 NaN NaN NaN
2019-01-08 1d 54.83 stock_sh_601318_2019-01-08 stock_sh_601318 54.79 53.96 2019-01-08 54.54 NaN NaN NaN
... ... ... ... ... ... ... ... ... ... ... ...
stock_sz_000338 2019-06-03 1d 11.04 stock_sz_000338_2019-06-03 stock_sz_000338 10.93 10.74 2019-06-03 10.81 -0.121336 -0.145444 0.048215
2019-06-04 1d 10.85 stock_sz_000338_2019-06-04 stock_sz_000338 10.84 10.57 2019-06-04 10.73 -0.133829 -0.143121 0.018583
2019-06-05 1d 10.92 stock_sz_000338_2019-06-05 stock_sz_000338 10.87 10.59 2019-06-05 10.59 -0.153260 -0.145149 -0.016223
2019-06-06 1d 10.71 stock_sz_000338_2019-06-06 stock_sz_000338 10.59 10.49 2019-06-06 10.65 -0.161951 -0.148509 -0.026884
2019-06-10 1d 11.05 stock_sz_000338_2019-06-10 stock_sz_000338 10.73 10.71 2019-06-10 11.02 -0.137399 -0.146287 0.017776
[208 rows x 11 columns]result_dftwo-dimensional indexDataFrame which calculating using factor_df or(and) data_df.
It's used by TargetSelector.e.g.,macdIn [14]: factor.result_df
Out[14]:
filter_result
entity_id timestamp
stock_sh_601318 2019-01-02 False
2019-01-03 False
2019-01-04 False
2019-01-07 False
2019-01-08 False
... ...
stock_sz_000338 2019-06-03 False
2019-06-04 False
2019-06-05 False
2019-06-06 False
2019-06-10 False
[208 rows x 1 columns]The format of result_df is as follows:filter_result is True or False, score_result is from 0 to 1Combining the stock picker and backtesting, the whole process is as follows:Env settings๏ผoptional๏ผ>>> from zvt import *
>>> zvt_env
{'zvt_home': '/Users/foolcage/zvt-home',
'data_path': '/Users/foolcage/zvt-home/data',
'tmp_path': '/Users/foolcage/zvt-home/tmp',
'ui_path': '/Users/foolcage/zvt-home/ui',
'log_path': '/Users/foolcage/zvt-home/logs'}
>>> zvt_configjq_username ่ๅฎฝๆฐๆฎ็จๆทๅjq_password ่ๅฎฝๆฐๆฎๅฏ็ smtp_host ้ฎไปถๆๅกๅจhostsmtp_port ้ฎไปถๆๅกๅจ็ซฏๅฃemail_username smtp้ฎ็ฎฑ่ดฆๆทemail_password smtp้ฎ็ฎฑๅฏ็ wechat_app_idwechat_app_secrect>>> init_config(current_config=zvt_config, jq_username='xxx', jq_password='yyy')config others this way: init_config(current_config=zvt_config, **kv)History data๏ผoptional๏ผbaidu:https://pan.baidu.com/s/1kHAxGSxx8r5IBHe5I7MAmQcode: yb6cgoogle drive:https://drive.google.com/drive/folders/17Bxijq-PHJYrLDpyvFAm5P6QyhKL-ahn?usp=sharingIt contains daily/weekly post-restoration data, stock valuations, fund and its holdings data, financial data and other data.Unzip the downloaded data to the data_path of the your environment (all db files are placed in this directory, there is no hierarchical structure)The data could be updated incrementally. Downloading historical data is just to save time. It is also possible to update all by yourself.Joinquant(optional)the data could be updated from different provider, this make the system stable.https://www.joinquant.com/default/index/sdk?channelId=953cbf5d1b8683f81f0c40c9d4265c0dadd other providers๏ผData extension tutorialDevelopmentClonegit clone https://github.com/zvtvz/zvt.gitset up virtual env(python>=3.6),install requirementspip3 install -r requirements.txt
pip3 install pytestTestspytest./testsMost of the features can be referenced from the testsContributioncode of conductPass all unit tests, if it is a new feature, please add a new unit test for itCompliance with development specificationsIf necessary, please update the corresponding documentDevelopers are also very welcome to provide more examples for zvt, and work together to improve the documentation.Buy me a coffeeContactwechat:foolcagewechat subscription:zhihu:https://zhuanlan.zhihu.com/automoneyThanks |
zvt-ccxt | How to use1.1 installpip install zvt-ccxt
pip show zvt-ccxtmake sure use the latest versionpip install --upgrade zvt-ccxt1.2 use in zvt wayIn [1]: from zvt_ccxt.domain import *
In [2]: Coin
Out[2]: zvt_ccxt.domain.coin_meta.Coin
In [3]: Coin.record_data()
Coin registered recorders:{'ccxt': <class 'zvt_ccxt.recorders.coin_recorder.CoinMetaRecorder'>}
2020-07-17 23:26:38,730 INFO MainThread init_markets for binance success
2020-07-17 23:26:40,941 INFO MainThread init_markets for huobipro success
In [4]: Coin.query_data()
Out[4]:
id entity_id timestamp entity_type exchange code name
0 coin_binance_BTC/USDT coin_binance_BTC/USDT None coin binance BTC/USDT BTC/USDT
1 coin_binance_ETH/USDT coin_binance_ETH/USDT None coin binance ETH/USDT ETH/USDT
2 coin_binance_EOS/USDT coin_binance_EOS/USDT None coin binance EOS/USDT EOS/USDT
3 coin_huobipro_BTC/USDT coin_huobipro_BTC/USDT None coin huobipro BTC/USDT BTC/USDT
4 coin_huobipro_ETH/USDT coin_huobipro_ETH/USDT None coin huobipro ETH/USDT ETH/USDT
5 coin_huobipro_EOS/USDT coin_huobipro_EOS/USDT None coin huobipro EOS/USDT EOS/USDT
In [2]: Coin1dKdata.record_data()
In [4]: Coin1dKdata.query_data(codes=['BTC/USDT'])
Out[4]:
id entity_id timestamp provider code name level open close high low volume turnover
0 coin_binance_BTC/USDT_2017-10-22 coin_binance_BTC/USDT 2017-10-22 ccxt BTC/USDT BTC/USDT 1d 6003.27 5950.02 6060.00 5720.03 1362.092216 None
1 coin_binance_BTC/USDT_2017-10-23 coin_binance_BTC/USDT 2017-10-23 ccxt BTC/USDT BTC/USDT 1d 5975.00 5915.93 6080.00 5621.03 1812.557715 None
2 coin_binance_BTC/USDT_2017-10-24 coin_binance_BTC/USDT 2017-10-24 ccxt BTC/USDT BTC/USDT 1d 5909.47 5477.03 5925.00 5450.00 2580.418767 None
3 coin_binance_BTC/USDT_2017-10-25 coin_binance_BTC/USDT 2017-10-25 ccxt BTC/USDT BTC/USDT 1d 5506.92 5689.99 5704.96 5286.98 2282.813205 None
4 coin_binance_BTC/USDT_2017-10-26 coin_binance_BTC/USDT 2017-10-26 ccxt BTC/USDT BTC/USDT 1d 5670.10 5861.77 5939.99 5650.00 1972.965882 None
.. ... ... ... ... ... ... ... ... ... ... ... ... ...
995 coin_binance_BTC/USDT_2020-07-13 coin_binance_BTC/USDT 2020-07-13 ccxt BTC/USDT BTC/USDT 1d 9303.31 9242.62 9343.82 9200.89 42740.069115 None
996 coin_binance_BTC/USDT_2020-07-14 coin_binance_BTC/USDT 2020-07-14 ccxt BTC/USDT BTC/USDT 1d 9242.61 9255.85 9279.54 9113.00 45772.552509 None
997 coin_binance_BTC/USDT_2020-07-15 coin_binance_BTC/USDT 2020-07-15 ccxt BTC/USDT BTC/USDT 1d 9255.85 9197.60 9276.49 9160.57 39053.579665 None
998 coin_binance_BTC/USDT_2020-07-16 coin_binance_BTC/USDT 2020-07-16 ccxt BTC/USDT BTC/USDT 1d 9197.60 9133.72 9226.15 9047.25 43375.571191 None
999 coin_binance_BTC/USDT_2020-07-17 coin_binance_BTC/USDT 2020-07-17 ccxt BTC/USDT BTC/USDT 1d 9133.72 9157.72 9186.83 9089.81 21075.560207 None
[1000 rows x 13 columns]๐่ฏทไฝ่
ๅๆฏๅๅกๅฆๆไฝ ่งๅพ้กน็ฎๅฏนไฝ ๆๅธฎๅฉ,ๅฏไปฅ่ฏทไฝ่
ๅๆฏๅๅก๐ค่็ณปๆนๅผไธชไบบๅพฎไฟก:foolcage ๆทปๅ ๆๅท:zvt-ccxtๅพฎไฟกๅ
ฌไผๅท:็ฅไนไธๆ :https://zhuanlan.zhihu.com/automoneyThanks |
zvtm | zvtm็ฎๅ่ฏดๆ1ใzvtๆฏไธไธชๅพๅฅฝ็้ๅๆกๆถ๏ผไธ่ฟๆๆกฃ่ฟไธๅค่ฏฆ็ปใhttps://zvtvz.github.io/zvt/#/READMEๆฏๅฎ็ไป็ปใ2ใไธบไบ่งฃๅณzvtๆฐๆฎไฟๅญๅจsqlite3ไธๆนไพฟไฝฟ็จ็้ฎ้ข๏ผๅฏนๅ
ถ่ฟ่กไบไฟฎๆน๏ผๅฏไปฅไฟๅญๅฐmysqlๆฐๆฎๅบใ3ใไฝฟ็จๆนๆณ๏ผ็ดๆฅไฟฎๆนconfig.json ๆพๅฐๆฌๅฐ็จๆทzvtm_home็ฎๅฝ๏ผๅฐฑๅฏไปฅไฝฟ็จไบใ4ใtest ็ฎๅฝ็record.pyๅไบๅ ไธช็ฎๅ็demoใๅ
ทไฝ่ฏฆ่งไธ้ขzvt็่ฏดๆใ5ใๅๆๆฐๆฎๅฏไปฅ้่ฟsql3mysql่ฟ่ก่ฝฌๅใ |
zvtplus | No description available on PyPI. |
zvukogram | ZvukoGram APIA simple, yet powerful library forZvukoGram APIUsageWithZvukoGram APIyou can fully access the ZvukoGram API.DocumentationOfficial docs can be found on theAPI's webpageInstallationpipinstallzvukogramRequirementsPython 3.7+aiohttppydanticFeaturesAsynchronousException handlingPydantic return modelLightWeightBasic exampleimportasynciofromzvukogramimportZvukoGram,ZvukoGramErrorapi=ZvukoGram('token','email')asyncdefmain():try:voices=awaitapi.get_voices()print(voices['ะ ัััะบะธะน'].pop().voice)exceptZvukoGramErrorasexc:print(exc)generation=awaitapi.tts(voice='ะะพั ะะฐะบัะธะผ',text='ะัะธะฒะตั!',)print(generation.file)audio=awaitgeneration.download()generation=awaitapi.tts_long(voice='ะะพั ะะฐะบัะธะผ',text='ะะพะปะตะต ะดะปะธะฝะฝัะน ัะตะบัั!',)whilenotgeneration.file:awaitasyncio.sleep(1)generation=awaitapi.check_progress(generation.id)print(generation.file)asyncio.run(main())Developed by Nikita Minaev (c) 2023 |
zw | No description available on PyPI. |
zw3ohpxuyg | UNKNOWN |
zwack | docsstartinstallimport zwackinit zwackzwack = zwack.Zwack()commandsasciiascii = zwack.ascii()(sets ascii to the ascii class)zwackascii.zwack(returns ascii art of zwack)zwack overflowfull iconascii.overflow(returns full zwack overflow icon ascii art)icon onlyascii.overflow_small(returns ascii art of the overflow part of the logo) |
zware-api | ZWare APIThe zwave controller was developed for z-wave 700 series. Is a client that works with Z/IP Gateway SDK and Z-Ware SDK.ExamplezwC = zwClient(zw, 'host', 'user', 'pass')
zwC.login()
print (zwC.get_node_list()) |
zwatershed | # convolutional network metric scripts- Code for fast watersheds. Code is based around code from https://bitbucket.org/poozh/watershed described in http://arxiv.org/abs/1505.00249. For use in https://github.com/naibaf7/PyGreentea.# building### conda- `conda install -c conda-forge zwatershed`### pip [<img src="https://img.shields.io/pypi/v/zwatershed.svg?maxAge=2592000">](https://pypi.python.org/pypi/zwatershed/)- `pip install zwatershed`### from source- clone the repository- run ./make.sh### requirements- numpy, h5py, cython- if using parallel watershed, also requires multiprocessing or pyspark- in order to build the cython, requires a c++ compiler and boost# function api- `(segs, rand) = zwatershed_and_metrics(segTrue, aff_graph, eval_thresh_list, seg_save_thresh_list)`- *returns segmentations and metrics*- `segs`: list of segmentations- `len(segs) == len(seg_save_thresh_list)`- `rand`: dict- `rand['V_Rand']`: V_Rand score (scalar)- `rand['V_Rand_split']`: list of score values- `len(rand['V_Rand_split']) == len(eval_thresh_list)`- `rand['V_Rand_merge']`: list of score values,- `len(rand['V_Rand_merge']) == len(eval_thresh_list)`- `segs = zwatershed(aff_graph, seg_save_thresh_list)`- *returns segmentations*- `segs`: list of segmentations- `len(segs) == len(seg_save_thresh_list)`##### These methods have versions which save the segmentations to hdf5 files instead of returning them- `rand = zwatershed_and_metrics_h5(segTrue, aff_graph, eval_thresh_list, seg_save_thresh_list, seg_save_path)`- `zwatershed_h5(aff_graph, eval_thresh_list, seg_save_path)`##### All 4 methods have versions which take an edgelist representation of the affinity graph- `(segs, rand) = zwatershed_and_metrics_arb(segTrue, node1, node2, edgeWeight, eval_thresh_list, seg_save_thresh_list)`- `segs = zwatershed_arb(seg_shape, node1, node2, edgeWeight, seg_save_thresh_list)`- `rand = zwatershed_and_metrics_h5_arb(segTrue, node1, node2, edgeWeight, eval_thresh_list, seg_save_thresh_list, seg_save_path)`- `zwatershed_h5_arb(seg_shape, node1, node2, edgeWeight, eval_thresh_list, seg_save_path)`# parallel watershed - 4 steps- *a full example is given in par_ex.ipynb*1. Partition the subvolumes- `partition_data = partition_subvols(pred_file,out_folder,max_len)`- evenly divides the data in *pred_file* with the constraint that no dimension of any subvolume is longer than max_len2. Zwatershed the subvolumes1. `eval_with_spark(partition_data[0])`- *with spark*2. `eval_with_par_map(partition_data[0],NUM_WORKERS)`- *with python multiprocessing map*- after evaluating, subvolumes will be saved into the out\_folder directory named based on their smallest indices in each dimension (ex. path/to/out\_folder/0\_0\_0\_vol)3. Stitch the subvolumes together- `stitch_and_save(partition_data,outname)`- stitch together the subvolumes in partition_data- save to the hdf5 file outname- outname['starts'] = list of min_indices of each subvolume- outname['ends'] = list of max_indices of each subvolume- outname['seg'] = full stitched segmentation- outname['seg_sizes'] = array of size of each segmentation- outname['rg_i'] = region graph for ith subvolume4. Threshold individual subvolumes by merging- `seg_merged = merge_by_thresh(seg,seg_sizes,rg,thresh)`- load in these areguments from outname |
zwave-js-server-python | zwave-js-server-pythonPython library for communicating withzwave-js-server. Goal for this library is to replicate the structure and the events of Z-Wave JS 1:1. So it has aDriver,ControllerandNodeclasses.Setup development environmentTo setup your development environment, runscripts/setup, which will install all requirements and set up pre-commit checks.Trying it outpython3-mzwave_js_serverws://localhost:3000Or get the version of the serverpython3-mzwave_js_serverws://localhost:3000--server-versionOr dump the state. Optionally add--event-timeout 5if you want to listen 5 seconds extra for events.python3-mzwave_js_serverws://localhost:3000--dump-stateSending commandstry:result=awaitclient.async_send_command({"command":"start_listening"})exceptzwave_js_server.client.FailedCommandaserr:print("Command failed with",err.error_code) |
zwave-me-ws | ZWave-Me-WS is a websocket connection library forZ-Wave.Me Z-WaycontrollersInstallingTo install this package use:pip install zwave-me-wsUsageTo use the connector initialize the API using:from zwave_me_ws import ZWaveMe, ZWaveMeData
zwave_api = ZWaveMe(
on_device_create=on_device_func
on_device_update=on_device_update_func,
on_new_device=on_device_add_func,
token="....", # Z-Way access token in the form .../... (remote) of /... (local)
url="...", # wss://find.z-wave.me or ws://IP:8083
platforms=[...]
)
def on_device_add_func(self, device: ZWaveMeData)
def on_device_create_func(self, devices: list[ZWaveMeData])
def on_device_update_func(self, new_info: ZWaveMeData)Hereplatformsis the list of deviceType fields to handle. Used to filter only types supported by your application. For example,["sensorBinary", "lightMultilevel", "toggleButton", "thermostat", "motor", "fan", "doorlock", "switchMultilevel", "switchBinary", "sensorMultilevel", "siren", "switchRGBW", "switchRGB"].Available functions:devices = zwave_api.get_devices()
zwave_api.send_command(device_id, command) # command can be "on", "off", "exact?level=..", "open", "close"
is_connected = zwave_api.get_connection()
zwave_api.close_ws()Device (ZWaveMeData) has the following fields:id: str
deviceType: str
title: str
level: Union[str, int, float]
deviceIdentifier: str
probeType: str
scaleTitle: str
min: str
max: str
color: dict
isFailed: bool
locationName: str
manufacturer: str
firmware: str
tags: list[str]
nodeId: str
creatorId: str |
zwave-mqtt-bridge | Z-Wave to MQTT bridgeThis utility publishes to MQTT topics when sensor reports are published
from multilevel-sensor devices on a Z-Wave network, and set values when
messages are received on relevant topics. So far it has been tested with
the Aeotec Z-Stick, MultiSensor 6, and SmartSwitch 6 devices.The repository also includes a helper that republishes Z-Wave messages
on MQTT to topics that are compatible with JSON-format OpenEnergyMonitor
messages.UsageThe bridge is started by running thezwave_mqtt_bridgeexecutable.
This takes a number of options, which are described in the help for the
tool:usage: zwave_mqtt_bridge [-h] [-U MQTT_USER] [-p MQTT_PASS] [-d DEVICE]
[-u USER_PATH] [--basetopic BASETOPIC]
mqtt_host
MQTT interface to Z-Wave sensors.
positional arguments:
mqtt_host MQTT host
optional arguments:
-h, --help show this help message and exit
-U MQTT_USER MQTT username
-p MQTT_PASS MQTT password
-d DEVICE, --device DEVICE
Path to Z-Stick device
-u USER_PATH Path to write user files (e.g. current Z-Wave
configursation
--basetopic BASETOPIC
Base topic to publish/subscribe toDEVICEis often/dev/ttyACM0(and this is the default value.BASETOPICdefaults tozwave.Once running, the tool publishes updates to<basetopic>/updates/<node_id>as JSON objects, where each key is the
value that was updated, and the value is the new value it was set to.
For example,{"Temperature": 20.5}.It also subscribes to<basetopic/refresh/#>. The user can publish
messages to subtopics named by node ID (e.g. zwave/refresh/5) with a
list of values that they wish to refresh (e.g.["Power"]) (the
labels are those used by OpenZWave). This should cause a message to the
correspondingupdatetopic shortly after with the current value.Finally, it subscribes to<basetopic/set/#>. The user can publish
messages to subtopics named by node ID (e.g. zwave/set/5) with a JSON
object identifying values to be updated (e.g.{"Switch": true}).
These will then be set: typically they will be reflected in theupdatestopic.ZWave to Emon republisherhttps://github.com/adpeace/emonhub/tree/emon-picontains a script
(emon_mqtt_logger.py) that subscribes to messages published by
emonhub (a tool for capturing measurements published by
OpenEnergyMonitor devices and posting them to MQTT, amongst others) and
posts them to EmonCMS (a data storage/graphing site).The MQTT bridge here uses a different topic structure to allow for
bi-directional communication, and the types of updates from Z-Wave
devices is much more varied that needs to be posted to EmonCMS, so I
wrote a utility (zwave_emon_republisher) that captures just the
relevant messages from the Z-Wave network, reformats, and reposts them
to be captured byemon_mqtt_logger.py.The usage is similar tozwave_mqtt_bridge: simply provide MQTT host
details, and the base topics you are using for Z-Wave messages and emon
messages and it takes care of the rest.InstallationInstall usingpip, e.g.pip installzwave-mqtt-bridge.To run at startup you can use the provided examplesystemdfiles,
which needs to be installed in the/etc/systemd/systemdirectory.
Note that the provided example assumes that there is a user calledzwavethat will have access to the appropriate serial device for the
Z-Stick (usually/dev/ttyACM0), and will create working files in
that userโs home directory. You can create this user using, for example,
theaddusercommand:sudo adduser --system --no-create-home --ingroup dialout zwave |
zwave-ws | No description available on PyPI. |
zwb | No description available on PyPI. |
zwb-data | zwb_data |
zwb-job | zwb_job |
zwb-utils | zwb_utils |
zwc | This is a simple Chinese word count tool that contains a command line program and a Python module. |
zwcef | No description available on PyPI. |
zwdata | Failed to fetch description. HTTP Status Code: 404 |
zwdb | Personal Database wrapper |
zwdlib | UNKNOWN |
zwdoc | ZWDOCPersonal Document Utility |
zwdocs | ZWDOCSPersonal Document Utilities |
zwdq | No description available on PyPI. |
zweb | UNKNOWN |
zwedu-student-etl | python student ETL jobpython3 -m build --wheel |
zweifach | Zweifach (german for โtwo timesโ) is an app to make integration of django-otp a bit more biased.Integration of two factor auth is enforced by a middleware which will ensure two things:make sure a user who is required to enable 2FA for its account will be redirected to the setup-view until setup is done.make sure a user who has 2FA enabled will be redirected to verify-view for token input after login until verified.QuickstartInstall packages by running โpip install zweifach django-otp qrcodeโAdd โzweifachโ to INSTALLED_APPS.Add โzweifach.middleware.ZweifachMiddlewareโ to MIDDLEWARE,afterAuthenticationMiddleware.Inlcude โzweifach.urlsโ somewhere in your url-config.Configure django-otp as described further down belowSettingssettings.ZWEIFACH_AUTH_REQUIREDdefault: []A list of checks which determine, if a user needs 2FA to use its account.examaple:ZWEIFACH_AUTH_REQUIRED = [
lambda user: user.is_staff, # all staff unsers must use two factor auth
lambda user: '2fa' in user.groups.values_list("name", flat=True), # all users in group '2fa' must use two factor auth
]settings.ZWEIFACH_URL_EXCLUDESdefault: []A list of url which are always accessible without 2FA.
Verify and Setup views are always excluded as well as settings.LOGIN_URL and the admin login view, if admin is enabled.example:ZWEIFACH_URL_EXCLUDES = [
'/imprint/',
'/faq/how-to-setup-2fa/',
]Note: If a url is accessible without login, it can of course still be viewed without any 2FA interaction.Notes about django-otp configurationA compatible installation of django-otp should be setup as follows:Add to INSTALLED_APPS:'django_otp',
'django_otp.plugins.otp_totp',
'django_otp.plugins.otp_static',Add to MIDDLEWARE (between AuthenticationMiddleware and ZweifachMiddleware):'django_otp.middleware.OTPMiddleware'Configure issuer:OTP_TOTP_ISSUER = 'MyProject'UsageTo generate static recovery tokens (also useful for first login on freshly installed systems) use:./manage.py addstatictoken <username>DevelopmentEnsure basic code style with:toxBuild package with:python3 -m buildUpload package to PyPI:python3 -m twine upload dist/zweifach-x.x.x* |
zweig | Zweig provides several utilities for dealing with theastmodule. Itโs
BSD licensed and tested under Python 2.7 and 3.3.Take a look at thedocumentationfor more information. |
zWell-model | ZWell-modelintroduceA deep learning model library that supports various deep network models and transformations to libraries such as Keras.
With this tool, it is easy to construct neural network objects that can be used for any API, saving additional API
learning time.Acquisition method้่ฟ pip ๅทฅๅ
ท่ฟ่กๅบ็ๅฎ่ฃ
๏ผไนๅฏไปฅ้่ฟGitHubไธญ็ๆบ็ ๆๅจ่ฃ
่ฝฝใpipinstallzWell-modelCurrent developments่ฟ้ๅฑ็คบ็ๆฏๅฝๅ zWell-model ๆฏๆ็ๆทฑๅบฆๅญฆไน ๆจกๅ๏ผไปฅๅๅ
ถๆฏๆๆฅๅ
ฅ็็ฌฌไธๆนๅบ็ญๆด่ฏฆ็ป็ๆ
ๅตใNeural Network Nameby referenceSupport access to kerasSupported versionBasic Convolutional First EditionzWell_model.ConvNetV1yesv0.0.1.20230514Basic Convolutional Second EditionzWell_model.ConvNetV2yesv0.0.1.20230514Residual Neural Network First EditionzWell_model.ResNetV1yesv0.0.1.20230514Dense Neural Network First EditionzWell_model.DenseNetV1yesv0.0.2.20230528Usage examplesThere are many neural network implementations in this library that support conversion to various library model objects.
The following are relevant examples.Basic Convolutional Neural NetworksThe basic convolutional neural network contains the most basic network structure, which compromises learning speed and
accuracy, and has two versions in total.first editionA convolutional neural network with learning speed as its main core can improve learning speed for a large amount of
data with almost identical features.importzWell_model# Obtaining the first type of convolutional neural networkresNet=zWell_model.ConvNetV1(# The number of additional convolutional layers to be added above the specified infrastructure is 4. TODO defaults to 1model_layers_num=4,# Specify the step size in the four convolutional layersstride=[1,2,1,2],# Specify the input dimension of convolutional neural networksinput_shape=(None,32,32,3),# Specify classification quantityclasses=10)Second EditionThe convolutional neural network, whose core is learning speed and preventing overfitting, can improve learning speed
and model accuracy for a large number of data with diversified features.importzWell_model# Obtaining the second type of convolutional neural networkresNet=zWell_model.ConvNetV2(# The number of additional convolutional layers to be added above the specified infrastructure is 1. TODO defaults to 1model_layers_num=1,# Specify the step size in the one convolutional layersstride=[1],# Specify the input dimension of convolutional neural networksinput_shape=(32,32,3),# Specify classification quantityclasses=10)Example of using basic convolutional neural networksWhat is displayed here is the operation of converting the basic convolutional neural network series into models in Keras
and calling them.# This is an example Python script.importnumpyasnpfromkeras.datasetsimportcifar10fromkeras.optimizersimportAdamfromlivelossplotimportPlotLossesKerasimportzWell_model# Obtaining a dataset(x_train,y_train),(x_test,y_test)=cifar10.load_data()# Data standardization and dimension expansionx_train=x_train.astype(np.float32).reshape(-1,32,32,3)/255.x_test=x_test.astype(np.float32).reshape(-1,32,32,3)/255.# Obtaining the second type of convolutional neural networkresNet=zWell_model.ConvNetV2(# The number of additional convolutional layers to be added above the specified infrastructure is 1. TODO defaults to 1model_layers_num=1,# Specify the step size in the one convolutional layersstride=[1],# Specify the input dimension of convolutional neural networksinput_shape=(32,32,3),# Specify classification quantityclasses=10)# Converting to the network model of Kerasmodel=resNet.to_keras_model()model.summary()# Start building the modelmodel.compile(loss='sparse_categorical_crossentropy',optimizer=Adam(learning_rate=0.001),metrics=['acc'])# Start training the modelmodel.fit(x=x_train,y=y_train,validation_data=(x_test,y_test),batch_size=32,epochs=30,callbacks=[PlotLossesKeras()],verbose=1)Residual neural networkYou can obtain the general object of the residual neural network object from ZWell model in the following way.importzWell_model# Obtaining residual neural networkresNet=zWell_model.ResNetV1(# Specify the number of residual blocks as 4 TODO defaults to 4model_layers_num=4,# Specify the number of output channels in the four residual blocksk=[12,12,12,12],# Specify the step size in the four residual blocksstride=[1,2,1,2],# Specify the input dimension of the residual neural networkinput_shape=(32,32,3),# Specify classification quantityclasses=10)Directly convert the obtained residual neural network object into a neural network model object in Keras, enabling it to
be supported by Keras.# This is an example Python script.importnumpyasnpfromkeras.datasetsimportcifar10fromkeras.optimizersimportAdamfromlivelossplotimportPlotLossesKerasimportzWell_model# Obtaining a dataset(x_train,y_train),(x_test,y_test)=cifar10.load_data()# data standardizationx_train,x_test=x_train.astype(np.float32)/255.,x_test.astype(np.float32)/255.# Obtaining residual neural networkresNet=zWell_model.ResNetV1(# Specify the number of residual blocks as 4 TODO defaults to 4model_layers_num=4,# Specify the number of output channels in the four residual blocksk=[12,12,12,12],# Specify the step size in the four residual blocksstride=[1,2,1,2],# Specify the input dimension of the residual neural networkinput_shape=(32,32,3),# Specify classification quantityclasses=10)# Converting to the network model of Kerasmodel=resNet.to_keras_model()model.summary()# Start building the modelmodel.compile(loss='sparse_categorical_crossentropy',optimizer=Adam(learning_rate=0.001),metrics=['acc'])# Start training the modelmodel.fit(x=x_train,y=y_train,validation_data=(x_test,y_test),batch_size=32,epochs=30,callbacks=[PlotLossesKeras()],verbose=1)็จ ๅฏ็ฅ็ป็ฝ็ปYou can obtain dense neural network models from the ZWell mode library in the following way.importzWell_model# Obtaining dense neural networksresNet=zWell_model.dense_net1.DenseNetV1(# Specify the number of dense blocks as 3 TODO defaults to 4model_layers_num=3,# Specify the convolution step size in the transition layer after 2 dense blocksstride=[1,1,1],# Specify the input dimension of a dense neural networkinput_shape=(32,32,3),# # Specify classification quantityclasses=10)Convert the obtained dense neural network object into a deep neural network object in the Keras library.# This is an example Python script.importnumpyasnpfromkeras.datasetsimportcifar10fromkeras.optimizersimportAdamfromlivelossplotimportPlotLossesKerasimportzWell_model# Obtaining a dataset(x_train,y_train),(x_test,y_test)=cifar10.load_data()# data standardizationx_train,x_test=x_train.astype(np.float32)/255.,x_test.astype(np.float32)/255.# Obtaining dense neural networksresNet=zWell_model.dense_net1.DenseNetV1(# Specify the number of dense blocks as 3 TODO defaults to 4model_layers_num=3,# Specify the convolution step size in the transition layer after 2 dense blocksstride=[1,1,1],# Specify the input dimension of a dense neural networkinput_shape=(32,32,3),# # Specify classification quantityclasses=10)print(resNet)# Converting to the network model of Kerasmodel=resNet.to_keras_model()model.summary()# Start building the modelmodel.compile(loss='sparse_categorical_crossentropy',optimizer=Adam(learning_rate=0.001),metrics=['acc'])# Start training the modelmodel.fit(x=x_train,y=y_train,validation_data=(x_test,y_test),batch_size=32,epochs=30,callbacks=[PlotLossesKeras()],verbose=1)More ActionsUsing abbreviations to obtain neural networksStarting from version 0.0.2, we can use model aliases to obtain model classes, which are beneficial for simple model
instantiation and reduce code load. Different model abbreviations and instantiation operations are shown below.Original name of the modelModel abbreviationConvNetV1Cnn1ConvNetV2Cnn2ResNetV1RCnn1DenseNetV1Dn1# This is an example Python script.importzWell_modelaszModelfromzWell_model.allModelimportAllModel# Here, the model object of ConvNetV1 was obtained through abbreviation# TODO Cnn1 is an abbreviationz_model:AllModel=zModel.Cnn1(# The number of additional convolutional layers to be added above the specified infrastructure is 4. TODO defaults to 1model_layers_num=4,# Specify the step size in the four convolutional layersstride=[1,2,1,2],# Specify the input dimension of convolutional neural networksinput_shape=(None,32,32,3),# Specify classification quantityclasses=10)print(z_model)print(z_model.to_keras_model()) |
zwembad | Aboutzwembadoffers anMPIPoolExecutorclass, an implementation of theconcurrent.futures.Executorclass of the standard library.Example usagefrom zwembad import MPIPoolExecutor
from mpi4py import MPI
def menial_task(x):
return x ** MPI.COMM_WORLD.Get_rank()
with MPIPoolExecutor() as pool:
pool.workers_exit()
print("Only the master executes this code.")
# Submit some tasks to the pool
fs = [pool.submit(menial_task, i) for i in range(100)]
# Wait for all of the results and print them
print([f.result() for f in fs])
# A shorter notation to dispatch the same function with different args
# and to wait for all results is the `.map` method:
results = pool.map(menial_task, range(100))
print("All processes join again here.")You'll see that some results will have exponentiated either by 1, 2, ..., n
depending on which worker they were sent to. It's also important to prevent your
workers from running the master code using thepool.workers_exit()call. As a
fail safe any attribute access on thepoolobject made from workers will
result in them exiting anyway.TheMPIPoolExecutorof zwembad is designed to function withoutMPI.Spawn()for cases where this approach isn't feasible, like supercomputers whereMPI.Spawnis deliberatly not implemented (for example CrayMPI).Therefor the pool can only use MPI processes that are spawned when the MPI world
is initialised and must be run from the command line using an MPI helper such asmpirun,mpiexecor SLURM'ssrun:$ mpirun -n 4 python example.py |
zwende | Sometimes it is beneficial to hide a โplain textโ message within plain text. This module will
do just that. |
zwero-brain-games | Failed to fetch description. HTTP Status Code: 404 |
zwero-brain-games1 | Failed to fetch description. HTTP Status Code: 404 |
zwf | zwf โ Zwift WAD file toolA tool to list/extract files from Zwift WAD files โ the asset archives (like a tar/zip file) that Zwift uses.LimitationsCompressed .wad files are not supported. The .wad files which ship with Zwift underassets/**/*.wadare compressed. This tool can work with the decompressed versions, but does not implement decompression itself.You might find decompressed versions in a memory dump of a Zwift process, but that may be against the Zwift TOS. |
zw-fast-quantile-py | zw_fast_quantile_pyzw-fast-quantilepython bindingInstallationpipinstallzw_fast_quantile_pyUsageimportzw_fast_quantile_pysummary=zw_fast_quantile_py.IntQuantileSummary(0.01)summary.update(1,2,3,4,5,6,7,8,9,10)summary.query(0.0)BenchmarkWe calculate the median of[1, 1000], thezw_fast_quantile_pyis slightly slower thanstatistics.quantilesdue to the serilization cost between python and extension.zw_fast_quantile_py502
4.4792000000000096e-05statistics.quantiles499.5
3.883300000000027e-05 |
zwfSalary | No description available on PyPI. |
zWhite | No description available on PyPI. |
zwholder | Zero-width character placeholder.Installationpip install zwholder |
zwi | zwiHere are some small python programmes to facilitate viewing Zwift data.requirementsa Zwift user account
python3.9 or later
pip3usageThe easiest way to use this is to usepip3 installto install
everything you need. Prior to that, you should probably have done
something like:ZWI_ENV=/tmp/zwi_env
python3 --version
python3 -m venv ${ZWI_ENV}
. ${ZWI_ENV}/bin/activateIf using anaconda:conda create -n zwi python=3.9
conda activate zwiAt this point, you will have a dedicated play area to installzwiand dependencies.pip3 install zwiThis will install everything required, and place two command scripts
in${ZWI_ENV}/binwhich will be in your${PATH}while the
environment is activated.zwi --helpversionzwi versionTheversionfunction returns the version number of the currently
installedzwipackage.authenticationBefore you can do much of interest, you must store your authentication
information in the local key store. For OsX, this is the system
keychain. For Linux, it is something similar.zwi auth --help
zwi auth --name=guest@example.com --password=SuperSecret123
zwi authYou can have theauthprogramme prompt for bothnameandpassword. You need to enter the password twice, in that case, and
it will not be stored unless it successfully authenticates with the
Zwift server.verificationzwi check --help
zwi checkThecheckfunction will verify that the stored credentials function.
At times on MacOS, the keychain decides it doesn't like you any more
and requires you to enter your login password, twice, wheneverzwiaccess the stored user name and password. Make sure you click onalways allowunless you need to practice typing your password.initialise/reset databaseOnce you are authenticated, the next step is to populate the local
database cache with information from Zwift.zwimaintains state in${HOME}/.zwi/. Ansqlite3database is used to cache the state of
the user'sfollowersandfolloweeslists. In addition, the
profiles of all Zwift users encountered (via thefollowers/followeeslists) are saved in a separate database.zwi reset --help
zwi resetTheresetfunction deletes the${HOME}/.zwi/zwi.dbdatabase file
if it exists, creates thesqlite3database, and populates the
database with thefollowersandfolloweestables.
It will not delete the profiles database, but it will ensure that
there are profile entries for each user in thefollowersandfolloweeslists.update followers/followees databasezwi update --help
zwi -v updateTheupdatefunction refreshes thefollowersandfolloweesinformation.
(Currently, this function is being fleshed out. It does not yet
report any differences. Also, it fails to process deletions.)update profile databasezwi pro-update --help
zwi [-v] pro-update [--force]Thepro-updatefunction will update the local DB profile cache using
information in the local Zwift userfollowersandfolloweesDB
cache.list profile database entrieszwi pro-list --help
zwi pro-listThe profiles list can be displayed.bokehzwibok serve [--port=#]Theprofiledatabase can be viewed using thezwibokapp.
This will pop up a page on your browser allowing you to explore
various attributes of the users in theprofiledata base.
It should be more or less obvious. Eventually I might try to write
some usage info, but as it is more or less a proof-of-concept, it
might change again soon.Basically, it presents an X/Y plot of subsets of the data. You can
select different data columns for X and Y. You can adjust range
sliders to reduce the set of data points in the plot.
Male-only or female-only or both can be selected.The cross-hairs of the cursor select users and display some more info
pertaining to the user.guizwi gui --help
zwi guiTheguifunction pops up a window displaying data from the local
database copy of the Zwiftfollowersandfolloweestables.
This was my second attempt at writing a gui to view some of the
data. Currently, it only displays information from thefollowersandfolloweeslists.Key Bindings (for OSX):CMD-1 Switch to `followers` table.
CMD-2 Switch to `followees` table.
CMD-a Toggle `auto` mode.
CMD-n Move to next entry.
CMD-p Move to previous entry.
CMD-f Search (not yet implemented).
CMD-q QuitIfautomode is enabled:CMD-n increase interval
CMD-p decrease intervalThe slider at the bottom can be used to move rapidly thru the list.For Linux, it appears the key bindings map to the CTRL key. The menu items will indicate whatever it is.followeeszwi wees --help
zwi weesTheweesfunction will check the cached followees list (them who's followed).
Any subject who is being followed but who is not reciprocating is displayed.
You will have to manually search for the user in the Zwift companion and decide what punishment to hand out.followerszwi wers --help
zwi wersThewersfunction will check the cached followers list and display any lacking reciprocity.
Certain users will follow you, but not respond to reciprocal follow requests, remaining forever in limbo.
One can always try unfollowing/refollowing to see if the recalcitrant is interested in reciprocity.
As above, as far as I know, one has to use the Zwift companion app to search by name.inspect other user's public information.Per the Zwift privacy policy, various data are publicly accessible. Theinspectcommand
facilitates examination of the publicly available data.zwi inspect --help
zwi inspect --zid=ZwiftUser
zwi -v inspect --zid=ZwiftUser --updateremoving authentication informationTheclearfunction will remove any cached user/password information from the key-store.worldsTheworldsfunction will show how many users are signed in currently.zwi worlds --help
zwi -v worlds
zwi worlds --polldevelopmentI have been usinganacondaonOsXfor development. Supposedly, this will install things
to facilitate development:conda env create -f environment.yml
conda activate zwi
flit install --symlink
pip3 install zwift-client
pip3 install PyQt5hintsWhen manually deleting followees, using the Zwift companion app, and
searching by name, I find it helps to type in the bits of the name
which are more likely to be unique, so as to limit the lists
presented.user feedbackissuesIf you have any problems with or questions about this image, please contact me
through aGitHub issue. |
zwift-client | Zwift Mobile API clientZwift Mobile API client written in Python. Heavily inspired byzwift-mobile-api.Installation$ pip install zwift-clientUsageClient>>> from zwift import Client
>>> username = 'your-username'
>>> password = 'your-password'
>>> player_id = your-player-id
>>> client = Client(username, password)Profile>>> profile = client.get_profile()
>>> profile.profile # fetch your profile data
>>> profile.followers
>>> profile.followees
>>> profile.get_activities() # metadata of your activities
>>> profile.latest_activity # metadata of your latest activityActivity>>> activity = client.get_activity(player_id)
>>> activities = activity.list() # your activities (default start is 0, default limit is 20)
>>> activities = activity.list(start=20, limit=50)
>>> latest_activity_id = activities[0]['id']
>>> activity.get_activity(latest_activity_id) # metadata of your latest activity
>>> activity.get_data(latest_activity_id) # processed FIT file dataWorld>>> world = client.get_world(1) # get world with id 1
>>> world.players # players currently present in this world
>>> world.player_status(player_id) # current player status information like speed, cadence, power, etc.CreditsThis package was created withcookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.0 (2018-03-02)Add optionalstartandlimitkeyword arguments toActivity.list().0.1.0 (2018-01-14)Initial release. |
zwiftpktmon | zwiftpktmonA Python port of the C# ZwiftPacketMonitor project which monitors Zwift UDP packets.This project implements a TCP and UDP packet monitor for the Zwift cycling simulator. It listens for packets on a specific port of a local network adapter, and when found, deserializes the payload and dispatches events that can be consumed by the caller. It uses the asyncio standard library to allow the packet parsing activities to not interfere with the event consumer.NOTE: Because this utilizes a network packet capture to intercept the UDP packets, your system may require this code to run using elevated privileges. This is definitely required on MacOS.RequirementsRequires Python version 3.10 or higherUses the project pcapy-ng as its interface to the Pcap-API. The Pcap-API exists natively on MacOS and Linux but not on Windows.
On Windows, the Npcap packet capture library must be installed. Npcap is available here:https://npcap.com/dist/npcap-1.60.exeThe pcapy-ng library is written in Cython at must be compiled for each environment. Currently, two environments have been pre-compiled and supported:Windows 10+ (64bit AMD; Intel might work but untested)MacOS 10.13+ (High Sierra)Setuppip install zwiftpktmonThere are some example scripts in the .\tests folder:test_harness.py: A simple script allowing network selection and event logging.test_harness_ui.py: A simple UI based upon PySimpleGui. To use this you must pip install PySimpleGui first. |
zwift-workouts-parser | Zwift Workouts ParserWant to try a workout of some specific plan on Zwift but don't want to start the plan? Use this utility to parse any desired plan or workout straight from thehttps://whatsonzwift.com.Just feed it with an URL and it will export everything it can into .zwo files which you can import into Zwift and try them out.Installationpip install zwift-workouts-parserpip install bs4pip install certifipip install lxml |
zwitutils | No description available on PyPI. |
zwixel-pwack | No description available on PyPI. |
zwjhello | No description available on PyPI. |
zwjira | A JIRA workflow automation toolset for personal use. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.