package
stringlengths 1
122
| pacakge-description
stringlengths 0
1.3M
|
---|---|
aklite
|
IntroductionAKLite is a lite version of AKShare, which will be used in the future to support the AKShare project.AKLite Features:Small, fast and powerfulHigh performanceEasy to uesInstallationpipinstallaklite--upgrade-ihttps://pypi.org/simpleUsageimportakliteasaistock_zh_a_hist_obj=ai.stock_zh_a_hist(symbols=["000001","000002"],period="daily",start_date="20220101",end_date="20230601",adjust="hfq",timeout=5,proxies={})print(stock_zh_a_hist_obj.data)print(stock_zh_a_hist_obj.columns)print(stock_zh_a_hist_obj.url)print(stock_zh_a_hist_obj.desc)print(stock_zh_a_hist_obj.symbols)print(stock_zh_a_hist_obj.start_date)print(stock_zh_a_hist_obj.end_date)print(stock_zh_a_hist_obj.adjust)datesymbol...price_changeturnover_rate02022-01-04000001...29.260.6012022-01-05000001...79.631.0122022-01-06000001...-4.870.5732022-01-07000001...13.000.5842022-01-10000001...-1.620.47
.................6772023-05-26000002...2.620.426782023-05-29000002...-23.560.466792023-05-30000002...43.200.916802023-05-31000002...-15.710.466812023-06-01000002...-31.420.48[682rowsx12columns]ContributingTranslatecddocs
sphinx-build-bgettext./sourcebuild/gettext
sphinx-intlupdate-p./build/gettext-lzh_CNPublishhatchbuild
hatchpublish
|
ak_loading
|
Work in ProgressPurposeCalculationScopeapp1scope1app2app3DisclaimerAlthough this calculator has been formally checked for technical correctness, it is not a substitute for engineering judgement, and does not relieve users of their duty to conduct required checking and quality control procedures.ReferencesS. No.ReferenceYear1.CSA A23.320192.CSA S162019Color referenceColorLegend#RedError#YellowWarning message#GreenOK#BlueAuthor's notesInstructions for useReview all information on the cover sheetFrom the side bar, choose one of the pages availableProceed to calculations by filing in all the valuesReview entire workbook after completionYou may collapse the side bar and print the page usingCtrl+Pto save the calculation as PDF.Version Notes and releasesVersionv0.1Version NotesDraft web-releaseVersion Date2022 - August - 24
|
aklogger
|
akloggerKeep track of all the events happening in your project: A generic logging package for python projects.[Features]Logging to consoleLogging to filePush logs to slackInstallation$ pip install akloggerUsageFollowing script will log messages to slack, file and console:fromakloggerimportloggerlogger.set_name('mycroft')logger.setLevel('DEBUG')# This will log to consolelogger.info('Some Dummy log','Some dummy details of the dummy log')# Enable File loglogger.log_to_file('file.log')# This will log to file and consolelogger.info('Some Dummy log','Some dummy details of the dummy log')# Enable Slacklogger.enable_slack(SLACK_TOKEN)# Set slack levellogger.set_slack_level('WARNING')# Now the logs will be log to slacklogger.warning('Some Dummy log','Some dummy details of the dummy log')# You can also do a force push to slack no matter what the slack level is set.logger.info('Dummy log','Details of the dummy log',force_push_slack=True)Seepython logging docsfor more uses.
|
ak-M2Crypto
|
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA,
DH, EC, HMACs, message digests, symmetric ciphers (including AES); SSL
functionality to implement clients and servers; HTTPS extensions to Python’s
httplib, urllib, and xmlrpclib; unforgeable HMAC’ing AuthCookies for web
session management; FTP/TLS client and server; S/MIME; ZServerSSL: A HTTPS
server for Zope and ZSmime: An S/MIME messenger for Zope. M2Crypto can also be
used to provide SSL for Twisted. Smartcards supported through the Engine
interface.
|
ak-macholibre
|
Note to the author: Please add something informative to this READMEbeforereleasing your software, asa little documentation goes a long way. Both
README.rst (this file) and NEWS.txt (release notes) will be included in your
package metadata which gets displayed in the PyPI page for your project.You can take a look at the README.txt of other projects, such as repoze.bfg
(http://bfg.repoze.org/trac/browser/trunk/README.txt) for some ideas.CreditsDistributeBuildoutmodern-package-template
|
akmacpy
|
No description available on PyPI.
|
akmactest
|
No description available on PyPI.
|
akmaddition
|
A simple Python package for addition with unit tests.
|
akmath
|
Failed to fetch description. HTTP Status Code: 404
|
akmathpy
|
No description available on PyPI.
|
akm-distributions
|
No description available on PyPI.
|
ak-minio
|
MinIO Python Library for Amazon S3 Compatible Cloud StorageThe MinIO Python Client SDK provides simple APIs to access any Amazon S3 compatible object storage server.This quickstart guide will show you how to install the client SDK and execute an example python program. For a complete list of APIs and examples, please take a look at thePython Client API Referencedocumentation.This document assumes that you have a workingPythonsetup in place.Minimum RequirementsPython 2.7 or higherDownload from pippipinstallminioDownload from pip3pip3installminioDownload from sourcegitclonehttps://github.com/minio/minio-pycdminio-py
pythonsetup.pyinstallInitialize MinIO ClientYou need four items in order to connect to MinIO object storage server.ParamsDescriptionendpointURL to object storage service.access_keyAccess key is like user ID that uniquely identifies your account.secret_keySecret key is the password to your account.secureSet this value to 'True' to enable secure (HTTPS) access.fromminioimportMiniofromminio.errorimportResponseErrorminioClient=Minio('play.min.io',access_key='Q3AM3UQ867SPQQA43P2F',secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',secure=True)Quick Start Example - File UploaderThis example program connects to a MinIO object storage server, makes a bucket on the server and then uploads a file to the bucket.We will use the MinIO server running athttps://play.min.ioin this example. Feel free to use this service for testing and development. Access credentials shown in this example are open to the public.file-uploader.py# Import MinIO library.fromminioimportMiniofromminio.errorimport(ResponseError,BucketAlreadyOwnedByYou,BucketAlreadyExists)# Initialize minioClient with an endpoint and access/secret keys.minioClient=Minio('play.min.io',access_key='Q3AM3UQ867SPQQA43P2F',secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',secure=True)# Make a bucket with the make_bucket API call.try:minioClient.make_bucket("maylogs",location="us-east-1")exceptBucketAlreadyOwnedByYouaserr:passexceptBucketAlreadyExistsaserr:passexceptResponseErroraserr:raise# Put an object 'pumaserver_debug.log' with contents from 'pumaserver_debug.log'.try:minioClient.fput_object('maylogs','pumaserver_debug.log','/tmp/pumaserver_debug.log')exceptResponseErroraserr:print(err)Run file-uploaderpythonfile_uploader.py
mclsplay/maylogs/[2016-05-2716:41:37PDT]12MiBpumaserver_debug.logAPI ReferenceThe full API Reference is available here.Complete API ReferenceAPI Reference : Bucket Operationsmake_bucketlist_bucketsbucket_existsremove_bucketlist_objectslist_objects_v2list_incomplete_uploadsAPI Reference : Bucket policy Operationsget_bucket_policyset_bucket_policyAPI Reference : Bucket notification Operationsset_bucket_notificationget_bucket_notificationremove_all_bucket_notificationlisten_bucket_notificationAPI Reference : File Object Operationsfput_objectfget_objectAPI Reference : Object Operationsget_objectput_objectstat_objectcopy_objectget_partial_objectremove_objectremove_objectsremove_incomplete_uploadAPI Reference : Presigned Operationspresigned_get_objectpresigned_put_objectpresigned_post_policyFull ExamplesFull Examples : Bucket Operationsmake_bucket.pylist_buckets.pybucket_exists.pylist_objects.pyremove_bucket.pylist_incomplete_uploads.pyFull Examples : Bucket policy Operationsset_bucket_policy.pyget_bucket_policy.pyFull Examples: Bucket notification Operationsset_bucket_notification.pyget_bucket_notification.pyremove_all_bucket_notification.pylisten_bucket_notification.pyFull Examples : File Object Operationsfput_object.pyfget_object.pyFull Examples : Object Operationsget_object.pyput_object.pystat_object.pycopy_object.pyget_partial_object.pyremove_object.pyremove_objects.pyremove_incomplete_upload.pyFull Examples : Presigned Operationspresigned_get_object.pypresigned_put_object.pypresigned_post_policy.pyExplore FurtherComplete DocumentationMinIO Python SDK API ReferenceContributeContributors Guide
|
akmoperations
|
A simple Python package for addition with unit tests.
|
akms-hash
|
AKMS HashAn API Key hashing library.
|
akms-logs
|
AKMS Logs PackageA template of README best practices to make your README simple to understand and easy to use.Table of ContentsInstallationUsageSupportContributingInstallationInstall the package using pip:pipinstallakms-logsUsagefromakms_logsimportlogasakms_loggerlog()SupportPleaseopen an issuefor support.ContributingPlease contribute usingGithub Flow. Create a branch, add commits, andopen a pull request.
|
akoeteka
|
Failed to fetch description. HTTP Status Code: 404
|
akoteka
|
Helps to manage your media contents
|
aKountable
|
UNKNOWN
|
akpackage
|
No description available on PyPI.
|
akparse
|
akparse packageA simple and easy-to-use CLI parse tool package. You can use '-', '--', ',', '|', '{', '}', '[', ']', '=' and character
to define your CLI API and the constraints are as follows:'-' : indicate a short option, followed by a character usually.'--': indicate a long option, followed by a word usually.',' : indicate a required option of one CLI API defined.'|' : indicate a parallel option of one CLI API defined with same prefix.'{}': indicate the parallel option, always with '|' together.'[]': indicate the optional option.'=' : indicate the k-v option.eg, one disk-file API:# create a disk file when be defined: --create,-p=[--user=,-a=]disk-file--create-pfile_path
disk-file--create-pfile_path--useru1-a777# query a disk file when be defined: --query[{-p=|--list}]disk-file--query
disk-file--query-pfile_path
disk-file--query--listusageimportsysfromakparse.parsersimportAkParserfromakparse.utils.ak_echoimportAkEchofromakparse.errs.ak_errorimportAkErrorflag_name=Noneflag_options=Nonetry:file_parser=AkParser()file_parser.add("help","{-h|--help}")file_parser.add("file_create","--create,-p=[--user=,-a=]")file_parser.add("file_query","--query[{-p=|--list}]")file_parser.add("file_set","--set{-p=,--user=,-a=|--limit=}")file_parser.add("file_delete","--delete,-p=[--user=]")file_parser.add("file_status","--status")flag_name,flag_options=file_parser.parse(sys.argv[1:])exceptAkErroraserr:AkEcho.ak_err(AkError.ERROR_PARSE_MSG+err.msg)# Print parse resultAkEcho.ak_echo(flag_name)AkEcho.ak_echo(flag_options)Please see more detail usage in examples
|
ak-phrase.py
|
ak-phrase.pyThis library generates all the permutations of sentences from words in a 2D array.It follows the word orders in sentence, same as the words order in array column wise.Installation$ pip3 install ak-phrase.pyUsagefromak-phase.pyimportSentenceGeneratorword_lists=[['eat'],['code','commit'],['sleep']]sentences=SentenceGenerator.generate_sentences(word_lists)print(sentences)# Output:# [ 'eat code sleep', 'eat commit sleep' ]ContributingInterested in contributing to this project?
You can log any issues or suggestion related to this libraryhereRead our contributingguideon getting started with contributing to the codebaseContributors
|
ak-postmonkey
|
PostMonkey 1.0bPostMonkeyis a simple Python (2.6+) wrapper for MailChimp’s API
version 1.3.Features100% test coverageConnection handling via the excellentRequestslibraryConfigurable timeoutSimpleExceptionsInstallationYou can install postmonkey viaeasy_install:easy_install postmonkeyOr by usingpip(requires you to specify the version because latest is 1.0b):pip install postmonkey==1.0bOr by placing the requirement ininstall_requiresin yoursetup.pyfile:install_requires=[# all your other packages'postmonkey==1.0b',]Basic UsageOnce you create aPostMonkeyinstance with your MailChimp API key,
you can use it to call MailChimp’s API methods directly:frompostmonkeyimportPostMonkeypm=PostMonkey('your_api_key')pm.ping()# returns u"Everything's Chimpy!"If the MailChimp method call accepts parameters, you can supply them in the form
of keyword arguments. SeeExamplesfor common use cases, and refer to theMailChimp API v1.3 official documentationfor a complete list of method calls,
parameters, and response objects.MailChimp has established guidelines/limits for API usage, so please refer
to theirFAQfor information.Note: it is the caller’s responsibility to supply valid method names and any
required parameters. If MailChimp receives an invalid request,PostMonkeywill raise apostmonkey.exceptions.MailChimpExceptioncontaining the
error code and message. SeeMailChimp API v1.3 - Exceptionsfor additional
details.ExamplesCreate a newPostMonkeyinstance with a 10 second timeout for requests:frompostmonkeyimportPostMonkeypm=PostMonkey('your_api_key',timeout=10)Get the IDs for your campaign lists:lists=pm.lists()# print the ID and name of each listforlistinlists['data']:printlist['id'],list['name']Subscribe “emailaddress” to list ID 5:pm.listSubscribe(id=5,email_address="emailaddress")Catch an exception returned by MailChimp (invalid list ID):frompostmonkeyimportMailChimpExceptiontry:pm.listSubscribe(id=42,email_address="emailaddress")exceptMailChimpException,e:printe.code# 200printe.error# u'Invalid MailChimp List ID: 42'Get campaign data for all “sent” campaigns:campaigns=pm.campaigns(filters=[{'status':'sent'}])# print the name and count of emails sent for each campaignforcincampaigns['data']:printc['title'],c['emails_sent']Changelog-Initial Release-2012-10-11: Quote JSON string before sending POST request-2013-07-03: Documentation updates and version bump (no code changes)
|
akpycalc
|
akpycalcPackage Demo on pypi.org
|
ak-pynn
|
MultiLayer Neural Network (ak_pynn)A simplistic and efficient pure-python neural network library, which can be used to build , visualize and deploy deep learning ANN models. It is optimized for best performance.Optimized for performanceBetter VisualizationCross platformAuthors@ankit_kohliLicenseMITSupportFor support, [email protected] implementations of activation functions and their gradientsSigmoidReLULeaky ReLUSoftmaxSoftplusTanhEluLinearEfficient implementations of loss functions and their gradientsMean squared errorMean absolute errorBinary cross entropyCategorical cross entropySeveral methods for weights initialization'random uniform','random normal''Glorot Uniform','Glorot Normal''He Uniform','He Normal'Neural network optimization usingGradient Descent (Batch/ SGD / Mini-Batch)MomentumAdagradRMSpropAdamRegularizationsL1 NormL2 NormL1_L2 NormDropoutsBatch NormalizationEarly StoppingValidation SplitsPredict ScoresInstallationInstall the release (stable) version from PyPipip install ak-pynnUsage/ExamplesImportfromak_pynn.mlpimportMLPUsagemodel=MLP()model.add_layer(4,input_layer=True)model.add_layer(10,activation_function='relu',batch_norm=True)model.add_layer(10,activation_function='relu',dropouts=True)model.add_layer(10,activation_function='relu')model.add_layer(3,activation_function='softmax',output_layer=True)model.compile_model(optimizer='Adam',loss_function='mse',metrics=['mse','accuracy'])Output( MODEL SUMMARY )
===================================================================
Layer Activation Output Shape Params
===================================================================
Input linear (None, 4) 0
-------------------------------------------------------------------
Dense relu (None, 10) 50
-------------------------------------------------------------------
BatchNormalization None (None, 10) 40
-------------------------------------------------------------------
Dense relu (None, 10) 110
-------------------------------------------------------------------
Dropout None (None, 10) 0
-------------------------------------------------------------------
Dense relu (None, 10) 110
-------------------------------------------------------------------
Output softmax (None, 3) 33
-------------------------------------------------------------------
===================================================================
Total Params - 343
Trainable Params - 323
Non-Trainable Params - 20
___________________________________________________________________Visualizing modelmodel.visualize()Training the modelmodel.fit(X_train,Y_train,epochs=200,batch_size=32,verbose=False,early_stopping=False,patience=3,validation_split=0.2)model.predict_scores(X_test,Y_test,metrics=['accuracy','precision','macro_recall'])plt.plot(model.history['Val_Losses'])plt.plot(model.history['Losses'])TESTS@mnist_test@iris_test@mlp_demoCitationIf you use this library and would like to cite it, you can use:Ankit kohli, "ak-pynn: Neural Network libray", 2023. [Online]. Available: https://github.com/ankit869/ak-pynn. [Accessed: DD- Month- 20YY].or:@Misc{,
author = {Ankit kohli},
title = {ak-pynn: Neural Network libray},
month = May,
year = {2023},
note = {Online; accessed <today>},
url = {https://github.com/ankit869/ak-pynn},
}
|
akq
|
akqJob queues in python with asyncio and KeyDB/redis.This fork replacesrediswithaiokeydband includesarq-prometheusas a module.Minor semantic changes include any reference toredisbeing replaced withkeydbSeedocumentationfor more details.Credits and Attribution:arqarq-prometheus
|
akqmt
|
项目说明此项目主要用于测试迅投研的数据模型改进优化代码结构减小压缩包体积便于使用单例模式,免得重复导入一次性设置 token项目地址数据字典:https://dict.thinktrader.net/dictionary
|
akracer
|
AKRacerAKRacer 主要是解决 py_mini_racer 在 64 位 ARM 操作系统中的动态链接库调用问题,主要
方案就是通过pip install akracer使得在对应py_mini_racer目录中下载相应的已经
编译好的动态链接库,目前主要包括armlibmini_racer.dylib和armlibmini_racer.glibc.so这
两个动态链接库,分别对应 Apple M 系列芯片和 Ubuntu 18.04,20.04 和 22.04 及树莓派 64 位操作系统。安装pipinstallakracer环境变量设置需要在本地设置 PyPI 的环境变量HATCH_INDEX_USER为__token__HATCH_INDEX_AUTH为pypi-xxxx定制化主要修改akracer/py_mini_racer/py_mini_racer.py中的_get_lib_path函数,使得其可以
正常调用到对应的动态链接库。对应操作修改版本:akracer/py_mini_racer/__init__.py中的__version__更新到新版本删除版本:akracer/dist删除该文件夹,以删除老版本构建版本:hatch build发布版本:hatch publish注意:第一次上传需要在hatch publish -u __token__ -a pypi-xxxx中配置好token动态链接库本项目目标是解决 py_mini_racer 在 64 位操作系统中的动态链接库调用问题;py_mini_racer 在 x86 架构的操作系统中,可以直接使用 pip 安装,不需要额外的动态链接库;其在 ARM 架构的操作系统中,需要额外的动态链接库本次主要提供其在 Apple M 系列芯片中的动态链接库还提供 ARM 在 Ubuntu 18.04,20.04 和 22.04 中的动态链接库还提供其在树莓派 64 位操作系统中的动态链接库对应一览表armlibmini_racer.dylib 对应 Apple M 系列芯片armlibmini_racer.glibc.so 对应 Ubuntu 18.04,20.04 和 22.04 及树莓派 64 位操作系统其余则由 py_mini_racer 编译安装项目管理HatchHatch 文档
|
akramcul
|
No description available on PyPI.
|
akratiaccount
|
No description available on PyPI.
|
akratibank
|
No description available on PyPI.
|
akratiproject
|
No description available on PyPI.
|
akre
|
No description available on PyPI.
|
ak_requests
|
ak_requestsRequests package with QOL improvements and anti-bot detection measuresView Demo·Documentation·Report Bug·Request FeatureTable of Contents1. About the Project1.1. Features2. Getting Started2.1. Installation2.1.1. Production2.1.2. Development3. Usage4. Roadmap5. License6. Contact7. Acknowledgements1. About the Projectak_requestsis a Python package that provides an interface for automating requests tasks usingrequestspackage. It comes with quality of life improvements like retires, custom redirects, spacing out requests and shuffling requests to not trigger anti-bot measures1.1. FeaturesBulk requests handlingBuilt-in retries and timeoutsCan log processes to fileHandles downloads of files/videosImplemented default rate-limiting checks and processSession objects are serialized to be able to save/load sessions from fileCan choose to handle exceptions or skip it completely withRAISE_EXCEPTIONSattributeCan support both basic.basic_auth()and OAuth.oauth2_auth()authentications.2. Getting Started2.1. Installation2.1.1. ProductionDownload the repo and install with flitpipinstallflit
flitinstall--depsproductionAlternatively, you can use pippipinstallak_requests2.1.2. DevelopmentInstall with flitflitinstall--pth-file3. Usagefromak_requestsimportRequestsSession# Initialize sessionsession=RequestsSession(log=False,retries=5,log_level='error')## Can update session level variablessession.MIN_REQUEST_GAP=1.5# seconds, Change min time bet. requestssession.RAISE_ERRORS=False# raises RequestErrors, else returns None; defaults to True# Update custom headersession.update_header({'Connection':'keep-alive'})# set cookiessession.update_cookies([{'name':'has_recent_activity','value':'1'}])# Get requestsres=session.get('https://reqres.in/api/users?page=2',data={},proxies={})# Can accept any requests parameters# Make bulk requestsurls=['https://reqres.in/api/users?page=2','https://reqres.in/api/unknown']responses=session.bulk_get(urls)# use beautifulsoupfromak_requestsimportsoupifyres=session.get('https://reqres.in/api/users?page=2')soup=soupify(res)## orsoup,res=session.soup('https://reqres.in/api/users?page=2')## Also works for bulk requestssoups,ress=session.bulk_soup(urls)# Download files## Check if file is downloadblesession.downloadble('https://www.youtube.com/watch?v=9bZkp7q19f0')#Falsesession.downloadble('http://google.com/favicon.ico')#Truesession.download(url='http://google.com/favicon.ico',#URL to downloadfifopath='C:\\',#Can be folderpath, filename or filepath. If existing folder specified - will extract filename from url contentsconfirm_downloadble=False#Will return `None`, if url not downloadble)# Download videosfrompathlibimportPathvideo_info=session.video(url='https://www.youtube.com/watch?v=BaW_jenozKc',folderpath=Path('.'),audio_only=False)#Downloads the video to specified path and returns dict of video info# Save/Restore session to/from file## Save the session state to a filesession.save_session('session_state.pkl')## Later, you can load the session state backrestored_session=RequestsSession.load_session('session_state.pkl')# Authenticationsession.basic_auth(username="johndoe",password="12345678")## basic authsession.oauth2_auth(token='x0-xxxxxxxxxxxxxxxxxxxxxxxx')## OAuth authentication4. RoadmapProxyAsynchronous RequestsResponse CachingRequest Preprocessing and PostprocessingFile Upload Support5. LicenseSee LICENSE for more information.6. ContactArun Kishore -@rpakishoreProject Link:https://github.com/rpakishore/ak_requests7. AcknowledgementsAwesome README TemplateShields.io
|
akr-ext-animepahe
|
AKR-Animepahe-extension
|
akr-extensions-sdk
|
No description available on PyPI.
|
akridata-akrimanager-v2
|
No description provided (generated by Openapi Generatorhttps://github.com/openapitools/openapi-generator) # noqa: E501
|
akridata-dsp
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
akride
|
Data Explorer Client SDKIntroductionakrideis a Python SDK that facilitates interaction with Akridata's Data Explorer, providing seamless integration and tools for streamlined data analysis.Akridata's Data Explorer allows you to save time building the best training and test sets for your application.akridewill help you:Visualize your dataDetect and remove outliersCheck class imbalanceSample the data and remove duplicationsApply Image-based-SearchAnalyze model's accuracyand much more!InstallationYou can install the latest stable version ofakrideviapip-for a CPU-only version:pipinstallakride[cpu]or on a GPU-enabled machine:pipinstallakride[gpu]You can upgrade your existing installation to the latest version by runningpipinstall-Uakride[cpu]orpipinstall-Uakride[gpu]QuickStartStart using Akride by copying the following code snippet into your Python terminal:fromakrideimportAkriDEClientSAAS_ENDPOINT="https://app.akridata.ai"API_KEY=<your-api-key># API Key Configurationssdk_config_dict={"saas_endpoint":SAAS_ENDPOINT,"api_key":API_KEY,"mode":"saas"}client=AkriDEClient(sdk_config_dict=sdk_config_dict)print(client.get_server_version())DocumentationFor detailed documentation on how to use the akride client and its capabilities, please refer to theofficial SDK documentation.For more information about Akridata's Data Explorer, please refer to theofficial Akridata documentation.ExamplesCheck out theakride-examplesrepository for examples of usingakrideclient to interact with DataExplorerFor more information about AkriData, please visitakridata.ai.
|
akrikola
|
AkrikolaAn early version of a light-weight NLP library for Finnish language.Use caseIn Finnish language the rules for selecting noun cases "in", "from" and "into" for municipality names are complicated. Even Finns have problem selecting the correct case when using a less common municipality name. In Finland there are over 300 municipalities. This library provides correct case endings.Use case explained in Finnish / Käyttötarkoitus suomeksiSuomalaisten kuntien, kaupunkien ja muiden asutusten nimiä taivutetaan siten kuin paikkakunnalla on totuttu taivuttamaan. Tämä kirjasto taivuttaa suomalaisten kuntien nimet sisä- ja ulkopaikallissijoissa sekä partitiivissa ja genetiivissä. Lisäksi kirjastolla voi tunnistaa kuntien nimiä kaikissa mainituissa taivutusmuodoissa.Using AkrikolaTo conjugate municipalities just import Municipality class and create an instance with the name of the municipality.fromakrikolaimportMunicipalitytown=Municipality("Ylivieska")print(town.departure)print(town.destination)print(town.at)Will produce:Ylivieska
Ylivieskaan
YlivieskassaAlso nominative, partitive and genetive forms can be produced:city=Municipality("Kauniainen")print(city.name)print(city.partitive)print(city.genetive)print(city.in_swedish)Will produce:Kauniainen
Kauniaista
Kauniaisten
GrankullaNote that the class will throw KeyError at instance creation if the word is not a name of a municipality.To check if a word is a municipality name in any the six recognized noun cases (plus in swedish):fromakrikolaimportMunicipalityMunicipality.exists("Hattula")# return TrueMunicipality.exists("Hattula")# return FalseAuthortjkempThis project is licensed under the terms of the GNU Lesser General Public License v3.0 (GNU LGPLv3). SeeLICENSE.txtfor more information.
|
akriml
|
No description available on PyPI.
|
akro
|
akroSpaces types for reinforcement learningInstallationpipinstallakro
|
akrocansim
|
akrocansimA CAN bus J1939 controller simulator.Built withpython-canDearPyGUIopenpyxlFeaturesIntegrates with all hardware CAN interfaces supported by python-can.Transmits configured J1939 PGNs to the CAN bus with the following methods:continuous tx of all PGNsall PGNs transmitted once on button pressper PGN transmission, either continuous or on button pressGUI for setting SPN values:sliders for changing continuous valueslabel selection for discrete valuesdirect entry of raw decimal valuesdirect entry of decoded decimal valuesInstallationPython 3.11 (64-bit) or higher is required.pip install akrocansimPrerequisitesA hardware CAN interface supported by python-can,
seehttps://python-can.readthedocs.io/en/v4.3.1/interfaces.html.A version of J1939 Digital Annex (J1939DA) from SAE International, seehttps://www.sae.org/standards/?search=j1939DA.A way to convert.xlsto.xlsxif your copy of the J1939DA is in.xlsformat.Usagepython -m akrocansimUpon initial run, a folder namedakrocansimis created in your home folder hosting a starting configuration file.Follow the instructions on the application and in the configuration file for next steps.Upon successful parsing of the J1939DA, a series of json files are created in theJ1939sub-folder inside the main configuration folder.
These can be inspected to evaluate parsing correctness.The J1939DA PGN and SPN definition format is very irregular and parsing errors still exist.
You can raise a GitHub issue or a pull request if you think that an SPN has not been parsed correctly.IssuesGitHub issue trackerDiscussionsGitHub discussions
|
akrophonobolos
|
AkrophonobolosPython package for handling Ancient Athenian monetary values in
talents, drachmas and obols, including input and output in Greek
acrophonic numerals (such as 𐅎, 𐅍, 𐅌, 𐅋, 𐅊, etc.)Installationpip install akrophonobolosUsageRead the full documentation onRead the DocsAkrophonobolos provides functions for parsing, manipulating, and
formatting Greek acrophonic numerals. It also provides a class,Khremataencapsulating these methods. Interally, the pythonfractionslibrary is used to minimize issues caused by floating
point arithmetic.>>> import akrophonobolos as obol
>>> cash = obol.parse_greek_amount("Τ𐅅ΗΗΗΔ𐅂𐅂𐅂Ι𐅁")
>>> cash
Fraction(81759, 2)
>>> obol.format_amount(cash)
'1t 813d 1½b'
>>> obol.format_amount(cash, obol.Fmt.ENGLISH)
'1 talent, 813 drachmas, 1½ obols'
>>> obol.format_amount(cash, obol.Fmt.GREEK)
'Τ𐅅ΗΗΗΔ𐅂𐅂𐅂Ι𐅁'
>>> obol.format_amount(cash * 2)
'2t 1626d 3b'Using the class:>>> cash1 = obol.Khremata('1t')
>>> cash2 = obol.Khremata('300d 3b')
>>> cash1 + cash2
Khremata (1t 300d 3b [= 37803.0 obols])
>>> cash1 - cash2
Khremata (5699d 3b [= 34197.0 obols])
>>> cash1/cash2
Fraction(12000, 601)There are functions for working with the sort of interest we see in
inscriptions such asIG I³
369.>>> rate = obol.interest_rate("5t", 1, "1d")
>>> rate
Fraction(1, 30000)
>>> obol.loan_term("𐅊", "ΤΤΧ𐅅ΗΗΗΗ𐅄ΔΔ", rate)
1397The first line calculates the rate required for 1 drachma interest on
1 talent in 1 day. The last applies it to the amounts found on line 7
of that inscription for the principal (𐅊, 50 talents) and interest
(ΤΤΧ𐅅ΗΗΗΗ𐅄ΔΔ, 2 talents 1,970 drachmas) to determine that the loan
term was 1,397 days.This package also provides two command lin scripts.obolperforms conversion and simple math:$ obol 𐅉𐅉𐅈 348d "1d 5.5b" 14T1800D4O
𐅉𐅉𐅈 = 25 talents
348d = ΗΗΗΔΔΔΔ𐅃𐅂𐅂𐅂
1d 5.5b = 𐅂ΙΙΙΙΙ𐅁
14T1800D4O = 𐅉ΤΤΤΤΧ𐅅ΗΗΗΙΙΙΙ
$ obol 1t + 1000d
ΤΧ = 1t 1000d
$ obol 1t - 1000d
𐅆 = 5000dlogistesdoes loan calculations:$ logistes -p 50t -d 1397
𐅊 (50t) at 10 drachmas per day for 1397 days = ΤΤΧ𐅅ΗΗΗΗ𐅄ΔΔ (2t 1970d) interest
$ logistes -p 50t -i ΤΤΧ𐅅ΗΗΗΗ𐅄ΔΔ
𐅊 (50t) at 10 drachmas per day for 1397 days = ΤΤΧ𐅅ΗΗΗΗ𐅄ΔΔ (2t 1970d) interest
$ logistes -d 1397 -i ΤΤΧ𐅅ΗΗΗΗ𐅄ΔΔ
𐅊 (50t) at 10 drachmas per day for 1397 days = ΤΤΧ𐅅ΗΗΗΗ𐅄ΔΔ (2t 1970d) interestContributingBug reports and pull requests are welcome on GitHub athttps://github.com/seanredmond/akrophonobolos
|
akr-probability
|
No description available on PyPI.
|
akrule
|
Akrule facilitates rapid and precise predictions, near real-time training and testing, comprehensive feature comprehension, feature debugging, and leakage detection
|
aks
|
This is an akshare-based stock backtesting framework包括10个主要函数func:1.trade_get():获取交易日数据2.get_stock(code,fq):获取股票数据,code股票代码,fq:复权类型3.Stock_range(stock_df,Context,enable_hist_df,td,count):获取一定时间范围内的数据。依次输入,股票数据,用户信息,交易日数据,当天日期,数量4.get_today_data(Context,code):获取今天价格.依次输入,用户信息,股票代码5.order_root(Context,today_price,code,amount,o_or_c):最底层的下单函数。依次输入,用户信息,今天价格,股票代码,交易数量,open_or_close6.order(Context,code,amount,o_or_c):下单函数之一。依次输入,用户信息,股票代码,交易数量,open_or_close7.order_target(Context,code,amount,o_or_c):下单函数之一。依次输入,用户信息,股票代码,交易后的持仓数量,open_or_close8.order_value(Context,code,value,o_or_c):下单函数之一。依次输入,用户信息,股票代码,交易后的持有现金,open_or_close9.order_target_value(Context,code,value,o_or_c):下单函数之一。依次输入,用户信息,股票代码,交易后的持有现金,open_or_close10.order_target_value(Context,code,value,o_or_c):11.run(Context):用户信息,主要回测函数,按天回测12.class Context:存了用户需要的信息13.class G():非常重要,这是一个全局类,用于方便用户在初始化函数和策略函数里随心所欲地定义变量,这些变量都会被存在g的属性里14.使用时需要导入aks.py,获取交易日信息,并新建Init函数记录取票代码等信息。新建handle函数,进行策略部署,然后调用run函数即可。在aks.py最后有一示例代码文件。
|
ak_sap
|
ak_sapPython wrapper for SAP2000.
Generate/Analyze/Extract complex structural models using python.GUI·Getting Started·Layout Documentation·Report Bug/Request FeatureTable of Contents1. About the Project2. Getting Started2.1. Prerequisites2.2. Installation2.2.1. Production2.2.1.1. One line command2.2.1.2. Install directly from repo2.2.1.3. Install from Pypi release2.2.2. Development3. Usage3.1. GUI3.2. Layout Documentation4. Roadmap5. License6. Contact7. Acknowledgements1. About the Project2. Getting Started2.1. PrerequisitesPython 3.11 or aboveSAP2000 v24 or higher2.2. Installation2.2.1. Production2.2.1.1. One line commandPressWin+Rto open the Run consoleType "cmd" and press enterType the following and pressEntercurl -sSL https://links.struct.work/SAP2000 > %USERPROFILE%\Desktop\install.batYou should now have ainstall.batfile in your desktopMove this file to your desired installtion directory and run to install theAK_SAPmodule2.2.1.2. Install directly from repoClone repo and Install with flitgitclonehttps://github.com/rpakishore/ak_sap.gitcdak_sap
pipinstallflit
flitinstall--depsproduction2.2.1.3. Install from Pypi releasepipinstallak_sap2.2.2. DevelopmentDownload the git and install via flitgitclonehttps://github.com/rpakishore/ak_sap.gitcdak_sap
pipinstallflit
flitinstall--pth-file3. UsageInitialize the module as belowfromak_sapimportdebug,Sap2000Wrapperdebug(status=False)#Initializesap=Sap2000Wrapper(attach_to_exist=True)#Attach to existing opened modelsap=Sap2000Wrapper(attach_to_exist=False)#Create new blank model from latest SAP2000## Create blank model from a custom version of SAP2000sap=Sap2000Wrapper(attach_to_exist=False,program_path=r'Path\to\SAP2000.exe')Parent level methods and attributessap.hide()#Hide the SAP2000 windowsap.unhide()#Unhides SAP2000 windowsap.version#Returns SAP2000 version numbersap.api_version#Returns Sap0API version numbersap.save(r'\Path\to\save\file.sdb')3.1. GUIThe repo now supports a streamlit GUI for the wrapper. CheckoutGUI.mdfor instructions.3.2. Layout DocumentationTo see module level usage, check out theLayout.mdorUsage.ipynb4. RoadmapGenerate Load PatternsGenerate Load CasesApply LoadsPointsAreaLineExport joint reactions to Hilti-Profis fileExport Frame/Wall sections to S-Concrete5. LicenseSeeLICENSEfor more information.6. ContactArun Kishore -@rpakishoreProject Link:https://github.com/rpakishore/ak_sap7. AcknowledgementsShields.io
|
aksara
|
SummaryAksara is an Indonesian NLP tool that conforms to theUniversal Dependencies (UD) v2annotation guidelines. Aksara can performfive tasks:Word segmentation (tokenization)LemmatizationPOS taggingMorphological features analysisDependency ParsingThe output is in theCoNLL-U format.InstallationInstallFoma.a. Linuxapt-get install foma-bin.Make sure you have the privilege to install package or usesudo.b. WindowsGet precompiled foma binary fromfoma-zipUnzip the precompiled foma binaryAdd the win32 folder path (from precompiled foma zip) to environment variable PATHc. MacOSbrew install foma[OPTIONAL] It is strongly recommended to use virtual environment (seevenvon how to create Python virtual environment using venv) to avoid dependency conflict.Use the package managerpipto install Aksara library.pip install aksaraUsageYou can use Aksara in command line or python programPython Library UsageAksara can be used as a Python library. See our docs for more information.Command Line UsageExample to process formal Indonesian text:foo@bar:$python3-maksara-s"Pengeluaran baru ini dipasok oleh rekening bank gemuk Clinton."#sent_id=1#text=PengeluaranbaruinidipasokolehrekeningbankgemukClinton.1 Pengeluaran keluar NOUN _ Number=Sing 4 nsubj _ Morf=peN+keluar<VERB>+an_NOUN2 baru baru ADJ _ _ 1 amod _ Morf=baru<ADJ>_ADJ3 ini ini DET _ PronType=Dem 1 det _ Morf=ini<DET>_DET4 dipasok pasok VERB _ Voice=Pass 0 root _ Morf=di+pasok<VERB>_VERB5 oleh oleh ADP _ _ 6 case _ Morf=oleh<ADP>_ADP6 rekening rekening NOUN _ Number=Sing 4 obl _ Morf=rekening<NOUN>_NOUN7 bank bank NOUN _ Number=Sing 6 nmod _ Morf=bank<NOUN>_NOUN8 gemuk gemuk ADJ _ _ 9 amod _ Morf=gemuk<ADJ>_ADJ9 Clinton Clinton PROPN _ _ 6 appos _ Morf=Clinton<PROPN>_PROPN10 . . PUNCT _ _ 4 punct _ Morf=.<PUNCT>_PUNCTExample to process informal Indonesian text:foo@bar:$python3-maksara-s"Sering ngikutin gayanya lg nyanyi."--informal#sent_id=1#text=Seringngikutingayanyalgnyanyi.1 Sering sering ADV _ _ 2 advmod _ Morf=sering<ADV>_ADV2 ngikutin ikut VERB _ Polite=Infm|Voice=Act 0 root _ Morf=NGE+ikut<VERB>+in_VERB3-4 gayanya _ _ _ _ _ _ _ _3 gaya gaya NOUN _ Number=Sing 2 obj _ Morf=gaya<NOUN>_NOUN4 nya nya PRON _ Number=Sing|Person=3|Poss=Yes|PronType=Prs 3 nmod _ Morf=nya<PRON>_PRON5 lg lagi ADV _ Abbr=Yes|Polite=Infm 6 advmod _ Morf=lagi<ADV>_ADV6 nyanyi nyanyi VERB _ Polite=Infm 2 ccomp _ Morf=nyanyi<VERB>_VERB|SpaceAfter=No7 . . PUNCT _ _ 6 punct _ Morf=.<PUNCT>_PUNCTAccepting text file as input and write to file.foo@bar:$python3-maksara-f"input_example.txt"--output"output_example.conllu"--informalProcessing inputs...100%|██████████████████████████████████████████████████| 5/5 [00:32<00:00, 6.45s/it]foo@bar:$DocumentationAksara as a Python LibraryAksara's documentation can be built locally.Clone our repository.Install required dependencies (requirements.txt and doc_requirements.txt).foo@bar: pip install -r requirements.txtfoo@bar: pip install -r doc_requirements.txtRun make.bat in docs folder.foo@bar: cd docsfoo@bar: make htmlThe html version of our documentation will be generated in _docs/build/html folder. Using your favorite browser, open index.html.Command Line UsageUse-s [SENTENCES]or--string [SENTENCES]to analyze a sentence.Use-f [FILE]or--file [FILE]to analyze multiple sentences in a file.Use--output [FILE]to select a file for the output. Otherwise, the output will be displayed in the standard output.Use--lemmaoption to get only the output of lemmatization task.Use--postagoption to get only the output of POS tagging task.Use--informaloption to use the informal word handler.Use--model [MODEL_NAME]option to use which dependency parser machine-learning model. The list below is the name of the model that can be used.FR_GSD-ID_CSUI(default)FR_GSD-ID_GSDIT_ISDT-ID_CSUIIT_ISDT-ID_GSDEN_GUM-ID_CSUIEN_GUM-ID_GSDSL_SSJ-ID_CSUISL_SSJ-ID_GSDPlease use option-hor--helpfor further documentation.AcknowledgmentsAksara conforms to the annotation guidelines for Indonesian dependency treebank proposed by Alfina et al. (2019) and Alfina et al. (2020)Aksara v1.0 was built by M. Yudistira Hanifmuti and Ika Alfina, as the reseach project for Yudistira's undergraduate thesis at Faculty of Computer Science, Universitas Indonesia in 2020.Aksara v1.1 was built by Muhammad Ridho Ananda and Ika Alfina, as the research project for Ridho's undergraduate thesis at Faculty of Computer Science, Universitas Indonesia in 2021. Aksara v1.1 uses a hybrid POS tagger method of Aksara and Hidden Markov Model (HMM) to do disambiguation.Aksara v1.2 was built by I Made Krisna Dwitama, Muhammad Salman Al Farisi, Ika Alfina, and Arawinda Dinakaramani as the research project for Krisna and Salman undergraduate thesis at Faculty of Computer Science, Universitas Indonesia in 2022. Aksara v1.2 improve the ability of the morphological analyzer in Aksara in order to be able to process informal Indonesian text.Aksara v1.3 was built by Andhika Yusup Maulana, Ika Alfina, and Kurniawati Azizah as the research project for Maulana's undergraduate thesis at the Faculty of Computer Science, Universitas Indonesia, in August 2022. Aksara v1.3 introduces a machine-learning-based dependency parser to fill the 7-8th column that previously left empty.ReferencesAndhika Yusup Maulana, Ika Alfina, and Kurniawati Azizah."Building Indonesian Dependency Parser Using Cross-lingual Transfer Learning". In Proceeding of the 2022 International Conference of Asian Language Processing (IALP).I Made Krisna Dwitama, Muhammad Salman Al Farisi, Ika Alfina, dan Arawinda Dinakaramani."Building Morphological Analyzer for Informal Text in Indonesian". In Proceeding of the ICACSIS 2022 (online).M. Ridho Ananda, M. Yudistira Hanifmuti, and Ika Alfina."A Hybrid of Rule-based and HMM-based POS Taggers for Indonesian". In Proceeding of the 2021 International Conference of Asian Language Processing (IALP)M. Yudistira Hanifmuti and Ika Alfina."Aksara: An Indonesian Morphological Analyzer that Conforms to the UD v2 Annotation Guidelines". In Proceeding of the 2020 International Conference of Asian Language Processing (IALP) in Kuala Lumpur, Malaysia, 4-6 Desember 2020.Ika Alfina, Daniel Zeman, Arawinda Dinakaramani, Indra Budi, and Heru Suhartanto."Selecting the UD v2 Morphological Features for Indonesian Dependency Treebank". In Proceeding of the 2020 International Conference of Asian Language Processing (IALP) in Kuala Lumpur, Malaysia, 4-6 Desember 2020.Ika Alfina, Arawinda Dinakaramani, Mohamad Ivan Fanany, and Heru Suhartanto."A Gold Standard Dependency Treebank for Indonesian". In Proceeding of 33rd Pacific Asia Conference on Language, Information and Computation (PACLIC) 2019 in Hakodate, Japan, 13-15 September 2019.Changelog2022-10-21 v1.3added new flag--model [MODEL_NAME]added dependency parserintegrated existing flow with dependency parsing task2022-08-30 v1.2added informal lexicon, morphotactic rules, and morphophonemic rulesadded feature Polite=Infmfixed bugs2021-08-07 v1.1added the disambiguation for POS tag, lemma, and morphological featuresupdated lexiconremoved features: Subcat, NumForm, AdpType, VerbTypeadded feature NumTyperemoved feature values: Degree=Posfixed bugs2020-10-27 v1.0Initial release.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Contactika.alfina [at] cs.ui.ac.id
|
aksascii
|
This is a light image processing library which can be used to convert images to ascii art.
The code base is implemeted and maintained by Akshay Kumar Singh.Procedure:pip3 install aksasciiimport aksasciifrom aksascii import ascii_convertYou are good to go.Change Log0.0.1 (30/06/2021)First Release
|
aks-ascii
|
This is a light image processing library which can be used to convert images to ascii art.
The code base is implemeted and maintained by Akshay Kumar Singh.Procedure:pip3 install aks_asciiimport aks_asciiYou are good to go.Change Log0.0.1 (30/06/2021)First Release
|
akscacl
|
This a simple calculator developed by akshay.Change Log1.1.1 (29/06/2021)First Release
|
akscalc
|
This a simple calculator developed by akshay.Change Log1.1.1 (29/06/2021)First Release
|
aks-calc
|
This a simple calculator developed by akshay.Change Log1.1.1 (29/06/2021)First Release
|
aksdfa
|
No description available on PyPI.
|
ak-s-distributions
|
No description available on PyPI.
|
aksdp
|
aksdpOverviewA simple framework for writing data pipelines in PythonINSTALL$pipinstallaksdpQuickStartclassTaskA(Task):defmain(self,ds):returndsclassTaskB(Task):...classTaskC(Task):...classTaskD(Task):...graph=Graph()task_a=graph.append(TaskA())task_b=graph.append(TaskB(),[task_a])task_c=graph.append(TaskC(),[task_b])task_d=graph.append(TaskD(),[task_b,task_c])graph.run()Each task runs after each dependent task completes.Also, the data output upstream can be received as input data and processed.
|
ak_selenium
|
ak_seleniumSelenium package with requests integration and anti-bot detection measuresDocumentation·Report Bug·Request FeatureTable of Contents1. About the Project1.1. Features2. Getting Started2.1. Installation2.1.1. Production2.1.2. Development3. Usage3.1. Additional Options4. Roadmap5. License6. Contact7. Acknowledgements1. About the Projectak_seleniumis a Python package that provides an interface for automating browser tasks using Selenium. It comes with built-in functionalities for handling common tasks such as form filling, scrolling, and waiting for elements to load. Additionally, it has a built-in requests session that handles retries and timeouts, making it easier to send HTTP requests.1.1. FeaturesChrome browser automation using Selenium WebDriver.Built-in methods for form filling, scrolling, and waiting for elements.Anti-bot detection measuresPass selenium headers/cookies to requests libraryBuilt-in requests session with retries and timeouts.Ability to use Chrome user data for browser automation.RAM optimization for browser options.IntegratesHeliumfor easier automation2. Getting Started2.1. Installation2.1.1. ProductionInstall with flitpipinstallflit
flitinstall--depsproductionAlternatively, you can use pippipinstallak_selenium2.1.2. DevelopmentInstall with flitflitinstall--pth-file3. Usagefromak_seleniumimportChrome,By,Keyschrome=Chrome(headless=True)# Create a new Chrome browser instancedriver=chrome.driver#Get Chromedriverchrome.get("https://example.com")# Navigate to a webpage#Wait for element to loadlocator=(By.TAG_NAME,"h1")chrome.wait_for_locator(locator)s=chrome.session# Pass selenium session to requestss.get("https://www.iana.org/domains/reserved")# Get a website# Get a list of websites## Will randomize requests to not trigger bot detections.bulk_get(["https://www.iana.org/domains/reserved","https://www.example.com"])Integrated withHeliumto make it easier to set up automation.Helium methods and functions can be used as intended in theoriginal documentationExample:importheliumhelium.wait_until(helium.Button('Download').exists)Alternatively, helium methods and classes have been collected into two classesElementandActionfor convinienceElementexposes the following classes:Alert,Button,CheckBox,ComboBox,Image,Link,ListItem,RadioButton,Text,TextFieldand the methodfind_allActionexposes the following methods:highlight,wait_until,refresh,attach_file,drag_file,combobox_select,hover,write.Actionalso incorporates aMousesub-class that collect mouse-related methods.Example:fromak_seleniumimportElement,Action,Keysimportheliumchrome.get('https://google.com')#Go to websiteAction.write('helium selenium github')#Enter text into text fieldhelium.press(Keys.ENTER)#Press EnterAction.Mouse.click('mherrmann/helium')#Clickchrome.get('https://github.com/login')#Goto githubAction.write('username',into='Username')#Enter Username into Username fieldAction.write('password',into='Password')#Enter Password into Password fieldAction.Mouse.click('Sign in')#Click Sign-inAction.Mouse.scroll(direction='down',num_pixels=100)#Scroll down 100pxhelium.kill_browser()#Close the browser3.1. Additional Options# Selenium Overrides## Overide default useragentchrome.USERAGENT='Mozilla/5.0 (Windows NT 10.0; Win64; x64)\AppleWebKit/537.36 (KHTML, like Gecko)\Chrome/83.0.4103.53 Safari/537.36'## Override implicit and max wait times for seleniumchrome.IMPLICITLY_WAIT_TIME=3#secondschrome.MAX_WAIT_TIME=5#seconds# Requests.Session Overrides.MIN_REQUEST_GAP=0.9#seconds between requests4. RoadmapAdd beautifulsoup integrationProxy5. LicenseSee LICENSE for more information.6. ContactArun Kishore -@rpakishoreProject Link:https://github.com/rpakishore/ak_selenium7. AcknowledgementsAwesome README TemplateShields.ioHelium
|
akshara
|
AksharaHelps you spell!Akshara is a tool for all your spelling needs. The package offers functions to:Spell any given word (or any string) in Devanagari script.Construct a word from a given spelling.Count the number of svaras in a string.Count the number of sentences in a string.InstallationLatest version of akshara can be directly installed from PyPI usingpip3installaksharaUsageLoad the varnakaarya moduleimportakshara.varnakaaryaasvkObtain spelling (vinyaasa) of a worda=vk.get_vinyaasa("राम")# a = ['र्', 'आ', 'म्', 'अ']b=vk.get_vinyaasa("गमॢँ")# b = ['ग्', 'अ', 'म्', 'ऌँ']c=vk.get_vinyaasa("स पठति ।")# c = ['स्', 'अ', ' ', 'प्', 'अ', 'ठ्', 'अ', 'त्', 'इ', ' ', '।']Create a word (shabda) from a given vinyaasad=vk.get_shabda(['स्','अ','ं','स्','क्','ऋ','त्','अ','म्'])# d = 'संस्कृतम्'e=vk.get_shabda(['श्','इ','व्','अ','ः'])# e = 'शिवः'f=vk.get_shabda(['द्','ए','व्','अ','द्','अ','त्','त्','अ३'])# f = देवदत्त३Count svaras, vyanjanas, ayogavaahas and vaakyasg="बुद्धं शरणं गच्छामि । धर्मं शरणं गच्छामि । सङ्घं शरणं गच्छामि ॥"num_svaras=vk.count_svaras(g)# num_svaras = 24num_vyanjanas=vk.count_vyanjanas(g)# num_vyanjanas = 30num_ayogavaahas=vk.count_ayogavaahas(g)# num_ayogavaahas = 6num_varnas=vk.count_varnas(g)# num_varnas = 60num_vaakyas=vk.count_vaakyas(g)# num_vaakyas = 3
|
aksharamukha
|
Aksharamukha Python PackageAksharamukha aims to provide transliteration a.k.a script conversion between various scripts within the Indic cultural sphere. These include historic scripts, contemporary Brahmi-derived/inspired scripts, scripts invented for minority Indian languages, scripts that have co-existed with Indic scripts (like Avestan) or linguistically related scripts like Old Persian. It also specifically provides lossless transliteration between the main Indian scripts (along with Sinhala).Apart from the simple mapping of characters, Askharamukha also attempts to implement various script/language-specific orthographic conventions (where known) such as vowel lengths, gemination and nasalization. It also provides several customization options to fine-tune and get the desired orthography.Aksharamukha as of now supports 120 scripts and 21 romanization methods. The scripts supported are:Ahom, Arabic, Ariyaka, Assamese, Avestan, Balinese, Batak Karo, Batak Mandailing, Batak Pakpak, Batak Simalungun, Batak Toba, Bengali (Bangla), Bhaiksuki, Brahmi, Buginese (Lontara), Buhid, Burmese (Myanmar), Chakma, Cham, Cyrillic (Russian), Devanagari, Dogra, Elymaic, Ethiopic (Abjad), Gondi (Gunjala), Gondi (Masaram), Grantha, Grantha (Pandya), Gujarati, Hanunoo, Hatran, Hebrew, Hebrew (Judeo-Arabic), Imperial Aramaic, Inscriptional Pahlavi, Inscriptional Parthian, Japanese (Hiragana), Japanese (Katakana), Javanese, Kaithi, Kannada, Kawi, Khamti Shan, Kharoshthi, Khmer (Cambodian), Khojki, Khom Thai, Khudawadi, Lao, Lao (Pali), Lepcha, Limbu, Mahajani, Makasar, Malayalam, Manichaean, Marchen, Meetei Mayek (Manipuri), Modi, Mon, Mongolian (Ali Gali), Mro, Multani, Nabataean, Nandinagari, Newa (Nepal Bhasa), Old North Arabian, Old Persian, Old Sogdian, Old South Arabian, Oriya (Odia), Pallava, Palmyrene, Persian, PhagsPa, Phoenician, Psalter Pahlavi, Punjabi (Gurmukhi), Ranjana (Lantsa), Rejang, Rohingya (Hanifi), Roman (IPA Indic), Samaritan, Santali (Ol Chiki), Saurashtra, Shahmukhi, Shan, Sharada, Siddham, Sinhala, Sogdian, Sora Sompeng, Soyombo, Sundanese, Syloti Nagari, Syriac (Eastern), Syriac (Estrangela), Syriac (Western), Tagalog, Tagbanwa, Tai Laing, Takri, Tamil, Tamil (Extended), Tamil Brahmi, Telugu, Thaana (Dhivehi), Thai, Tham (Lanna), Tham (Lao), Tham (Tai Khuen), Tham (Tai Lue), Tibetan, Tirhuta (Maithili), Ugaritic, Urdu, Vatteluttu, Wancho, Warang Citi, Zanabazar SquareThe Indic Romanization Formats supported are:Harvard-Kyoto, ITRANS, Velthuis, IAST, IAST (Pāḷi), ISO, ISO (Pāḷi), Titus, SLP1, WX, Roman (Readable), Roman (Colloquial). The Semitic Romanization Formats supported are:Semitic (Aksharamukha), Semitic Typeable (Aksharamukha), ISO 259 Hebrew, SBL Hebrew, ISO 233 Arabic, DMG PersianUsage and ExamplesPlease usepip aksharamukhato install the Python package.Please find the usage instructions and relevant documentationhere.Online VersionThe package as an online tool with a pretty web interface is availablehere.ContactIf you have any questions please head toGithubor [email protected]
|
aksharamukha-docx
|
Aksharamukha Python PackageAksharamukha aims to provide transliteration a.k.a script conversion between various scripts within the Indic cultural sphere. These include historic scripts, contemporary Brahmi-derived/inspired scripts, scripts invented for minority Indian languages, scripts that have co-existed with Indic scripts (like Avestan) or linguistically related scripts like Old Persian. It also specifically provides lossless transliteration between the main Indian scripts (along with Sinhala).Apart from the simple mapping of characters, Askharamukha also attempts to implement various script/language-specific orthographic conventions (where known) such as vowel lengths, gemination and nasalization. It also provides several customization options to fine-tune and get the desired orthography.Aksharamukha as of now supports 120 scripts and 21 romanization methods. The scripts supported are:Ahom, Arabic, Ariyaka, Assamese, Avestan, Balinese, Batak Karo, Batak Mandailing, Batak Pakpak, Batak Simalungun, Batak Toba, Bengali (Bangla), Bhaiksuki, Brahmi, Buginese (Lontara), Buhid, Burmese (Myanmar), Chakma, Cham, Cyrillic (Russian), Devanagari, Dogra, Elymaic, Ethiopic (Abjad), Gondi (Gunjala), Gondi (Masaram), Grantha, Grantha (Pandya), Gujarati, Hanunoo, Hatran, Hebrew, Hebrew (Judeo-Arabic), Imperial Aramaic, Inscriptional Pahlavi, Inscriptional Parthian, Japanese (Hiragana), Japanese (Katakana), Javanese, Kaithi, Kannada, Kawi, Khamti Shan, Kharoshthi, Khmer (Cambodian), Khojki, Khom Thai, Khudawadi, Lao, Lao (Pali), Lepcha, Limbu, Mahajani, Makasar, Malayalam, Manichaean, Marchen, Meetei Mayek (Manipuri), Modi, Mon, Mongolian (Ali Gali), Mro, Multani, Nabataean, Nandinagari, Newa (Nepal Bhasa), Old North Arabian, Old Persian, Old Sogdian, Old South Arabian, Oriya (Odia), Pallava, Palmyrene, Persian, PhagsPa, Phoenician, Psalter Pahlavi, Punjabi (Gurmukhi), Ranjana (Lantsa), Rejang, Rohingya (Hanifi), Roman (IPA Indic), Samaritan, Santali (Ol Chiki), Saurashtra, Shahmukhi, Shan, Sharada, Siddham, Sinhala, Sogdian, Sora Sompeng, Soyombo, Sundanese, Syloti Nagari, Syriac (Eastern), Syriac (Estrangela), Syriac (Western), Tagalog, Tagbanwa, Tai Laing, Takri, Tamil, Tamil (Extended), Tamil Brahmi, Telugu, Thaana (Dhivehi), Thai, Tham (Lanna), Tham (Lao), Tham (Tai Khuen), Tham (Tai Lue), Tibetan, Tirhuta (Maithili), Ugaritic, Urdu, Vatteluttu, Wancho, Warang Citi, Zanabazar SquareThe Indic Romanization Formats supported are:Harvard-Kyoto, ITRANS, Velthuis, IAST, IAST (Pāḷi), ISO, ISO (Pāḷi), Titus, SLP1, WX, Roman (Readable), Roman (Colloquial). The Semitic Romanization Formats supported are:Semitic (Aksharamukha), Semitic Typeable (Aksharamukha), ISO 259 Hebrew, SBL Hebrew, ISO 233 Arabic, DMG PersianUsage and ExamplesPlease usepip aksharamukhato install the Python package.Please find the usage instructions and relevant documentationhere.Online VersionThe package as an online tool with a pretty web interface is availablehere.ContactIf you have any questions please head toGithubor [email protected]
|
akshare
|
AKShare VIP 交流群欢迎大家的加入,加群方式请点击【加群】相关视频教程已经发布:《AKShare-初阶-使用教学》、《AKShare-初阶-实战应用》、《AKShare-源码解析》、《开源项目巡礼》,详情请访问课程查看更多课程信息!AKQuant 量化教程请访问:利用 PyBroker 进行量化投资本次发布AKTools作为 AKShare 的 HTTP API 版本,突破 Python 语言的限制,欢迎各位小伙伴试用并提出更好的意见或建议! 点击AKTools查看使用指南。另外提供awesome-data方便各位小伙伴查询各种数据源。OverviewAKSharerequires Python(64 bit) 3.8 or greater, aims to make fetch financial data as convenient as possible.Write less, get more!Documentation:中文文档InstallationGeneralpipinstallakshare--upgradeChinapipinstallakshare-ihttp://mirrors.aliyun.com/pypi/simple/--trusted-host=mirrors.aliyun.com--upgradePRPlease check outdocumentationif you want to contribute to AKShareDockerPull imagesdockerpullregistry.cn-shanghai.aliyuncs.com/akfamily/aktools:jupyterRun Containerdockerrun-itregistry.cn-shanghai.aliyuncs.com/akfamily/aktools:jupyterpythonTestimportakshareasakprint(ak.__version__)UsageDataCodeimportakshareasakstock_zh_a_hist_df=ak.stock_zh_a_hist(symbol="000001",period="daily",start_date="20170301",end_date='20231022',adjust="")print(stock_zh_a_hist_df)Output日期 开盘 收盘 最高 ... 振幅 涨跌幅 涨跌额 换手率
0 2017-03-01 9.49 9.49 9.55 ... 0.84 0.11 0.01 0.21
1 2017-03-02 9.51 9.43 9.54 ... 1.26 -0.63 -0.06 0.24
2 2017-03-03 9.41 9.40 9.43 ... 0.74 -0.32 -0.03 0.20
3 2017-03-06 9.40 9.45 9.46 ... 0.74 0.53 0.05 0.24
4 2017-03-07 9.44 9.45 9.46 ... 0.63 0.00 0.00 0.17
... ... ... ... ... ... ... ... ...
1610 2023-10-16 11.00 11.01 11.03 ... 0.73 0.09 0.01 0.26
1611 2023-10-17 11.01 11.02 11.05 ... 0.82 0.09 0.01 0.25
1612 2023-10-18 10.99 10.95 11.02 ... 1.00 -0.64 -0.07 0.34
1613 2023-10-19 10.91 10.60 10.92 ... 3.01 -3.20 -0.35 0.61
1614 2023-10-20 10.55 10.60 10.67 ... 1.51 0.00 0.00 0.27
[1615 rows x 11 columns]PlotCodeimportakshareasakimportmplfinanceasmpf# Please install mplfinance as follows: pip install mplfinancestock_us_daily_df=ak.stock_us_daily(symbol="AAPL",adjust="qfq")stock_us_daily_df=stock_us_daily_df[["open","high","low","close","volume"]]stock_us_daily_df.columns=["Open","High","Low","Close","Volume"]stock_us_daily_df.index.name="Date"stock_us_daily_df=stock_us_daily_df["2020-04-01":"2020-04-29"]mpf.plot(stock_us_daily_df,type='candle',mav=(3,6,9),volume=True,show_nontrading=False)OutputCommunicationPay attention to数据科学实战Official Accounts to get more information about Quant, ML, DS and so on, please visit数据科学实战for more information:Pay attention to数据科学实战WeChat Official Accounts to get theAKShareupdated info:Application to addAKShare-VIP QQ groupand talk aboutAKShareissues, please contactAKShare-小助手 QQ: 1254836886FeaturesEasy of use: Just one line code to fetch the data;Extensible: Easy to customize your own code with other application;Powerful: Python ecosystem.TutorialsOverviewInstallationTutorialData DictSubjectsContributionAKShareis still under developing, feel free to open issues and pull requests:Report or fix bugsRequire or publish interfaceWrite or fix documentationAdd test casesNotice: We useBlackto format the codeStatementAll data provided byAKShareis just for academic research purpose;The data provided byAKShareis for reference only and does not constitute any investment proposal;Any investor based onAKShareresearch should pay more attention to data risk;AKSharewill insist on providing open-source financial data;Based on some uncontrollable factors, some data interfaces inAKSharemay be removed;Please follow the relevant open-source protocol used byAKShare;Provide HTTP API for the person who uses other program language:AKTools.Show your styleUse the badge in your project's README.md:[](https://github.com/akfamily/akshare)Using the badge in README.rst:.. image:: https://img.shields.io/badge/Data%20Science-AKShare-green
:target: https://github.com/akfamily/akshareLooks like this:CitationPlease use thisbibtexif you want to cite this repository in your publications:@misc{akshare,
author = {Albert King},
title = {AKShare},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/akfamily/akshare}},
}AcknowledgementSpecial thanksFuSharefor the opportunity of learning from the project;Special thanksTuSharefor the opportunity of learning from the project;Thanks for the data provided by生意社网站;Thanks for the data provided by奇货可查网站;Thanks for the data provided by中国银行间市场交易商协会网站;Thanks for the data provided by99期货网站;Thanks for the data provided by英为财情网站;Thanks for the data provided by中国外汇交易中心暨全国银行间同业拆借中心网站;Thanks for the data provided by金十数据网站;Thanks for the data provided by和讯财经网站;Thanks for the data provided by新浪财经网站;Thanks for the data provided byOxford-Man Institute 网站;Thanks for the data provided byDACHENG-XIU 网站;Thanks for the data provided by上海证券交易所网站;Thanks for the data provided by深证证券交易所网站;Thanks for the data provided by北京证券交易所网站;Thanks for the data provided by中国金融期货交易所网站;Thanks for the data provided by上海期货交易所网站;Thanks for the data provided by大连商品交易所网站;Thanks for the data provided by郑州商品交易所网站;Thanks for the data provided by上海国际能源交易中心网站;Thanks for the data provided byTimeanddate 网站;Thanks for the data provided by河北省空气质量预报信息发布系统网站;Thanks for the data provided by南华期货网站;Thanks for the data provided byEconomic Policy Uncertainty 网站;Thanks for the data provided by微博指数网站;Thanks for the data provided by百度指数网站;Thanks for the data provided by谷歌指数网站;Thanks for the data provided by申万指数网站;Thanks for the data provided by真气网网站;Thanks for the data provided by财富网站;Thanks for the data provided by中国证券投资基金业协会网站;Thanks for the data provided byExpatistan 网站;Thanks for the data provided by北京市碳排放权电子交易平台网站;Thanks for the data provided by国家金融与发展实验室网站;Thanks for the data provided byIT桔子网站;Thanks for the data provided by东方财富网站;Thanks for the data provided by义乌小商品指数网站;Thanks for the data provided by中国国家发展和改革委员会网站;Thanks for the data provided by163网站;Thanks for the data provided by丁香园网站;Thanks for the data provided by百度新型肺炎网站;Thanks for the data provided by百度迁徙网站;Thanks for the data provided by新型肺炎-相同行程查询工具网站;Thanks for the data provided by新型肺炎-小区查询网站;Thanks for the data provided by商业特许经营信息管理网站;Thanks for the data provided by慈善中国网站;Thanks for the data provided by思知网站;Thanks for the data provided byCurrencyscoop 网站;Thanks for the data provided by新加坡交易所网站;Thanks for the tutorials provided by微信公众号: Python大咖谈.Backer and Sponsor
|
aksharify
|
AksharifyAbout The ModuleAksharify is an open-source python package hosted on GitHub that allows you to effortlessly transform images into captivating ASCII art representations. With Aksharify, you can convert your favorite images into an artistic arrangement of ASCII characters, adding a unique and nostalgic touch to your projects.Start transforming your photos into captivating ASCII art with Aksharify and unleash your creativity in the world of visual representation!Key FeaturesConvert photos and images into ASCII art with a single function call.Fine-tune the output by adjusting parameters such as character set, resolution etc.Support for various character sets, allowing you to customize the style of the generated ASCII art.Export the ASCII art as plain text or save it as an image file for easy sharing and integration.What is AsciiArtASCII art is a style of art in which people make graphics and designs by using letters, numbers, and symbols from a unique set of characters known as ASCII. ASCII painters create intriguing images by arranging these characters in patterns and forms rather than using colours and brushes as in traditional art. They meticulously select the appropriate characters and combine them to produce images of animals, people, or even landscapes. It's almost as if you're sketching with letters and symbols! ASCII art is a fun way for artists to express themselves using only the basic characters present on a computer keyboard.MotivationThe inspiration for this module came from a Numberphile video called "The Trinity Hall Prime," which I first saw in high school days. It motivated me to explore the possibilities of such a prime number. I created a Python module that uses a predetermined character set to turn photos into ASCII art. It manipulates images using the PIL package, transforming them to grayscale before mapping pixel values to ASCII letters. Users can change the character set to get different effects.Getting StartedBefore we begin, make sure you have one of recent versions of Python installed on your computer.Installationpython-mpipinstallaksharifyUsagefromaksharifyimportAksharArtfromaksharify.imageimportImagefromaksharify.distributionsimportLinearfromaksharify.outputsimportSVGimage=Image("images\julia1.png")image.set_dim(200)image.show()lin=Linear("01")lin.show()art=AksharArt(image,lin)art.aksharify(show=True)config=SVG()config.file_name="art"config.bold=Trueart.export(config)For examples from user community, please refer to theprimepatel.github.io/aksharifyRoadmapNumberiFyPredifined order of charactersGetting images from URLEmojiFySee theopen issuesfor a full list of proposed features (and known issues).ContributingContributions are what make the open source community such a wonderful place to learn, be inspired, and create. Any contributions you make areappreciated greatly.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.ContactPrime Patel -@[email protected] Link:https://github.com/primepatel/aksharify(back to top)
|
akshat
|
UNKNOWN
|
akshatbuffed
|
No description available on PyPI.
|
akshatbuffednew
|
No description available on PyPI.
|
akshat-nbdev-test
|
Project name hereSummary description here.This file will become your README and also the index of your documentation.Installpip install your_project_nameHow to useFill me in please! Don't forget code examples:1+12
|
akshat-preprocessing
|
No description available on PyPI.
|
akshay_choche_nester
|
UNKNOWN
|
akshay-demo-pip
|
Enter Description of the project
|
akshay-helloworld
|
Installationpip install akshay-helloworldUsagefromakshay_helloworldimport*hello_world()#prints "Hello World from Akshay!!"hello_world("User")#prints "Hello User!!"
|
akshay-jay
|
Tutorialhttps://packaging.python.org/en/latest/tutorials/packaging-projects/=========
BlessingsCoding with Blessings looks like this... ::from blessings import Terminal
t = Terminal()
print t.bold('Hi there!')
print t.bold_red_on_bright_green('It hurts my eyes!')
with t.location(0, t.height - 1):
print 'This is at the bottom.'Or, for byte-level control, you can drop down and play with raw terminal
capabilities::print '{t.bold}All your {t.red}bold and red base{t.normal}'.format(t=t)
print t.wingo(2)Full API Reference <https://blessings.readthedocs.io/>_The PitchBlessings lifts several of curses_' limiting assumptions, and it makes your
code pretty, too:Use styles, color, and maybe a little positioning without necessarily
clearing the whole
screen first.Leave more than one screenful of scrollback in the buffer after your program
exits, like a well-behaved command-line app should.Get rid of all those noisy, C-like calls totigetstrandtparm, so
your code doesn't get crowded out by terminal bookkeeping.Act intelligently when somebody redirects your output to a file, omitting the
terminal control codes the user doesn't want to see (optional)... _curses:http://docs.python.org/library/curses.htmlBefore And AfterWithout Blessings, this is how you'd print some underlined text at the bottom
of the screen::from curses import tigetstr, setupterm, tparm
from fcntl import ioctl
from os import isatty
import struct
import sys
from termios import TIOCGWINSZ
# If we want to tolerate having our output piped to other commands or
# files without crashing, we need to do all this branching:
if hasattr(sys.stdout, 'fileno') and isatty(sys.stdout.fileno()):
setupterm()
sc = tigetstr('sc')
cup = tigetstr('cup')
rc = tigetstr('rc')
underline = tigetstr('smul')
normal = tigetstr('sgr0')
else:
sc = cup = rc = underline = normal = ''
print sc # Save cursor position.
if cup:
# tigetnum('lines') doesn't always update promptly, hence this:
height = struct.unpack('hhhh', ioctl(0, TIOCGWINSZ, '\000' * 8))[0]
print tparm(cup, height - 1, 0) # Move cursor to bottom.
print 'This is {under}underlined{normal}!'.format(under=underline,
normal=normal)
print rc # Restore cursor position.That was long and full of incomprehensible trash! Let's try it again, this time
with Blessings::from blessings import Terminal
term = Terminal()
with term.location(0, term.height - 1):
print 'This is', term.underline('pretty!')Much better.What It ProvidesBlessings provides just one top-level object:Terminal. Instantiating aTerminalfigures out whether you're on a terminal at all and, if so, does
any necessary terminal setup. After that, you can proceed to ask it all sorts
of things about the terminal. Terminal terminal terminal.print 'All your {t.red}base {t.underline}are belong to us{t.normal}'.format(t=term)Simple capabilities of interest include...boldreverseunderlineno_underline(which turns off underlining)blinknormal(which turns off everything, even colors)
|
akshay-liberary
|
No description available on PyPI.
|
akshaypawar-tut
|
Failed to fetch description. HTTP Status Code: 404
|
aksh-distributions
|
No description available on PyPI.
|
akshell
|
UNKNOWN
|
aks-helloworld
|
Hello World PackageBlah BlahUsagefrom helloworld import say_hello
# Generate "Hello, World!"
say_hello()
# Generate "Hello, Tokyo!"
say_hello('Tokyo')
|
akshey-dsnd-probability
|
No description available on PyPI.
|
akshita-distributions-2306
|
No description available on PyPI.
|
akshitkhatkarMissingValues
|
No description available on PyPI.
|
akshitkhatkarOutliers
|
No description available on PyPI.
|
akshitkhatkarTopsis
|
No description available on PyPI.
|
ak-simulator
|
Failed to fetch description. HTTP Status Code: 404
|
ak-sm-recorder
|
AKFruitData: AK_SM_RECORDER - Azure Kinect SM RecorderA simple GUI recorder based on Python to manage Azure Kinect camera devices in a standalone mode. Visit the project site
athttps://pypi.org/project/ak-sm-recorder/ContentsPre-requisites.Functionalities.Install and run.Files and folder description.Development tools, environment, build executables.1. Pre-requisitesAzure Kinect DK camera connected to the computer. Specifications can be seen in
themanufacturer site.SDK Azure Kinectinstalled.pyk4a libraryinstalled. If the operating system is Windows, follow
thissteps. You can find test basic examples with
pyk4ahere.In Ubuntu 20.04, we provide a script to install the camera drivers following the instructions
inazure_kinect_notes.2. FunctionalitiesThe functionalities of the software are briefly described. Supplementary material can be found
inUSER's Manual.[Show real time]Display images of the device in real time. Used to see where the camera is pointing.[Start record]Start a video recording.[Stop record]Stops a video recording in progress.[Take screenshots]Take screenshots and save them in Matroska format as short videos.[Take 3D point cloud capture]Take the captures as 3D point cloud data and save them in .XYZ format.[Save config]Enables to the user to configure Azure Kinect devices parameters.Videos and 3D cloud points can be retrieved from"RECORDER_VIDEOS/"folder.3. Install and run3.1 PIP quick install packageCreate your Python virtual environment.python3 -m venv ./ak_sm_recorder_venv
source ./ak_sm_recorder_venv/bin/activate
pip install --upgrade pip
# on Windows systems
.\ak_frame_extractor_venv\Scripts\activate
python.exe -m pip install --upgrade pip
pip install ak-sm-recorder
python -m ak_sm_recorder3.2 Install and run virtual environments using scripts provided[Linux]
Enter to the folder"ak_sm_recorder/"Create virtual environment(only first time)./creating_env_ak_sm_recorder.shRun script../ak_sm_recorder_start.sh[Windows]
Enter to the folder "ak_sm_recorder/"Create virtual environment(only first time)TODO_HERERun script from CMD../ak_sm_recorder_start.bat4. Files and folder descriptionFolder description:FoldersDescriptiondocs/Documentationsrc/Source codewin_exe_conf/Specifications for building .exe files withPyinstaller...Files description:FilesDescriptionOSactivate.batActivate environments in WindowsWINclean_files.batClean files under CMD.WINak_sm_recorder_main.batExecuting main scriptWINbuild_pip.batBuild PIP package for distributionWINbuild_win.batBuild .EXE for distributionWINcreating_env_ak_sm_recorder.shAutomatically creates Python environmentsLinuxak_sm_recorder_start.shExecuting main scriptLinux/src/ak_sm_recorder/main.pyMain function used in package compilationSupported by Python/ak_sm_recorder_main.pyPython main functionSupported by Pythonsetup.cfgPackage configuration PIPSupported by Pythonpyproject.tomlPackage description pipSupported by Python5. Development tools, environment, build executablesSome development tools are needed with this package, listed below:Pyinstaller.Opencv.Curses for Pythonpip install windows-curses.7zip.5.1 Notes for developersYou can use themain.py for execute as first time in src/ak_sm_recorder/_ _ main _ _.py Configure the path of the
project, if you use Pycharm, put your folder root like this:(docs/img/ak_sm_recorded_presentation.png)5.2 Creating virtual environment Linuxpython3 -m venv ./venv
source ./venv/bin/activate
pip install --upgrade pip
pip install -r requirements_linux.txt5.3 Creating virtual environment Windows%userprofile%"\AppData\Local\Programs\Python\Python38\python.exe" -m venv ./venv
venv\Scripts\activate.bat
pip install --upgrade pip
pip install -r requirements_windows.txt** If there are some problems in Windows, followthis**pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"5.4 Building PIP packageWe are working to offer Pypi support for this package. At this time this software can be built by scripts automatically.5.4.1 Build packagespy -m pip install --upgrade build
build_pip.bat5.4.2 Download PIP packagepip install ak_sm_recorder-1.0-py3-none-any.whl5.4.3 Run ak_sm_recorderpython -m ak_sm_recorder.py5.4 Building .EXE for Windows 10build_win.batAfter the execution of the script, a new folder will be generated inside the project"/dist". You can copy **
ak_sm_recorder_f/** or a compressed file"ak_sm_recorder_f.zip"to distribute.5.6 Package distribution formatExplain about packages distribution.Package typePackageUrlDescriptionWindows.EXE.EXEExecutables are stored under build/Linux.deb.debNOT IMPLEMENTED YETPIP.whl.whlPIP packages are stored in build/AuthorshipThis project is contributed byGRAP-UdL-AT. Please contact authors to report
[email protected] you find this code useful, please consider citing:GRAP-UdL-AT/ak_sm_recorder.AcknowledgementsThis work is a result of the RTI2018-094222-B-I00 project(PAgFRUIT)granted by MCIN/AEI and by the European Regional
Development Fund (ERDF). This work was also supported by the Secretaria d’Universitats i Recerca del Departament
d’Empresa i Coneixement de la Generalitat de Catalunya under Grant 2017-SGR-646. The Secretariat of Universities and
Research of the Department of Business and Knowledge of theGeneralitat de Catalunyaand Fons Social Europeu (FSE) are
also thanked for financing Juan Carlos Miranda’s pre-doctoral fellowship(2020 FI_B 00586).
|
aksoso
|
将python项目批量编译成.so 文件
|
aksquare
|
No description available on PyPI.
|
akstatistic
|
AKStatistic 项目代码行数统计使用方法:安装pip install akstatistic导入并运行from akstatistic.akstatistic import CodeStatistic
static_dir = '/home/Kuture/xxx'
statics = CodeStatistic(filter_list=['.py'],
source_dir_path=static_dir)
statics.statistic()
|
ak-sw-benchmarker
|
AKFruitYield: AK_SW_BENCHMARKER - Azure Kinect Size Estimation & Weight Prediction BenchmarkerAKFruitYield is a modular software that allows orchard data from RGB-D Azure Kinect cameras to be processed for fruit
size and fruit yield estimation. Specifically, two modules have been developed: i)AK_SW_BENCHMARKERthat makes it possible
to apply different sizing algorithms and allometric yield prediction models to manually labeled color and depth tree
images; and ii)AK_VIDEO_ANALYSERthat analyses videos on which to automatically detect apples, estimate their size and
predict yield at the plot or per hectare scale using the appropriate simulated algorithms. Both modules have easy-to-use
graphical interfaces and provide reports that can subsequently be used by other analysis tools.AK_VIDEO_ANALYSERis part of theAKFruitDataand AKFruitYield family (Fig 1.), a suite
that offers field acquisition tools focused on theAzure Kinect DK sensor. Table 1-2 shows the links to the other
developed tools.Fig. 1. a) Proposed stages of data acquisition and extraction for AKFruitData and AKFruitYield. Dashed green lines correspond to processes related to acquisition, red lines to processes related to data creation and training, and black lines to processes for performance estimation. b) Interoperability between the data acquisition (AK_ACQS;AK_SM_RECORDER), data creation (AK_FRAEX), algorithm benchmarking (AK_SW_BENCHMARKER) and video analysis (AK_VIDEO_ANALYSER) modules. The processes proposed in Figure 1 are expanded and represented by the developed software.PackageDescriptionAK_ACQS Azure Kinect Acquisition System (https://github.com/GRAP-UdL-AT/ak_acquisition_system)AK_ACQS is a software solution for data acquisition in fruit orchards using a sensor system boarded on a terrestrial vehicle. It allows the coordination of computers and sensors through the sending of remote commands via a GUI. At the same time, it adds an abstraction layer on library stack of each sensor, facilitating its integration. This software solution is supported by a local area network (LAN), which connects computers and sensors from different manufacturers ( cameras of different technologies, GNSS receiver) for in-field fruit yield testing.AK_SM_RECORDER - Azure Kinect Standalone Mode (https://github.com/GRAP-UdL-AT/ak_sm_recorder)A simple GUI recorder based on Python to manage Azure Kinect camera devices in a standalone mode.https://pypi.org/project/ak-sm-recorder/AK_FRAEX - Azure Kinect Frame Extractor (https://github.com/GRAP-UdL-AT/ak_frame_extractor)AK_FRAEX is a desktop tool created for post-processing tasks after field acquisition. It enables the extraction of information from videos recorded in MKV format with the Azure Kinect camera. Through a GUI, the user can configure initial parameters to extract frames and automatically create the necessary metadata for a set of images. (https://pypi.org/project/ak-frame-extractor/)Table 1.Modules developed under theAKFruitDatafamilyPackageDescriptionAK_SW_BENCHMARKER - Azure Kinect Size Estimation & Weight Prediction Benchmarker (https://github.com/GRAP-UdL-AT/ak_sw_benchmarker/)Python based GUI tool for fruit size estimation and weight prediction.AK_VIDEO_ANALYSER - Azure Kinect Video Analyser (https://github.com/GRAP-UdL-AT/ak_video_analyser/)Python based GUI tool for fruit size estimation and weight prediction from videos.Table 2.Modules developed under the AKFruitYield familyAK_SW_BENCHMARKER descriptionPython based GUI tool for fruit size estimation and weight prediction. It receives as input a data set in the format
explained byMiranda et al., 2022and a ground truth file to display
various fruit measurements. ak-sw-benchmarker is part of the AKFruitYield family (Fig 2.), a suite that offers field
acquisition tools focused on the Azure Kinect DK sensor. Table 1 shows the links to the other developed tools. This is
the Github repository ofak-simulator, an installable version can be found published onPypi.orgat the following
linkhttps://pypi.org/project/ak-simulator/Fig. 2. ak_sw_benchmarker module user interface. a) 'Dataset metrics' tab to select data (frames) and configure the sizing and yield prediction algorithms. b) 'Metric comparisons' tab to report results and error statistics.ContentsPre-requisites.Functionalities.Install and run.Files and folder description.Development tools, environment, build executables.1. Pre-requisitesSDK Azure Kinectinstalled.pyk4a libraryinstalled. If the operating system is Windows, follow
thissteps. You can find test basic examples with
pyk4ahere.In Ubuntu 20.04, we provide a script to install the camera drivers following the instructions
inazure_kinect_notes.Videos recorded with the Azure Kinect camera, optional video samples are available atAK_FRAEX - Azure Kinect Frame Extractor demo videos2. FunctionalitiesThe functionalities of the software are briefly described. Supplementary material can be
found inUSER's Manual.Analyse datasetallows benchmarking to be performed with a final report of size estimates and weight prediction. The user has the option of introducing a file with values of real dimensions of fruits (ground truth) to compare with the set of images that it is desired to be analyzed. A final report with results (size and weight) grouped by image and fruit will be presented according to the selected parameters in addition to the test metrics.Export imagesmakes it possible to visualize the geometric fitting of the ROIs on the objects (fruits) to be measured. Outputs are color images including binary masks of selected objects and fruit labeling. This functionality adds value to the software since the user can observe how sizing algorithms are applied to the images, enabling corrective adjustments in the algorithm configuration if necessary.Run tests in datasetcalculates the test metrics. The user must first indicate the estimate to be analyzed (Report selector in Fig. 2b), namely the major geometric axis of the fruit (A1), the minor axis (A2) or the weight (WEIGHT). Since all sizing-yielding combinations are analyzed, this functionality allows the method with least error to be determined, also obtaining a final ranking of sizing algorithms or ranking of sizing-allometric model combinations.3. Install and run3.1 PIP quick install packageCreate your Python virtual environment.python3 -m venv ./ak_sw_benchmarker_venv
source ./ak_sw_benchmarker_venv/bin/activate
pip install --upgrade pip
** for Windows 10 is python.exe -m pip install --upgrade pip **
pip install python -m ak-simulator
python -m ak_sw_benchmarkerDownload the dataset with images and the file with apples groundtruth fromhttps://github.com/GRAP-UdL-AT/ak_sw_benchmarker/blob/main/data/.3.2 Install and run virtual environments using scripts provided[Linux]
Enter to the folder"ak_sw_benchmarker/"Create virtual environment(only first time)chmod 755 *.sh; ./creating_env_ak_sw_benchmarker.shRun script../ak_sw_benchmarker_start.sh[Windows]
Enter to the folder "ak_sw_benchmarker/"Create virtual environment(only first time)TODO_HERERun script from CMD../ak_sw_benchmarker_start.bat4.3 Files and folder descriptionFolder description:FoldersDescriptiondocs/Documentationsrc/Source codedata/Dataset with images and the file with apples groundtruth...Python environment files:FilesDescriptionOSactivate_env.batActivate environments in WindowsWINak_sw_benchmarker_start.batExecuting main scriptWINcreating_env_ak_sw_benchmarker_sim.shAutomatically creates Python environmentsLinuxak_sw_benchmarker_start.shExecuting main scriptLinuxPypi.org PIP packages files:FilesDescriptionOSbuild_pip.batBuild PIP package to distributionWIN/src/ak_sw_benchmarker/main.pyMain function used in package compilationSupported by Pythonsetup.cfgPackage configuration PIPSupported by Pythonpyproject.tomlPackage description PIPSupported by Python5. Development tools, environment, build executablesSome development tools are needed with this package, listed below:Opencv.7zip.5.1 Notes for developersYou can use themain.py for execute as first time in src/ak-size-estimation/_ _ main _ _.py Configure the path of
the project, if you use Pycharm, put your folder root like this:5.2 Creating virtual environment Windows / Linuxpython3 -m venv ak_size_weight_sim_venv
source ./ak_size_weight_sim_venv/bin/activate
pip install --upgrade pip
pip install -r requirements_windows.txt or pip install -r requirements_linux.txt** If there are some problems in Windows, followthis**pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"5.3 Building PIP packageWe are working to offer Pypi support for this package. At this time this software can be built by scripts automatically.5.3.1 Build packagespy -m pip install --upgrade build
build_pip.bat5.3.2 Download PIP packagepip install package.whl5.3.3 Run ak_sw_benchmarkerpython -m ak_sw_benchmarkerAfter the execution of the script, a new folder will be generated inside the project"/dist". You can copy **
ak_sw_benchmarker_f/** or a compressed file"ak_sw_benchmarker_f.zip"to distribute.5.6 Package distribution formatAt this time, the current supported format for the distribution is Python packages.Package typePackageUrlDescriptionPIP.whl.whlPIP packages are stored in build/AuthorshipThis project is contributed byGRAP-UdL-AT. Please contact authors to report [email protected] you find this code useful, please consider citing:@article{MIRANDA2022101231,
title = {AKFruitYield: Modular benchmarking and video analysis software for Azure Kinect cameras for fruit size and fruit yield estimation in apple orchards},
journal = {SoftwareX},
volume = {XX},
pages = {000000},
year = {2023},
issn = {0000-0000},
doi = {},
url = {},
author = {Juan Carlos Miranda and Jaume Arnó and Jordi Gené-Mola and Spyros Fountas and Eduard Gregorio},
keywords = {RGB-D camera, apple fruit sizing, yield prediction, detection and benchmarking algorithms, allometry},
abstract = {.}
}AcknowledgementsThis work was partly funded by the Department of Research and Universities of the Generalitat de Catalunya (grants 2017
SGR 646) and by the Spanish Ministry of Science and Innovation/AEI/10.13039/501100011033/ERDF (grant
RTI2018-094222-B-I00PAgFRUIT projectand PID2021-126648OB-I00PAgPROTECT project). The Secretariat of Universities
and Research of the Department of Business and Knowledge of theGeneralitat de Catalunyaand European Social Fund (ESF)
are also thanked for financing Juan Carlos Miranda’s pre-doctoral fellowship (2020 FI_B 00586). The work of Jordi
Gené-Mola was supported by the Spanish Ministry of Universities through a Margarita Salas postdoctoral grant funded by
the European Union - NextGenerationEU. The authors would also like to thank the Institut de Recerca i Tecnologia
Agroalimentàries(IRTA)for allowing the use of their experimental fields, and in particular Dr. Luís Asín and Dr. Jaume
Lordán who have contributed to the success of this work.
|
aksy
|
No description available on PyPI.
|
ak-syntribos
|
Team and repository tagsSyntribos, An Automated API Security Testing ToolSyntribos is an open source automated API security testing tool that is
maintained by members of theOpenStack Security Project.Given a simple configuration file and an example HTTP request, syntribos
can replace any API URL, URL parameter, HTTP header and request body
field with a given set of strings. Syntribos iterates through each position
in the request automatically. Syntribos aims to automatically detect common
security defects such as SQL injection, LDAP injection, buffer overflow, etc.
In addition, syntribos can be used to help identify new security defects
by automated fuzzing.Syntribos has the capability to test any API, but is designed withOpenStackapplications in mind.List of TestsWith syntribos, you can initiate automated testing of any API with minimal
configuration effort. Syntribos is ideal for testing the OpenStack API as it
will help you in automatically downloading a set of templates of some of the
bigger OpenStack projects like nova, neutron, keystone, etc.A short list of tests that can be run using syntribos is given below:Buffer OverflowCommand InjectionCORS WildcardInteger OverflowLDAP InjectionSQL InjectionString ValidationXML External EntityCross Site Scripting (XSS)Regex Denial of Service (ReDoS)JSON Parser Depth LimitUser DefinedBuffer OverflowBuffer overflowattacks, in the context of a web application,
force an application to handle more data than it can hold in a buffer.
In syntribos, a buffer overflow test is attempted by injecting a large
string into the body of an HTTP request.Command InjectionCommand injectionattacks are done by injecting arbitrary commands in an
attempt to execute these commands on a remote system. In syntribos, this is
achieved by injecting a set of strings that have been proven as successful
executors of injection attacks.CORS WildcardCORS wildcardtests are used to verify if a web server allows cross-domain
resource sharing from any external URL (wild carding ofAccess-Control-Allow-Originheader), rather than a white list of URLs.Integer OverflowInteger overflowtests in syntribos attempt to inject numeric values that
the remote application may fail to represent within its storage. For example,
injecting a 64 bit number into a 32 bit integer type.LDAP InjectionSyntribos attemptsLDAP injectionattacks by injecting LDAP statements
into HTTP requests; if an application fails to properly sanitize the
request content, it may be possible to execute arbitrary commands.SQL InjectionSQL injectionattacks are one of the most common web application attacks.
If the user input is not properly sanitized, it is fairly easy to
execute SQL queries that may result in an attacker reading sensitive
information or gaining control of the SQL server. In syntribos,
an application is tested for SQL injection vulnerabilities by injecting
SQL strings into the HTTP request.String ValidationSome string patterns are not sanitized effectively by the input validator and
may cause the application to crash. String validation attacks in syntribos
try to exploit this by inputting characters that may cause string validation
vulnerabilities. For example, special unicode characters, emojis, etc.XML External EntityXML external entityattacks target the web application’s XML parser.
If an XML parser allows processing of external entities referenced in an
XML document then an attacker might be able to cause a denial of service,
or leakage of information, etc. Syntribos tries to inject a few malicious
strings into an XML body while sending requests to an application in an
attempt to obtain an appropriate response.Cross Site Scripting (XSS)XSSattacks inject malicious JavaScript into a web
application. Syntribos tries to find potential XSS issues by injecting
string containing “script” and other HTML tags into request fields.Regex Denial of Service (ReDoS)ReDoSattacks attempt to produce a denial of service by
providing a regular expression that takes a very long time to evaluate.
This can cause the regex engine to backtrack indefinitely, which can
slow down some parsers or even cause a processing halt. The attack
exploits the fact that most regular expression implementations have
an exponential time worst case complexity.JSON Parser Depth LimitThere is a possibility that the JSON parser will reach depth limit and crash,
resulting in a successful overflow of the JSON parsers depth limit, leading
to a DoS vulnerability. Syntribos tries to check for this, and raises an issue
if the parser crashes.User defined TestThis test gives users the ability to fuzz using user defined fuzz data and
provides an option to look for failure strings provided by the user. The fuzz
data needs to be provided using the config option[user_defined].Example:[user_defined]
payload=<payload_file>
failure_strings=<[list_of_failure_strings] # optionalOther than these built-in tests, you can extend syntribos by writing
your own custom tests. To do this, download the source code and look at
the tests in thesyntribos/testsdirectory. The CORS test may be an easy
one to emulate. In the same way, you can also add different extensions
to the tests. To see how extensions can be written please see thesyntribos/extensionsdirectory.DetailsDocumentationFree software:Apache licenseLaunchpad projectBlueprintsBugsSource codeSupported Operating SystemsSyntribos has been developed primarily in Linux and Mac environments and would
work on most Unix and Linux based Operating Systems. At this point, we are not
supporting Windows, but this may change in the future.InstallationSyntribos can be installed directly frompypi with pip.pip install syntribosFor the latest changes, install syntribos fromsourcewithpip.Clone the repository:$ git clone https://github.com/openstack/syntribos.gitChange directory into the repository clone and install with pip:$ cd syntribos
$ pip install .Initializing the syntribos EnvironmentOnce syntribos is installed, you must initialize the syntribos environment.
This can be done manually, or with theinitcommand.$ syntribos initNoteBy default,syntribos initfetches a set of default payload files
from aremote repositorymaintained by our development team. These payload files are necessary for
our fuzz tests to run. To disable this behavior, run syntribos with the--no_downloadsflag. Payload files can also be fetched by runningsyntribos download--payloadsat any time.To specify a custom root for syntribos to be installed in,
specify the--custom_rootflag. This will skip
prompts for information from the terminal, which can be handy for
Jenkins jobs and other situations where user input cannot be retrieved.If you’ve already run theinitcommand but want to start over with a fresh
environment, you can specify the--forceflag to overwrite existing files.
The--custom_rootand--forceflags can be combined to
overwrite files in a custom install root.Note: if you install syntribos to a custom install root, you must supply the--custom_rootflag when running syntribos.Example:$ syntribos --custom_root /your/custom/path init --force
$ syntribos --custom_root /your/custom/path runConfigurationAll configuration files should have a[syntribos]section.
Add other sections depending on what extensions you are using
and what you are testing. For example, if you are using the
built-in identity extension, you would need the[user]section. The sections[logging]and[remote]are optional.The basic structure of a syntribos configuration
file is given below:[syntribos]
#
# End point URLs and versions of the services to be tested.
#
endpoint=http://localhost:5000
# Set payload and templates path
templates=<location_of_templates_dir/file>
payloads=<location_of_payloads_dir>
[user]
#
# User credentials and endpoint URL to get an AUTH_TOKEN
# This section is only needed if you are using the identity extension.
#
endpoint=
username=<yourusername>
password=<yourpassword>
[remote]
#
# Optional, to define remote URI and cache_dir explicitly
#
templates_uri=<URI to a tar file of set of templates>
payloads_uri=<URI to a tar file of set of payloads>
cache_dir=<a local path to save the downloaded files>
[logging]
log_dir=<location_to_save_debug_logs>The endpoint URL specified in the[syntribos]section is the endpoint URL
tested by syntribos. The endpoint URL in the[user]section is used to
get an AUTH_TOKEN. To test any project, update the endpoint URL under[syntribos]to point to the API and also modify the user
credentials if needed.Downloading templates and payloads remotelyPayload and template files can be downloaded remotely in syntribos.
In the config file under the[syntribos]section, if thetemplatesandpayloadsoptions are not set, by default syntribos will
download all the latest payloads and the templates for a few OpenStack
projects.To specify a URI to download custom templates and payloads
from, use the[remotes]section in the config file.
Available options under[remotes]arecache_dir,templates_uri,payloads_uri, andenable_cache. Theenable_cacheoption isTrueby default; set toFalseto disable caching of remote
content while syntribos is running. If thecache_dirset to a path,
syntribos will attempt to use that as a base directory to save downloaded
template and payload files.The advantage of using these options are that you will be able to get
the latest payloads from the official repository and if you are
using syntribos to test OpenStack projects, then, in most cases you
could directly use the well defined templates available with this option.This option also helps to easily manage different versions of templates
remotely, without the need to maintain a set of different versions offline.Testing OpenStack keystone APIA sample config file is given inexamples/configs/keystone.conf.
Copy this file to a location of your choice (the default file path for the
configuration file is:~/.syntribos/syntribos.conf) and update the
necessary fields, such as user credentials, log, template directory, etc.$ vi examples/configs/keystone.conf
[syntribos]
#
# As keystone is being tested in the example, enter your
#
# keystone auth endpoint url.
endpoint=http://localhost:5000
# Set payload and templates path
templates=<location_of_templates_dir/file>
payloads=<location_of_payloads_dir>
[user]
#
# User credentials
#
endpoint=http://localhost:5000
username=<yourusername>
password=<yourpassword>
# Optional, only needed if Keystone V3 API is used
#user_id=<youruserid>
# Optional, api version if required
#version=v2.0
# Optional, for getting scoped tokens
#user_id=<alt_userid>
# If user id is not known
# For V3 API
#domain_name=<name_of_the_domain>
#project_name=<name_of_the_project>
# For Keystone V2 API
#tenant_name=<name_of_the_project>
#[alt_user]
#
# Optional, Used for cross auth tests (-t AUTH)
#
#endpoint=http://localhost:5000
#username=<alt_username>
#password=<alt_password>
# Optional, for getting scoped tokens
#user_id=<alt_userid>
# If user id is not known
# For V3 API
#domain_name=<name_of_the_domain>
#project_name=<name_of_the_project>
# For Keystone V2 API
#tenant_name=<name_of_the_project>
[remote]
#
# Optional, Used to specify URLs of templates and payloads
#
#cache_dir=<a local path to save the downloaded files>
#templates_uri=https://github.com/your_project/templates.tar
#payloads_uri=https://github.com/your_project/payloads.tar
# To disable caching of these remote contents, set the following variable to False
#enable_caching=True
[logging]
#
# Logger options go here
#
log_dir=<location_to_store_log_files>
# Optional, compresses http_request_content,
# if you don't want this, set this option to False.
http_request_compression=TrueCommandsBelow are the set of commands that can be specified while
using syntribos:initThis command sets up the syntribos environment after installation. Running
this command creates the necessary folders for templates, payloads,
and logs; as well a sample configuration file.$ syntribos initTo learn more aboutsyntribos init, see the installation instructionshere.runThis command runs syntribos with the given config options.$ syntribos --config-file keystone.conf -t SQL rundry_runThis command ensures that the template files given for this run parse
successfully and without errors. It then runs a debug test which sends no
requests of its own.$ syntribos --config-file keystone.conf dry_runNoteIf any external calls referenced inside the template file do make
requests, the parser will still make those requests even for a dry run.list_testsThis command will list the names of all the tests
that can be executed by theruncommand with their description.$ syntribos --config-file keystone.conf list_testsdownloadThis command will download templates and payload files. By default, it will
download a set of OpenStack template files (with the--templatesflag), or a set of payloads (with the--payloadsflag) to your
syntribos root directory. However, the behavior of this command can be
configured in the[remote]section of your config file.$ syntribos download --templatesImportantAll these commands, exceptinit, will only work if a configuration file
is specified. If a configuration file is present in the default
path (~/.syntribos/syntribos.conf), then you
do not need to explicitly specify a config file and
can run syntribos using the commandsyntribos run.Running syntribosBy default, syntribos looks in the syntribos home directory (the directory
specified when running thesyntribos initcommand on install) for config
files, payloads, and templates. This can all be overridden through command
line options. For a full list of command line options available, runsyntribos--helpfrom the command line.To run syntribos against all the available tests, specify the
commandsyntribos, with the configuration file (if needed), without
specifying any test type.$ syntribos --config-file keystone.conf runFuzzy-matching test namesIt is possible to limit syntribos to run a specific test type using
the-tflag.$ syntribos --config-file keystone.conf -t SQL runThis will match all tests that containSQLin their name. For example:SQL_INJECTION_HEADERS,SQL_INJECTION_BODY, etc.Specifying a custom root directoryIf you set up the syntribos environment with a custom root (i.e. withsyntribos--custom_rootinit), you can point to it with the--custom_rootconfiguration option. Syntribos will look for asyntribos.conffile inside this directory, and will read further
configuration information from there.Logging and ResultsThere are two types of logs generated by syntribos:The results log is a collection of issues generated at the end of a
syntribos run to represent results.The debug log contains debugging information captured during a particular
run. Debug logs may include exception messages, warnings, raw
but sanitized request/response data, and a few more details. A modified
version of Python logger is used for collecting debug logs in syntribos.Results LogThe results log is displayed at the end of every syntribos run, it can be
written to a file by using the-oflag on the command line.The results log includes failures and errors. The"failures"key represents
tests that have failed, indicating a possible security vulnerability. The"errors"key gives us information on any unhandled exceptions, such as
connection errors, encountered on that run.Example failure object:{
"defect_type": "xss_strings",
"description": "The string(s): '[\"<STYLE>@import'http://xss.rocks/xss.css';</STYLE>\"]',
known to be commonly returned after a successful XSS attack, have been found in the
response. This could indicate a vulnerability to XSS attacks.",
"failure_id": 33,
"instances": [
{
"confidence": "LOW",
"param": {
"location": "data",
"method": "POST",
"type": null,
"variables": [
"type",
"details/name",
]
},
"severity": "LOW",
"signals": {
"diff_signals": [
"LENGTH_DIFF_OVER"
],
"init_signals": [
"HTTP_CONTENT_TYPE_JSON",
"HTTP_STATUS_CODE_2XX_201"
],
"test_signals": [
"FAILURE_KEYS_PRESENT",
"HTTP_CONTENT_TYPE_JSON",
"HTTP_STATUS_CODE_2XX_201",
]
},
"strings": [
"<STYLE>@import'http://xss.rocks/xss.css';</STYLE>"
]
}
],
"url": "127.0.0.1/test"
}Error form:ERROR:
{
"error": "Traceback (most recent call last):\n File \"/Users/test/syntribos/tests/fuzz/base_fuzz.py\",
line 58, in tearDownClass\n super(BaseFuzzTestCase, cls).tearDownClass()\n
File \"/Users/test/syntribos/tests/base.py\", line 166, in tearDownClass\n
raise sig.data[\"exception\"]\nReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8080):
Read timed out. (read timeout=10)\n",
"test": "tearDownClass (syntribos.tests.fuzz.sql.image_data_image_data_get.template_SQL_INJECTION_HEADERS_sql-injection.txt_str21_model1)"
}Debug LogsDebug logs include details about HTTP requests, HTTP responses, and other
debugging information such as errors and warnings across the project. The
path where debug logs are saved by default is.syntribos/logs/.
Debug logs are arranged in directories based on the timestamp in these
directories and files are named according to the templates.For example:$ ls .syntribos/logs/
2016-09-15_11:06:37.198412 2016-09-16_10:11:37.834892 2016-09-16_13:31:36.362584
2016-09-15_11:34:33.271606 2016-09-16_10:38:55.820827 2016-09-16_13:36:43.151048
2016-09-15_11:41:53.859970 2016-09-16_10:39:50.501820 2016-09-16_13:40:23.203920$ ls .syntribos/logs/2016-09-16_13:31:36.362584
API_Versions::list_versions_template.log
API_Versions::show_api_details_template.log
availability_zones::get_availability_zone_detail_template.log
availability_zones::get_availability_zone_template.log
cells::delete_os_cells_template.log
cells::get_os_cells_capacities_template.log
cells::get_os_cells_data_template.logEach log file includes some essential debugging information such as the string
representation of the request object, signals, and checks used for tests, etc.Example request:------------
REQUEST SENT
------------
request method.......: PUT
request url..........: http://127.0.0.1/api
request params.......:
request headers size.: 7
request headers......: {'Content-Length': '0', 'Accept-Encoding': 'gzip, deflate',
'Accept': 'application/json',
'X-Auth-Token': <uuid>, 'Connection': 'keep-alive',
'User-Agent': 'python-requests/2.11.1', 'content-type': 'application/xml'}
request body size....: 0
request body.........: NoneExample response:-----------------
RESPONSE RECEIVED
-----------------
response status..: <Response [415]>
response headers.: {'Content-Length': '70',
'X-Compute-Request-Id': <random id>,
'Vary': 'OpenStack-API-Version, X-OpenStack-Nova-API-Version',
'Openstack-Api-Version': 'compute 2.1', 'Connection': 'close',
'X-Openstack-Nova-Api-Version': '2.1', 'Date': 'Fri, 16 Sep 2016 14:15:27 GMT',
'Content-Type': 'application/json; charset=UTF-8'}
response time....: 0.036277
response size....: 70
response body....: {"badMediaType": {"message": "Unsupported Content-Type", "code": 415}}
-------------------------------------------------------------------------------
[2590] : XSS_BODY
(<syntribos.clients.http.client.SynHTTPClient object at 0x102c65f10>, 'PUT',
'http://127.0.0.1/api')
{'headers': {'Accept': 'application/json', 'X-Auth-Token': <uuid> },
'params': {}, 'sanitize': False, 'data': '', 'requestslib_kwargs': {'timeout': 10}}
Starting new HTTP connection (1): 127.0.0.1
"PUT http://127.0.0.1/api HTTP/1.1" 501 93Example signals captured:Signals: ['HTTP_STATUS_CODE_4XX_400', 'HTTP_CONTENT_TYPE_JSON']
Checks used: ['HTTP_STATUS_CODE', 'HTTP_CONTENT_TYPE']Debug logs are sanitized to prevent storing secrets to log files.
Passwords and other sensitive information are marked with asterisks using a
slightly modified version ofoslo_utils.strutils.mask_password.Debug logs also include string compression, wherein long fuzz strings are
compressed before being written to the logs. The threshold to start data
compression is set to 512 characters. Although it is not recommended to turn
off compression, it is possible by setting the variable"http_request_compression", under the logging section in the config file,
toFalse.Anatomy of a request templateThis section describes how to write templates and how to run specific tests.
Templates are input files which have raw HTTP requests and may be
supplemented with variable data using extensions.In general, a request template is a marked-up raw HTTP request. It’s possible
for you to test your application by using raw HTTP requests as your request
templates, but syntribos allows you to mark-up your request templates for
further functionality.A request template looks something like this:POST /users/{user1} HTTP/1.1
Content-Type: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.vAPI.client:get_token:[]|
{"newpassword": "qwerty123"}For fuzz tests, syntribos will automatically detect URL parameters, headers,
and body content as fields to fuzz. It will not automatically detect URL path
elements as fuzz fields, but they can be specified with curly braces{}.Note: The name of a template file must end with the extension.templateOtherwise, syntribos will skip the file and will not attempt to parse any files
that do not adhere to this naming scheme.Using external functions in templatesExtensions can be used to supplement syntribos template files with variable
data, or data retrieved from external sources.Extensions are found insyntribos/extensions/.Calls to extensions are made in the form below:CALL_EXTERNAL|{extension dot path}:{function name}:[arguments]One example packaged with syntribos enables the tester to obtain an AUTH
token from keystone. The code is located inidentity/client.py.To use this extension, you can add the following to your template file:X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_token_v3:["user"]|The"user"string indicates the data from the configuration file we
added inexamples/configs/keystone.conf.Another example is found inrandom_data/client.py. This returns a
UUID when random, but unique data is needed. The UUID can be used in place of
usernames when fuzzing a create user call."username": "CALL_EXTERNAL|syntribos.extensions.random_data.client:get_uuid:[]|"The extension function can return one value, or be used as a generator if
you want it to change for each test.Built in functionsSyntribos comes with a slew of utility functions/extensions, these functions
can be used to dynamically inject data into templates.Utility FunctionsMethodParametersDescriptionhash_it[data, hash_type (optional hash type, default being SHA256)]Returns hashed value of datahmac_it[data, key, hash_type (optional hash type, default being SHA256)]Returns HMAC based on the has algorithm, data and the key providedepoch_time[offset (optional integer offset value, default is zero)]Returns the current time minus offset since epochutc_datetime[]Returns current UTC date timebase64_encode[data]Returns base 64 encoded value of data suppliedurl_encode[url]Returns encoded URLAll these utility functions can be called using the following syntax:CALL_EXTERNAL|common_utils.client.{method_name}:{comma separated parameters in square brackets}For example:"encoded_url": "CALL_EXTERNAL|common_utils.client:url_encode:['http://localhost:5000']|Other functions that return random values can be seen below:Random FunctionsMethodParametersDescriptionget_uuid[]Returns a random UUIDrandom_port[]Returns random port number between 0 and 65535random_ip[]Returns random ipv4 addressrandom_mac[]Returns random mac addressrandom_integer[beg (optional beginning value, default is 0), end (optional end value)]Returns an integer value between 0 and 1468029570 by defaultrandom_utc_datetime[]Returns random UTC datetimeThese can be called using:CALL_EXTERNAL|random_data.client.{method_name}:{comma separated parameters in square brackets}For example:"address": "CALL_EXTERNAL|random_data.client:random_ip:[]|"Action FieldWhile syntribos is designed to test all fields in a request, it can also
ignore specific fields through the use of Action Fields. If you want to
fuzz against a static object ID, use the Action Field indicator as
follows:"ACTION_FIELD:id": "1a16f348-c8d5-42ec-a474-b1cdf78cf40f"The ID provided will remain static for every test.Meta Variable FileSyntribos allows for templates to read in variables from a user-specified
meta variable file. These files contain JSON objects that define variables
to be used in one or more request templates.The file must be namedmeta.json, and they take the form:{
"user_password": {
"val": 1234
},
"user_name": {
"type": config,
"val": "user.username"
"fuzz_types": ["ascii"]
},
"user_token": {
"type": "function",
"val": "syntribos.extensions.identity:get_scoped_token_v3",
"args": ["user"],
"fuzz": false
}
}To reference a meta variable from a request template, reference the variable
name surrounded by|(pipe). An example request template with meta
variables is as follows:POST /user HTTP/1.1
X-Auth-Token: |user_token|
{
"user": {
"username": "|user_name|",
"password": "|user_password|"
}
}Note: Meta-variable usage in templates should take the form|user_name|, notuser_|name|or|user|_|name|. This is to avoid ambiguous behavior when the
value is fuzzed.Meta Variable Attributesval - All meta variable objects must define a value, which can be of any json
DataType. Unlike the other attributes, this attribute is not optional.type - Defining a type instructs syntribos to interpret the variable in a
certain way. Any variables without a type defined will be read in directly
from the value. The following types are allowed:config - syntribos reads the config value specified by the “val”
attribute and returns that value.function - syntribos calls the function named in the “val” attribute
with any arguments given in the optional “args” attribute, and returns the
value from calling the function. This value is cached, and will be returned
on subsequent calls.generator - Works the same way as the function type, but its results are
not cached and the function will be called every time.args - A list of function arguments (if any) which can be defined here if the
variable is a generator or a functionfuzz - A boolean value that, if set to false, instructs syntribos to
ignore this variable for any fuzz testsfuzz_types - A list of strings which instructs syntribos to only use certain
fuzz strings when fuzzing this variable. More than one fuzz type can be
defined. The following fuzz types are allowed:ascii - strings that can be encoded as asciiurl - strings that contain only url safe charactersmin_length/max_length - An integer that instructs syntribos to only use fuzz
strings that meet certain length requirementsInheritenceMeta variable files inherit based on the directory it’s in. That is, if you
havefoo/meta.jsonandfoo/bar/meta.json, templates infoo/bar/will take
their meta variable values fromfoo/bar/meta.json, but they can also
reference meta variables that are defined only infoo/meta.json. This also
means that templates infoo/baz/cannot reference variables defined only infoo/bar/meta.json.Each directory can have no more than one file namedmeta.json.Running a specific testAs mentioned above, some tests included with syntribos by default
are: LDAP injection, SQL injection, integer overflow, command injection,
XML external entity, reflected cross-site scripting,
Cross Origin Resource Sharing (CORS), SSL, Regex Denial of Service,
JSON Parser Depth Limit, and User defined.In order to run a specific test, use the-t, –test-typesoption and providesyntriboswith a keyword, or keywords, to match from
the test files located insyntribos/tests/.For SQL injection tests, see below:$ syntribos --config-file keystone.conf -t SQL runTo run SQL injection tests against the template body only, see below:$ syntribos --config-file keystone.conf -t SQL_INJECTION_BODY runFor all tests against HTTP headers only, see below:$ syntribos --config-file keystone.conf -t HEADERS runUnit testingTo execute unit tests automatically, navigate to thesyntribosroot
directory and install the test requirements.$ pip install -r test-requirements.txtNow, run theunittestas below:$ python -m unittest discover tests/unit -p "test_*.py"If you have configured tox you could also run the following:$ tox -e py27
$ tox -e py35This will run all the unit tests and give you a result output
containing the status and coverage details of each test.Contributing GuidelinesSyntribos is an open source project and contributions are always
welcome. If you have any questions, we can be found in the
#openstack-security channel on Freenode IRC.Follow all theOpenStack Style Guidelines(e.g. PEP8, Py3 compatibility)Followsecure coding guidelinesEnsure all classes/functions have appropriatedocstringsinRST formatInclude appropriate unit tests for all new code(place them in thetests/unitfolder)Test any change you make using tox:pip install tox
tox -e pep8
tox -e py27
tox -e py35
tox -e coverAnyone wanting to contribute to OpenStack must followthe OpenStack development workflowSubmit all changes through the code review process in Gerrit
described above. All pull requests on Github will be closed/ignored.File bugs on thesyntribos launchpad site,
and not on Github. All Github issues will be closed/ignored.Submit blueprintsherefor all
breaking changes, feature requests, and other unprioritized work.NoteREADME.rst is a file that can be generated by runningpython readme.pyfrom thesyntribos/scriptsdirectory. When the
README file needs to be updated; modify the corresponding rst file insyntribos/doc/sourceand have it generate by running the script.
|
aktcal
|
This is a simple library that performs
basic python arithmetic operations.Installationpip install aktcalUsage:A guide to using the add_numbers function is as followsimport aktcal
add_num = aktcal.add_numbers(3, 7) # where 3 and 7 are the number you want to add
print(add_num)The functions in this library are:add_numbersubtract_numbermultiply_numberdivide_number_floatdivide_number_floorexponential_numbermode_numberVideo Usage GuideA video usage guide is provided via this linkYouTube LinkLicenseCopyright 2022 ScofieldThis repository is licensed under MIT license.
See LICENSE for details.Change Log1.0 (21/12/2022)
|
ak_temp_test
|
UNKNOWN
|
aktgestor-airflow-helpers
|
No description available on PyPI.
|
aktime
|
用于程序运行时统计各函数的运行时间,使用时只需要导入aktime中的TimeCalcu即可。
给要统计运行时间的方法加上@time_cacu装饰器,程序结束时调用time_statistic()会以图表的形式展示各方法的运行时间。
|
aktools
|
《AKShare-初阶-使用教学》视频课程已经上线,本课程手把手讲解 AKShare 和 AKTools 的环境配置和安装使用,还包含了众多衍生知识,详情点击链接! Tips:加入 AKShare VIP 答疑群可以免费获取该视频课程。AKToolsAKTools is a package of HTTP API for AKShare! It depends on AKShare, FastAPI and Typer.AKTools是一款用于快速搭建AKShareHTTP API 的工具,通过AKTools可以利用一行命令来启动 HTTP 服务,从而让原本专属服务于 Python 用户的开源财经数据接口库AKShare的使用
突破编程语言的限制。无论您使用的是 C/C++、Java、Go、Rust、Ruby、PHP、JavaScript、R、Matlab、Stata 等编程语言或软件都可以快速、轻松获取财经数据,助力您更好地展开研究和开发工作。AKTools 中文文档InstallationpipinstallaktoolsUpgradepipinstallaktools--upgrade-ihttps://pypi.org/simple# AKTools's version should great than 0.0.70AKSharePlease visit AKShare's DocumentationFastAPIPlease visit FastAPI's DocumentationTyperPlease visit Typer's DocumentationFast Runjust type the cmd/bash command:python -m aktoolsthen typehttp://127.0.0.1:8080/in your Chrome and you can fetch your homepage and more informationif you just want to test data api, you can typehttp://127.0.0.1:8080/api/public/stock_zh_a_histin your Chromeif you want to set parameter for API, then you just type likehttp://127.0.0.1:8080/api/public/stock_zh_a_hist?symbol=600000HomepageAKTools set a simple homepage for user to provide simple reference information. When you set up your
environment and deploy your local application, then you can typehttp:127.0.0.1:8080in your browser.
We are developing more functions now, please pay more attention!DemoTest-PostmanTest-RR-Programlibrary(RCurl) # 需要先安装该包
library(jsonlite) # 需要先安装该包
options (warn = -1) # 该行有助于在无参数请求时去掉 warning 信息
temp_df <-
getForm(
uri = 'http://127.0.0.1:8080/api/public/stock_zh_a_hist', # 此处的 http://127.0.0.1:8080 需要替换为您定义的地址和端口
symbol = '000001',
period = 'daily',
start_date = '20211109',
end_date = '20211209',
adjust = 'hfq',
.encoding = "utf-8"
)
inner_df <- fromJSON(temp_df)
inner_dfR-Result日期开盘收盘最高最低成交量成交额振幅涨跌幅涨跌额换手率12021-11-093009.833017.963037.462974.07124057321631931202.110.6017.880.6422021-11-103006.582996.833008.202957.82122085121097351521.67-0.70-21.130.6332021-11-112988.703151.233164.232983.82208472937524138566.025.15154.401.0742021-11-123144.733138.233196.743112.2295754617530727202.68-0.41-13.000.4952021-11-153151.233164.233196.743126.8565509012037640962.230.8326.000.3462021-11-163152.853130.103182.113121.9760111010991134081.90-1.08-34.130.3172021-11-173118.723112.223143.103091.0966464012038591841.66-0.57-17.880.3482021-11-183108.973061.843113.853050.4679984414300583042.04-1.62-50.380.4192021-11-193061.843118.723133.353045.5878637214145063842.871.8656.880.41102021-11-223099.223113.853134.973078.0973861813377681761.82-0.16-4.870.38112021-11-233112.223074.843151.233042.33123597822138175843.50-1.25-39.010.64122021-11-243056.963073.213086.223039.0874131113167744001.53-0.05-1.630.38132021-11-253052.093042.333060.213034.2160353310682213120.85-1.00-30.880.31142021-11-263032.583026.083040.713016.3369450012199373120.80-0.53-16.250.36152021-11-292998.453014.703024.462990.335125958951059841.13-0.38-11.380.26162021-11-303019.583003.333042.332988.7073361612803845601.78-0.38-11.370.38172021-12-013001.703035.833056.962991.9570692512436668482.161.0832.500.36182021-12-023032.583027.713063.462991.9599479817491645602.36-0.27-8.120.51192021-12-033035.833037.463045.582998.4570760012423750561.560.329.750.36202021-12-063069.963110.603185.363061.84214562538963851684.072.4173.141.11212021-12-073143.103169.113203.243118.72161644429799689762.721.8858.510.83222021-12-083167.483170.733183.733120.3598028117986910562.000.051.620.51232021-12-093173.983208.113266.623154.48145588727266634403.541.1837.380.75Test-MATLABMATLAB-Programapi = 'http://127.0.0.1:8080/api/public/';
url = [api 'stock_zh_a_hist'];
options = weboptions('ContentType','json', 'CharacterEncoding', 'utf-8');
data = webread(url, options, symbol = '000001', period = 'daily', start_date = '20211109', end_date = '20211209', adjust = 'hfq');
data % 由于 MATLAB 无法显示中文字段名,请自行修改为英文字段,参考链接:http://iso2mesh.sourceforge.net/cgi-bin/index.cgi?jsonlab/Doc/ExamplesMATLAB-Result'2021-11-09'3009.830000000003017.960000000003037.460000000002974.0700000000012405732163193120.000002.110000000000000.60000000000000017.88000000000000.640000000000000'2021-11-10'3006.580000000002996.830000000003008.200000000002957.8200000000012208512109735152.000001.67000000000000-0.700000000000000-21.13000000000000.630000000000000'2021-11-11'2988.700000000003151.230000000003164.230000000002983.8200000000020847293752413856.000006.020000000000005.15000000000000154.4000000000001.07000000000000'2021-11-12'3144.730000000003138.230000000003196.740000000003112.220000000009575461753072720.000002.68000000000000-0.410000000000000-130.490000000000000'2021-11-15'3151.230000000003164.230000000003196.740000000003126.850000000006550901203764096.000002.230000000000000.830000000000000260.340000000000000'2021-11-16'3152.850000000003130.100000000003182.110000000003121.970000000006011101099113408.000001.90000000000000-1.08000000000000-34.13000000000000.310000000000000'2021-11-17'3118.720000000003112.220000000003143.100000000003091.090000000006646401203859184.000001.66000000000000-0.570000000000000-17.88000000000000.340000000000000'2021-11-18'3108.970000000003061.840000000003113.850000000003050.460000000007998441430058304.000002.04000000000000-1.62000000000000-50.38000000000000.410000000000000'2021-11-19'3061.840000000003118.720000000003133.350000000003045.580000000007863721414506384.000002.870000000000001.8600000000000056.88000000000000.410000000000000'2021-11-22'3099.220000000003113.850000000003134.970000000003078.090000000007386181337768176.000001.82000000000000-0.160000000000000-4.870000000000000.380000000000000'2021-11-23'3112.220000000003074.840000000003151.230000000003042.3300000000012359782213817584.000003.50000000000000-1.25000000000000-39.01000000000000.640000000000000'2021-11-24'3056.960000000003073.210000000003086.220000000003039.080000000007413111316774400.000001.53000000000000-0.0500000000000000-1.630000000000000.380000000000000'2021-11-25'3052.090000000003042.330000000003060.210000000003034.210000000006035331068221312.000000.850000000000000-1-30.88000000000000.310000000000000'2021-11-26'3032.580000000003026.080000000003040.710000000003016.330000000006945001219937312.000000.800000000000000-0.530000000000000-16.25000000000000.360000000000000'2021-11-29'2998.450000000003014.700000000003024.460000000002990.330000000005125958951059841.13000000000000-0.380000000000000-11.38000000000000.260000000000000'2021-11-30'3019.580000000003003.330000000003042.330000000002988.700000000007336161280384560.000001.78000000000000-0.380000000000000-11.37000000000000.380000000000000'2021-12-01'3001.700000000003035.830000000003056.960000000002991.950000000007069251243666848.000002.160000000000001.0800000000000032.50000000000000.360000000000000'2021-12-02'3032.580000000003027.710000000003063.460000000002991.950000000009947981749164560.000002.36000000000000-0.270000000000000-8.120000000000000.510000000000000'2021-12-03'3035.830000000003037.460000000003045.580000000002998.450000000007076001242375056.000001.560000000000000.3200000000000009.750000000000000.360000000000000'2021-12-06'3069.960000000003110.600000000003185.360000000003061.8400000000021456253896385168.000004.070000000000002.4100000000000073.14000000000001.11000000000000'2021-12-07'3143.100000000003169.110000000003203.240000000003118.7200000000016164442979968976.000002.720000000000001.8800000000000058.51000000000000.830000000000000'2021-12-08'3167.480000000003170.730000000003183.730000000003120.350000000009802811798691056.0000020.05000000000000001.620000000000000.510000000000000'2021-12-09'3173.980000000003208.110000000003266.620000000003154.4800000000014558872726663440.000003.540000000000001.1800000000000037.38000000000000.750000000000000Test-RustRust-Programusereqwest::blocking;useserde_json::Value;usestd::collections::HashMap;// 定义常量,用于存储API的URL。constURL:&str="http://127.0.0.1:8080/api/public";/// 获取股票数据的函数。////// # 参数/// * `symbol` - 股票代码。/// * `period` - 时间周期。/// * `start_date` - 开始日期。/// * `end_date` - 结束日期。/// * `adjust` - 复权类型。////// # 返回值/// 返回一个Result,如果成功返回空的Ok,如果失败返回错误。fnget_data(endpoint:&str,symbol:&str,period:&str,start_date:&str,end_date:&str,adjust:&str,)->Result<(),Box<dynstd::error::Error>>{// 初始化查询参数,使用提供的函数参数。letparams=HashMap::from([("symbol",symbol),("period",period),("start_date",start_date),("end_date",end_date),("adjust",adjust),]);// 创建一个阻塞的HTTP客户端。letclient=blocking::Client::new();// 构建HTTP GET请求,并将查询参数附加到请求上。letfull_url=format!("{}/{}",URL,endpoint);letresp=client.get(full_url).query(¶ms).send()?;// 检查响应状态码是否表示成功。ifresp.status().is_success(){// 解析响应体为JSON并打印。letstock_data_list:Value=resp.json()?;println!("{:#?}",stock_data_list);}else{// 如果响应不是成功的,则打印错误信息。eprintln!("请求失败,状态码为: {}",resp.status());}Ok(())}fnmain(){// 调用`get_data`函数,并传递股票参数。// 如果出现错误,则打印错误信息。ifletErr(e)=get_data("stock_zh_a_hist","000001","daily","20240125","20240127",""){eprintln!("发生错误: {}",e);}}MATLAB-ResultArray[Object{"开盘":Number(9.33),"成交量":Number(2162514),"成交额":Number(2037648413.07),"振幅":Number(2.89),"换手率":Number(1.11),"收盘":Number(9.5),"日期":String("2024-01-25T00:00:00.000"),"最低":Number(9.27),"最高":Number(9.54),"涨跌幅":Number(1.82),"涨跌额":Number(0.17),},Object{"开盘":Number(9.47),"成交量":Number(2272287),"成交额":Number(2172799799.01),"振幅":Number(2.42),"换手率":Number(1.17),"收盘":Number(9.62),"日期":String("2024-01-26T00:00:00.000"),"最低":Number(9.44),"最高":Number(9.67),"涨跌幅":Number(1.26),"涨跌额":Number(0.12),},]
|
aktos
|
No description available on PyPI.
|
aktos-dcs
|
aktos_dcs is designed for creating fault tolerant, realtime, massively concurrent, distributed (even behind firewalls), io-bound (eg. heavy-traffic web server), scalable (both vertically and horizontally), cross-platform and language agnostic applications.This library is developed for distributed automation projects in mind. Any PLC or motion controller related work (including HMI and SCADA) can be performed easily. Simulation of a real component of the target system becomes a trivial work to do. Graphical User Interface can be built by using desktop and mobile frameworks (Qt, GTK, …) or by web technologies (HTML5, Javascript, CSS, …).Message transport layer is built on top of ZeroMQ library, which has Python, Java, Node.js, C, C++ , C# and many other bindings. This means, any number of these languages can be used together to build a single project. Developers can work with their favourite language.Gevent based actor model (inspired from Erlang) is used for concurrency. This means, concurrency comes for free. Since there are no real threads or subprocesses, debugging is easy. N-to-N connections are managed out of the box, so there is no single point of failure exists.
|
akttym
|
akttym - AKAAddcurrenttracktoyourmusic libraryHave you ever caught yourself liking tracks on Spotify obsessively to take advantage of their sweet machine learning recommendations? Yeah, me too. But alt-tabbing into the app every 3 minutes sucks. Withakttymyou can stay focused on your work and place like on your favorite music with a keyboard shortcut.Akttymis a simple script placing heart/like/whatever-they-call-it on currently playing track on Spotify, which combined with global keyboard shortcut allows for complete headless setup.And yes, there is a typo in the name.Getting StartedThis is a Python3 script, so it works with most Linux distributions and with macOS. I haven't tested it out on Windows, if there's a demand for it, please let me know!Disclaimer: It only works with on-line playback.UsageTo install akttym, just simply pip install it from PyPI:python3 -m pip install akttymIt comes with emptyconfig.yaml. In order to fill it up with your user data, runakttymfor the first time, and it will tell you where the config file is located:python3 -m akttym
WARNING:root:Config is invalid. username key is empty or does not exist.
Config file can be found at: /Users/evemorgen/Desktop/akttym/akttym/config.yamlCreate a Spotify app athttps://developer.spotify.com/dashboardand copyclient_idandclient_secretinto config file. Don't forget to add yourusernameas well.Addhttp://localhost:1911/redirect uri your new spotify app [Edit Settings -> Redirect URIs -> ADD].Run the script once again. This time it should open a website in your browser. Accept Spotify privacy stuff, after agreeing to sell your soul, you're good to go.It just works! (hopefully).python3 -m akttym
INFO:root:added Life On Mars? - 2015 Remastered Version to evemorgen's libraryBinding akttym to keyboard shortcutMacOSSearch forAutomatorapp and open it.Create new service [Service -> Choose]Drag and droprun shell scriptto workflow windowSelectno inputinService receivesdropdown and fill in command textbox withpython3 -m akttymSave created service (Cmd+Sor [File -> Save]) with nameakttymClose Automator and navigate to keyboard shortcuts settings [System preferences -> Keyboard -> Shortcuts -> Services]. At the very bottom of services list you should see newly created service. Double click on it and pick any key combination you like (be aware that you could override any of existing shortcuts)Test it out? Profit?ElementaryOS (Gnome)Enter keyboard settings [System Settings -> Keyboard -> Shortcuts -> custom]Click on+button and addpython3 -m akttymcommandit works?TroubleshootingEverytime I run it, it opens a new browser tabTry tochmod 766 /path/to/script/dir. Akttym needs write permission in directory where it's locatedBrowser tab opens with messageINVALID_CLIENT: Invalid redirect URIMake sure the right redirect uri (http://localhost:8080/) is added to the Spotify app.
After clickingAddbutton you still have to clickSavebutton at the very bottom of the page.AuthorsPatryk Galczynski-evemorgenLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
|
aku
|
No description available on PyPI.
|
akudeevia-distribution-pkg
|
No description available on PyPI.
|
akudu
|
akuduAsync Kudu Client. Graceful way for Python to async connect to Kudu database (data storage engine).Quick startIt is recommanded to use Python == 3.10, others are not tested.
*protobuf>=3.20.0* is required, or you need to compile the protobuf files by yourself.Installakudufrom PyPI.pipinstallakuduTest your Kudu server, such as 192.168.0.111:7051 with code here:importasyncioimportakuducli=akudu.Client('192.168.0.111',7051)asyncdefop():tables=awaitcli.list_tables()print(tables)asyncio.run(op())Here are some frequently used calls, for more please refer to the documentation.cli.ping()cli.list_tables()cli.insert()cli.scan()CautionThis client is not thread-safety, it is recommended that one instance of Kudu() for each threads.MoreTODOconnect timeout, read timeout, write timeoutSteady state ping-pongcall-id used-uptest all callsbenchmark testsupport RPC Sidecarssupport TLSfully support SASLBase onhttps://github.com/apache/kudu/tree/1.16.0libprotoc 3.21.6 (or python: grpcio-tools)Run testpython-mvenvenvsourceenv/bin/activate
pipinstallprotobuf
python-mtest.test_tcpGenerate protobuf files# kudu-master download from github.com kudu# Because kudu proto generate .pb2 files in the name space: kudu, we need to change it into akudu.kudufindkudu-master/src/-name"*.proto"|xargssed-i's/import "kudu/import "akudu\/kudu/g'mkdirkudu-master/src/akudu
mvkudu-master/src/kudukudu-master/src/akudu# Generatefindkudu-master/src/-name"*.proto"|xargsprotoc-I=kudu-master/src--python_out=.# orfindkudu-master/src/-name"*.proto"|xargspython-mgrpc_tools.protoc-I=kudu-master/src--python_out=.Refhttps://github.com/apache/kuduhttps://github.com/apache/kudu/blob/master/docs/design-docs/rpc.mdhttps://github.com/cyrusimap/cyrus-sasl/blob/master/plugins/plain.chttps://www.rfc-editor.org/rfc/rfc4616.htmlhttps://github.com/vmagamedov/grpclib
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.