Saravanan666/pypi-org huggingface dataset:
Package: tartiflette-plugin-isodatenow
tartiflette-plugin-isodatenowISO Date Format Directive for TartifletteTOCOverviewInstallationUsageOptionsmicrosecondstimezoneutcOverviewThetartiflette-plugin-isodatenowplugin adds an@isoDateNowdirective totartiflette.  It sets the field that it is on with the current time inISO 8601 format.
It is primarly intended for use in mutations as the directive overrides any value sent though it can be used in queries where acreatedAtor response timestamp is required.InstallationTo install withpoetry:$poetryaddtartiflette-plugin-isodatenowTo install with pip:$pipinstalltartiflette-plugin-isodatenowUsagetypeExample{createdAt:String@isoDateNow}QueryingcreatedAtwould return the following:{"data":{"example":{"createdAt":"2019-09-04T13:49:12.585158+00:00"}}}OptionsThe@isoDateNowalso takes the following optional arguments:@isoDateNow(microseconds: false)Returns date and timewithoutmicroseconds.typeExample{createdAt:String@isoDateNow(microseconds:false)}QueryingcreatedAtwould return the following:{"data":{"example":{"createdAt":"2019-09-04T13:49:12+00:00"}}}@isoDateNow(timezone: false)Returns date and timewithouttimezone.typeExample{createdAt:String@isoDateNow(timezone:false)}QueryingcreatedAtwould return the following:{"data":{"example":{"createdAt":"2019-09-04T13:49:12.585158"}}}@isoDateNow(utc: false)Returns date and time in thelocaltimezone.typeExample{createdAt:String@isoDateNow(utc:false)}QueryingcreatedAtwould return the following:{"data":{"example":{"createdAt":"2019-09-04T09:49:12.585158-04:00"}}}The arguments can be used in any combination and will return anISO8601 compliant date.For example settingsmicrosecondstofalseandtimezonetotruewould yield: 2019-09-04T13:49:12+00:00.Possible combinations:@isoDateNow>> "2019-09-04T13:49:12.585158+00:00"@isoDateNow(timezone: false)>> "2019-09-04T13:52:43.476260"@isoDateNow(microseconds: false)>> "2019-09-04T13:50:02+00:00"@isoDateNow(microseconds: false, timezone: false)>> "2019-09-04T13:53:31"The time can also be set to thelocaltime by settingutctofalse.@isoDateNow(utc: false)>> "2019-09-04T09:50:02+00:00"Using the@isoDateNowdirective will override any value sent.
Package: tartiflette-plugin-time-it
tartiflette-plugin-time-itAllows you to view field time execution in your log as easily as :type Example {
    aField: String @timeIt
}By default thetimeItdirective will use it's own logger retrieved bylogging.getLogger("__name__").If called withuseLogger: falseit will use the print statement.At init time, using thecreate_engineapi, you can pass your own logger to the directive.engine=awaitcreate_engine(sdl,modules=[{"name":"tartiflette_plugin_time_it","config":{"logger":myLogger()}}])
Package: tartiflette-request-context-hooks
Tartiflette Request Context HooksDEPRECATED, MOVED TOtartiflette-middleware.Framework to facilitate the creation of per-request context data for your
resolvers using simple python context managers.Allows for processing of request/response headers, dependent on the
http server you're using.Deprecated only because that name suits better.Installationpipinstalltartiflette-request-context-hooksUsageThis requires:Creation of your hooks.Configuration of your hooks in your application.Update your resolvers to access your data.1 - Creation of your hooksCreate a context manager to run on each request.Example:fromtartiflette_request_contexts_hooksimportBaseRequestContextHooksclassMyContextHooks(BaseRequestContextHooks):# required short arbitrary unique hook labellabel='MyHk'def__init__(self,my_hook_params):BaseRequestContextHooks.__init__(self)# do things necessary for repeated use across all of the requests, e.g.# configure factoriesasyncdef__aenter__(self):# provide the data or method to be used in all queries for a single# request.your_method_or_data=...# store the data/method to be reused for this requestawaitself.store_request_data(your_method_or_data)asyncdef__aexit__(self,exc_type,exc_val,exc_tb):# optional: for if you need to do something when the request is# completeddata=awaitself.get_request_data()data.close_or_whatever()There are more examples in the examples directory including one with access to
AIOHTTP request headers.2 - Configuration of your hooks in your appCurrently only AIOHTTP is supported but the library is extensible if others
would like to submit a pull request to support other servers that Tartiflette
supports.Limited AIOHTTP setup example, imports and configuration kept to hook specific
details:fromtartiflette_request_context_hooks.middlewareimportaiohttpfromtartiflette_request_context_hooksimportRequestContextHooksimportMyContextHooks# your hookmy_hook=RequestContextHooks(context_manager=MyContextHooks(my_hooks_params={},),server_middleware=aiohttp)app=web.Application(middlewares=[my_hook.middleware])ctx={'my_session_service':my_hook.service,}web.run_app(register_graphql_handlers(# your configurationexecutor_context=ctx,))3 - Access data in your resolvers' contextWorks in queries, mutations, and subscriptions.@Resolver('Query.whatever')asyncdefresolve_query_user_login(parent,args,ctx,info):my_data=awaitctx['my_session_service']()
Package: tartiflette-request-sqlalchemy-session
Tartiflette Request SQLAlchemy SessionMiddleware for thetartifletteGraphQL
server implementation to have a SQLAlchemy Session generated on each server
request which is then injected into the resolver context.A provided session is unique to the request.A provided session is shared across queries on a request.Must work for queries, mutations, and subscriptions.Installationpipinstalltartiflette-request-sqlalchemy-session[psycopg2]Currently only supports PostgreSQL through psycopg. Pull requests for other
adaptors are welcome.ConfigurationNote: If you have a working project you won't need to change the Alembic
configuration. This is mainly useful for a new project.Alembic configurationInenv.pyadd:fromtartiflette_request_sa_sessionimportDatabasedb_config=Database(db='db_name',engine='db_engine',# e.g. postgres+psycopg2host='db_host',password='db_password',port='db_port',user='db_username',)database=Database(**db_config)Updateenv.pyto use:config=context.configconfig.set_main_option('sqlalchemy.url',database.connection_string)App.py configurationThis configuration will not usually provide an out of the box working example
of a tartiflette aiohttp setup. This should be used as guidance to fit into
your configuration.fromtartiflette_middlewareimportMiddleware,serverfromtartiflette_request_sa_sessionimportDatabase,SQLAlchemySessionMiddlewaredefrun():# As with Alembic add:db_manager=Database(db='db_name',engine='db_engine',# e.g. postgres+psycopg2host='db_host',password='db_password',port='db_port',user='db_username',)# database request-based middleware setupsa_middleware=Middleware(context_manager=SQLAlchemySessionMiddleware(db_manager=db_manager),server_middleware=server.aiohttp,)# configure app - tweak to fit own configurationapp=web.Application(middlewares=[sa_middleware.middleware,])engine=create_engine(sdl=os.path.dirname(os.path.abspath(__file__))+'/sdl',modules=[# configure as necessary],)ctx={'db_session_service':sa_middleware.service,}web.run_app(register_graphql_handlers(# ... your other settings ...executor_context=ctx,))UseIn your resolver you can now access a new session for each request.Resolver example:query_resolvers.pyasyncdefresolve_new_request(parent,args,ctx,info):session=awaitctx['db_session_service']()u=session.query(YourModel).filter_by(uuid=args['uuid']).first()returnuNotesCurrently works using "Tartiflette Middleware" which only supports aiohttp.
Other servers supporting tartiflette could be supported via pull requests on
that project.
Package: tartiflette-scalars
some useful scalarsUsagefrom tartiflette import Scalar
from tartiflette_scalars import Json, ObjectId, AnyScalar

Scalar("Json")(Json) # gets anything

Scalar("AnyScalar")(AnyScalar) # infer the type, "2" becomes 2, "true" becomes True, etc.

Scalar("ObjectId")(ObjectId) # transform a 16 characters string into a bson.ObjectId
Package: tartiflette-starlette
DEPRECATEDThis project was renamed totartiflette-asgi.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.Unreleased0.6.1 - 2019-10-27This is a tombstone release.Renamed totartiflette-asgi.0.6.0 - 2019-10-18AddedAdd support for Tartiflette 1.x. (Pull #58)Officialize support for Python 3.8. (Pull #80)RemovedDrop support for Tartiflette 0.x. (Pull #58)0.5.2 - 2019-10-09AddedAdd support for Python 3.8. (Pull #55)FixedType annotations are now correctly detected bymypy. (Pull #66)Fix a bug that prevented the GraphiQL web interface from making queries when the application was mounted on a parent ASGI app. (Pull #51)0.5.1 - 2019-07-16FixedFixed a bug that prevented accessing the GraphiQL interface when subscriptions were not enabled.0.5.0 - 2019-07-12AddedWebSocket subscriptions, configurable with the newsubscriptionsoption onTartifletteApp.Pass extra context to resolvers using the newcontextoption onTartifletteApp.0.4.0 - 2019-07-04AddedSupport for Tartiflette 0.12.x.Add amountmodule with submounting helpers.Addmount.starlette().ChangedDue to the newengine cooking APIin Tartiflette 0.12,TartifletteAppnow includes a startup event handler responsible for building the GraphQL engine. If submounting, itmustbe registered on the parent ASGI app. Helpers in themountmodule take care of this for you.RemovedDrop support for Tartiflette 0.11.x and below.0.3.0 - 2019-07-03AddedGraphiQL configuration via theGraphiQLhelper. Options:path,default_query,default_headers,default_variables,template.ChangedInternal refactoring that leverages more of Starlette's capabilities.Documentation improvements.0.2.0 - 2019-06-10AddedSupport forstarlette>=0.12(previously>=0.12.0b3).Tartiflette is now installed too when installingtartiflette-starlette.ChangedThe defaultpathis now""(previously"/").The request is now accessible in the GraphQL context viacontext["req"](previouslycontext["request"]).If no error occurred, theerrorsfield is not present in the response anymore (previously wasNone).FixedMore robust URL matching onTartifletteApp.0.1.1 - 2019-04-28FixedAdd missinggraphiql.htmlpackage asset.0.1.0 - 2019-04-26AddedFeatures:TartifletteAppASGI application.Built-in GraphiQL client.Project-related additions:Package setup.Changelog.Contributing guide.README and documentation.
Package: tartpy
Python implementation of theActor Modelinspired fromtart.js.OverviewThe initial ideas fortartpyare copied from@dalnefreand@tristanls.  At the beginning, the goal was to replicatetart.jsin Python.  Lately, it has diverged slightly, to experiment with the
new Python asynchrony model introduced in version 3.4.tartpyaims to be an actor library with the following features:it implements the pure actor model (rather than the Erlang model),it can be used in practical situations to express lock-free and
concurrent algorithms,it abstracts the network transport to allow arbitrary protocols,it implements acapability based approachto isolate actors,
using membranes (again, the ideas are due to@dalnefreand@tristanls).  The semantics of membranes may differ betweentartpyandtartjs.InstallingInstall with:$ pip install git+https://github.com/waltermoreira/tartpyor clone this repository and install withpython3 setup.py install:$ git clone https://github.com/waltermoreira/tartpy
$ cd tartpy
$ python3 setup.py installTestRun tests with:$ python3 setup.py testExamplesRun example with:python3tartpy/example.pyThere is also anIPython notebookshowing the basic properties of actors.The projectactor_modelcontains slides and IPython notebooks from
a talk presented atTACCin April 17, 2014.Erlang ChallengeCreate a ring ofMactors, sendingNmessages around the ring:python3tartpy/erlang_challenge.pyMNBenchmarksForM = 100000andN = 10:Starting 100000 actor ring
Construction time: 1.5192079544067383 seconds
Loop times:
  0.7743091583251953 seconds
  0.7793149948120117 seconds
  0.7702958583831787 seconds
  0.7602570056915283 seconds
  0.7704610824584961 seconds
  0.779731035232544 seconds
  0.7654228210449219 seconds
  0.7625432014465332 seconds
  0.7740719318389893 seconds
  0.7699680328369141 seconds
Average: 0.7706375122070312 seconds
Package: tartrl
TARTRL欢迎来到TARTRL中文文档|DocumentationTARTRL是一个开源的强化学习框架。目录欢迎来到TARTRL目录安装快速上手支持者↳ Stargazers↳ ForkersCiting TARTRLLicense致谢安装pipinstalltartrl快速上手可以通过命令行快速训练CartPole环境:tartrl--modetrain--envCartPole-v1支持者↳ Stargazers↳ ForkersCiting TARTRL如果我们的工作对你有帮助，欢迎引用我们的论文:@misc{tartrl2023,
    title={TARTRL},
    author={TARTRL Contributors},
    publisher ={GitHub},
    howpublished ={\url{https://github.com/TARTRL/TARTRL}},
    year={2023},}LicenseTARTRL under the Apache 2.0 license.致谢
Package: tartrl-nightly
TARTRL欢迎来到TARTRL中文文档|DocumentationTARTRL是一个开源的强化学习框架。目录欢迎来到TARTRL目录安装快速上手支持者↳ Stargazers↳ ForkersCiting TARTRLLicense致谢安装pipinstalltartrl快速上手可以通过命令行快速训练CartPole环境:tartrl--modetrain--envCartPole-v1支持者↳ Stargazers↳ ForkersCiting TARTRL如果我们的工作对你有帮助，欢迎引用我们的论文:@misc{tartrl2023,
    title={TARTRL},
    author={TARTRL Contributors},
    publisher ={GitHub},
    howpublished ={\url{https://github.com/TARTRL/TARTRL}},
    year={2023},}LicenseTARTRL under the Apache 2.0 license.致谢
Package: tarts
Tarts LSP ClientTarts is a client library for managing language server requests & responses. Tarts is the featured lsp integration used in Biscuit code editor.TestingTests of Tarts usepytest. To run tests, first install the langservers needed, checkworkflow filefor further info.AcknowledgementsTarts is an up-to-date fork ofsansio_lsp_clientby Purple Myst.
Package: tart-tools
TART: Radio-telescope command line toolsThis module provides command line tools for operating Transient Array Radio Telescope (TART). These tools aretart_calibratetart_calibration_datatart_download_antenna_positionstart_upload_antenna_positionstart_download_datatart_download_gainstart_imagetart_upload_gainstart_set_modetart_vis2jsonTo generate an image from a telescope, try the following command which should display the current view from a telescope
on top of Signal-Hill near Dunedin New Zealand.tart_image --api https://tart.elec.ac.nz/signal --displayFor more information see theTART Github repositoryInstall Instructionstart_tools is available from standard python package repositories. Try:pip3 install tart_toolsAuthorsTim Molteno (tim@elec.ac.nz)Max Scheel (max@max.ac.nz)Development workIf you are developing this package, this should be installed usingmake developin which case changes to the source-code will be immediately available to projects using it.NEWS1.2.0b1 new tool: tart_get_archive_data super convenient to query the AWS cloud archive of TART data.1.1.2b8 Add an argument --rotate to tart_upload_antenna_positions (for first stage of calibration)1.1.2b7 Handle expiration of JWT tokens better (in tart_tools)1.1.2b7 TART tools update. Add a command line switch to specify output file for tart_download_data'1.1.2b6 Pass the lat and lon to catalog_url1.1.2b5 Require the python-dateutil library1.1.2b4 Require the requests library1.1.2b3 Change API of catalog_url to use lon and lat explicitly1.1.2b1 Fix a missing checksum call if a local file was partially downloaded (tart_download_data).1.1.2b0 Make h5 to json compatible with tart2ms json import.1.1b.8 New versioning to match tart. Move to new repository0.2.0b14. Improve API handler code.0.2.0b13. Clean up code to use other API endpoints.
Add CLI to --ignore some antennas
Add --n option to tart_download_data to stop after n downloads (used to grab the latest raw file)
Add CLI to use the influxdb0.2.0b12. Fix bug in get-gains option.0.2.0b11. Add a tart_set_mode binary.0.2.0b9. Add a timeout to all HTTP requests.0.2.0b8. Add a put method to the authorized api handler.0.2.0b7. Fix typo in tart_calibrate that stopped calibration working.0.2.0. New tart_download_data function.0.1.5. Python3 compatability changes
Package: tartube
Tartube is a GUI front-end for youtube-dl, yt-dlp and other compatible videodownloaders..- You can fetch a list of videos from your favourite channels and playlists onYouTube, BitChute, and hundreds of other websites- In buffering is an issue, you can download a temporary copy of a videobefore automatically opening it in your favourite media player- Tartube will organise your videos into convenient folders (if that's whatyou want)- Tartube can alert you when livestreams and debut videos are starting(YouTube only)- If you think the censors will remove a video, against the wishes of itscreators and before you've had a chance to watch it, Tartube can make anarchive copy- Tartube won't manipulate search results, unsubscribe you from your favouritechannels or deliberately conceal videos- Tartube is free and open-source software
Package: tart-web-api
TART: Radio-telescope high-level HTTP interfaceThis module is used to communicate with the TART radio telescope. It listens on a port on localhost, and
allows a web-based interface to communicate with the TART hardware.For more information see theTART github repositoryAuthorsTim Molteno (tim@elec.ac.nz)Max Scheel (max@max.ac.nz)Tim Miller (milletf1@gmail.com)Running The API ServerThe API server is a flask app written in Python. This is run using the 'flask' command line tool on the telescope host (Raspberry Pi)
that is installed as a dependency of this package. A shell script 'run_api.sh' should be created with the following contents:#!/bin/bash
export LOGIN_PW=password
export FLASK_APP=tart_web_api.main
flask runwhere 'password' is a secure password that can be used to log into the telescope web-application to configure your telescope.DockerWe are now using to deployment using docker. There is a Dockerfile for this in the TART/software/docker/tart_web_api directory.Twistedtwistd -n web --port 8080 --wsgi tart_web_api.appDevelopment workIf you are developing this package, this should be installed usingpython3 setyp.py developin which case changes to the source-code will be immediately available to projects using it.NEWSVersion 0.1.8 Python3 compatability
Package: tarun
#tarun一键解压所有的压缩包根据后缀，调用相应的tar命令installsudo python setup.py installruntarun filename当前支持的文件格式有1. xxx.tar
2. xxx.tar.gz
3. xxx.gz
4. xxx.bz2
5. xxx.bz
6. xxx.tar
7. xxx.Z or xxx.z
8. xxx.tar.z or xxx.tar.Z
9. xxx.ziplicense  MIT
Package: tasa
A simple framework for distributed task workflow using redis. Designed
to be easily extensible with code, rather than excessively featureful
out of the box.Getting StartedTasa requires a version of Python 2.7. If you’re using an older
version, now is an excellent time to upgrade. If you’re running Python
3, compatibility patches are welcome.Quickstart example for Debian:sudo apt-get install redis-server python-pip nmapsudo pip install -U tasawgethttps://raw.github.com/PaulMcMillan/tasa/master/examples/tnmap.pymkdir outtasa tnmap:Runner &tasa tnamp:Results &python tnmap.py 10.0.0.0/24This quickstart installs tasa, downloads an example script for
distributed nmap, runs one task worker and one results worker, and
then inserts a job to scan a portion of your local net.To actually use this example to distribute a task, on each worker node:sudo apt-get install python-pip nmapsudo pip install -U tasawgethttps://raw.github.com/PaulMcMillan/tasa/master/examples/tnmap.pyconfigure/etc/tassa/tasa.confto contain a configuration line likeredis=’redis://password@example.org:6379/0’tasa tnmap:RunnerThen run the results worker and inject jobs from the master
machine. Experiment with changing values in the script - the example
is actually general enough to run any process, not just nmap.Don’t forget to configure your redis server to listen on an ip
accessible to your clients, and set a password even if you are on a
private network. If you’re on an untrusted network, you’re responsible
for encryption - either tunnel over an SSH port forward, or wrap redis
in TLS using stud/stunnel.How does it work?Tasa is primarily a thin framework to help you build composable work
flows. Break your problem into small chunks, run workers on several
machines, and insert jobs into the worker’s input queue, and consume
them from the output.FAQI get a traceback with “redis.exceptions.ResponseError: operation
not permitted”Did you remember to set aredissetting in/etc/tasa/tasa.conf?
This will happen if you added a redis password and did not set a
connection string.What version of redis-server do I need?Tasa is developed with redis 2.6.16. Older versions aren’t explicitly
tested, though the 2.4 branch will probably work with reduced
functionality. Newer versions should work without trouble.SecurityThe security of tasa depends entirely on how you use it. If you use a
password and tunnel redis communications over an encrypted and
authenticated transport, you’ll do pretty well. The easiest way to do
this is to use SSH port forwarding or ipsec to transport redis
traffic. You can also put stud in front of redis to do TLS, though
this is more complex.The author uses tasa workers primary on disposable cloud hosts.
Package: ta-scanner
Technical Analaysis ScannerGoalsThis software attempts to provide a framework that does a combination of
(1) scanning and, (2) backtesting to ask and answer such questions as,which instruments have responded well to the 4 hr MACD(26, 9, 12) in the
last quarter?which stocks are getting close to their 20/50 Moving Average Crossover, and
of those stocks, which have responded more than +/- 2.5% in the past?which instruments in the last 2 weeks after trended out of their opening
ranges? What is the 1 and 2 std dev band for each isntrument at 30 minute
intervals?Digging a little deeperTechnical analysis sometimes works, and sometimes doesn't. The goal of this
codebase is to provide means/methods for measuring a universe of instruments
and determine which ones are behaving in line with various TA patternsIt's intended to work differently than a traditional backtester (eg, a
Quantopian and QuantConnect). From what I undestand about backtesting, the
goal is to provide predetermined entry and exit rules, and measure the
results for a single or multiple instruments. This software is didferent
it that it intends to experiment with the entry and exit rules and see how
those adjustments impact results.StructureCore Framework lives in this repo, and your secret sauce parameter/configs,
research findings live in another one.This repo will feel like a mono repo to many, and focuses ondownloading market data (currently using IB API Gateway)exposing market datarunning multi-variate simulationsreporting resultsReleasingpython setup.py sdist bdist_wheel
twine upload dist/*