Saravanan666/pypi-org huggingface dataset:
Package: tastopo
TasTopoGenerate printable topographic maps for anywhere in Tasmania.The Tasmanian Government'sListMap serviceprovides an online map viewer that can display a wealth of publicly accessible geospatial data covering the whole of Tasmania. It allows users to generate maps as printable PDFs, but lacks fine-grained controls.TasTopo is a command-line tool that provides an alternative way to create printable maps using ListMap data. It uses the ListMap ArcGIS API to fetch an image of the map area required, before wrapping it in a minimal SVG template and exporting it as a PDF file.FeaturesLocation searchable by name or geo URIContinuously variable scale ratioDynamic sheet sizing from A5 to A0Landscape or portrait orientationMinimal design to maximise map areaSVG and PDF export formatsEnhanced hillshade overlayInstallationTasTopo requires Python 3 and can be installed using Pip:python3-mpipinstalltastopoUsagetastopo generate [options] <location>To generate a map, provide either the name of a place, or its coordinates as ageo URIfor the<location>argument, as well as any options required. Valid locations include:kettering'kunyani / Mount Wellington''geo:-43.643611,146.8275'Layout options--scale: Specify the scale of the printed map (defaults to 25000)--title: Set the title on the map sheet, instead of the location name--paper: Specify the paper size for printing (defaults to A4)--portrait: Orientate the map in portrait, rather than landscapeFor details of all the available options runtastopo --help.ExampleA PDF version of the the map image shown above can be generated using the following command:tastopogenerate--papera5--scale28000ketteringLicense and copyrightTasTopo is released under theMIT license.Mapping data is sourced from Land Tasmania's ListMap service, under the Creative Commons 3.0 Australia license. Topographic and hillshade grey map layers fromwww.thelist.tas.gov.au© State of Tasmania.
Package: tastybone
TastyBone=========Expose TastyPie to your client. Nicely.Dependencies------------Before including this script, make sure that you have included the followingscripts in your document. Without them, this thing is going to misbehave likeyou wouldn't believe!- jQuery- underscore.js- backbone.jsNote that I did not introduce any of these dependencies (aside from the obviousbackbone.js dependency). These are all dependencies required by any site usingbackbone.js to grab data over AJAX - which is exactly what we need forTastyBone.How does it work?-----------------TastyBone allows you to easily connect backbone.js to your Django TastyPieAPIs. It can understand all of your resources with a single line - whichlooks like this:bone = new TastyBone.Bone('/api/v1/');This will connect to the current origin at the URL /api/v1, and it willuse the root URL to find all endpoints which exist on your site. Afterthese endpoints are found, the bone object will fire a ready event.So, if you had exposed a User resource at /api/v1/user/ - you could get acollection of user models as such:bone = new TastyBone.Bone('/api/v1/');bone.on('ready', function get_collections() {users = new bone.collections.UserCollection();users.fetch({'success': function get_users(response) {// Hooray! We found our users.console.dir(response);},'error': function get_users_error(response) {console.log('Oh, no! An error!');}});};Django support--------------TastyBone is already in pip, and provides a super simple app that will appendtastybone.js and tastybone.min.js to your static files. Simply installtastybone from pypi with your favorite frontend. Here's how it looks with pip:pip install tastyboneAfter this is done installing, append the tastybone module to yourINSTALLED_APPS setting:INSTALLED_APPS = (# All of your other awesomely fancy apps here.'tastybone',)Now, (after having run `manage.py collectstatic` if necessary) you should beable to access *tastybone.js* or *tastybone.min.js* under your STATIC_URL. Forinstance, if STATIC_URL is equal to '/static/' then you'd find the script here:<script src="/static/scripts/tastypie.min.js"></script>Things that still need done---------------------------- Proper authentication/authorization support for TastyPie's built-in types.
Package: tastyigniter
TastyIgniter Python APIThis python package is an async wrapper to access the TastyIgniter order system APIs.When initialized the API requires you to provide username and password for authentication to the TastyIgniter system as configured in the API settings. You will also need to pass the domain for the TastyIgniter instance.The following functions are currently available:get_locations:
Retrieve a list of restaurant locations which are configured on the system.get_enabled_locations:
Return only locations which are currently enabled on the system.get_orders:
Return all orders from the system.get_received_orders:
Return only orders in Received status from the system.
Package: tastymap
TastyMap🎨 Color palettes for your palate 😋Make, customize, and/or use colormaps, any way you like.📖 Quick startStart cooking from pre-made colormaps...fromtastymapimportcook_tmaptmap=cook_tmap("viridis",num_colors=12,reverse=True)tmapOr start from scratch!fromtastymapimportcook_tmaptmap=cook_tmap(["red","green","blue"],num_colors=256,reverse=True,name="rgb",)tmapThen pair it with your plots effortlessly:importnumpyasnpfrommatplotlibimportpyplotaspltfromtastymapimportcook_tmap,pair_tbarfig,ax=plt.subplots()img=ax.imshow(np.random.random((10,10)))tmap=cook_tmap(["red","green","blue"],num_colors=256)pair_tbar(img,tmap,bounds=[0,0.01,0.5,1],labels=["zero","tiny","half","one"],uniform_spacing=True,)Or if you need suggestions, get help from AI by providing a description of what you're imagining:fromtastymapimportaitmap=ai.suggest_tmap("Pikachu")tmapTry to craft your visual delightinteractivelywith the TastyKitchen UI, hostedhere.tastymapuiCheck out thedocsfor more recipes!📦 InstallationTo get started on your culinary color journey, installtastymapwith:pipinstalltastymapTo get access to TastyKitchen UI, installtastymapwith:pipinstalltastymap[ui]Documentation:https://ahuang11.github.io/tastymap/Source Code:https://github.com/ahuang11/tastymap
Package: tastypie-client
Tastypie-client is a client API forDjango-TastypieRESTservices.Quick startThese examples work on thetastypie_tutorialDjango project.Create anApiobject>>> from tastypie_client import Api
>>> api = Api('http://127.0.0.1:8000/api/1/')
>>> api
<Api: http://127.0.0.1:8000/api/1/>Finds an user by its ID>>> api.user
<EndpointProxy http://127.0.0.1:8000/api/1/user/>
>>> user = api.user(1)
>>> user
<Resource user/1: {u'username': u'test_user', ...}>
>>> user.username
u'test_user'Look at its posts>>> user.posts
[u'/api/1/entry/1/', u'/api/1/entry/2/']Get the first one>>> user.posts[0]
Resource entry/1: {u'body': u'foo body', u'title': u'foo!', u'id': u'1', u'user': <ResourceProxy user/1>, u'pub_date': u'2012-04-29T08:55:08', u'slug': u'foo'}>Alternatively, you load both of them with an unique HTTP request>>> user.posts[:]
[<Resource entry/1: {u'body': u'foo body', u'title': u'foo!', u'id': u'1', u'user': <ResourceProxy user/1>, u'pub_date': u'2012-04-29T08:55:08', u'slug': u'foo'}>,
 <Resource entry/2: {u'body': u'bar body', u'title': u'bar title', u'id': u'2', u'user': <ResourceProxy user/1>, u'pub_date': u'2012-04-29T08:55:21', u'slug': u'bar'}>]
Package: tastypie-mongodb-resource
MongoDB Resource for TastypieAllows you to create delicious APIs for MongoDB.SettingsMONGODB_HOST = None
MONGODB_PORT = None
MONGODB_DATABASE = "database_name"

# optional:
MONGODB_USERNAME = None
MONGODB_PASSWORD = NoneExample of Usagefrom tastypie import fields
from tastypie.authorization import Authorization

from tastypie_mongodb.resources import MongoDBResource, Document

class DocumentResource(MongoDBResource):

    id = fields.CharField(attribute="_id")
    title = fields.CharField(attribute="title", null=True)
    entities = fields.ListField(attribute="entities", null=True)

    class Meta:
        resource_name = "documents"
        list_allowed_methods = ["delete", "get", "post"]
        authorization = Authorization()
        object_class = Document
        collection = "documents" # collection nameContributorsFerrix Hovi (<https://github.com/ferrix>)Alper Kanat (<https://github.com/tunix>)
Package: tastypie-msgpack
Created byStephen McDonaldAddsMsgPacksupport toDjango Tastypie.Installation$ pip install -U tastypie-msgpackUsageGiven a tastypie resource, simply definetastypie_msgpack.Serializeras the serializer for the resource:from tastypie.resources import ModelResource
from tastypie_msgpack import Serializer
from myapp.models import MyModel

class MyResource(ModelResource):
    class Meta:
        resource_name = "thing"
        queryset = MyModel.objects.all()
        serializer = Serializer()You can now append theformat=msgpackarg to your API URLs!
Package: tastypie-queryset-client
Tastypie Queryset ClientClient forTastypie.Provide operation similar to the Django Model API .UsageGet>>> client = Client("http://api.server.com/your/v1/")
>>> client.your.objects.get(name="your")
<your: {u"id": u"1", u"name": u"your", u"status": u"any"}>Count>>> client = Client("http://api.server.com/your/v1/")
>>> client.your.objects.count()
100Filter>>> client = Client("http://api.server.com/your/v1/")
>>> client.your.objects.filter(name="your")
<QuerySet <class 'Response'> (3/3)>Save>>> client = Client("http://api.server.com/your/v1/")
>>> your = client.your(name="name")
>>> your
<your: {u"name": u"name"}>
>>> your.save()  # save Your object.
>>> your
<your: {u"id": u"2", u"name": u"name"}>Delete>>> client = Client("http://api.server.com/your/v1/")
>>> message = client.message(subject="subject delete 1", body="body delete 1")
>>> message.save()
>>> message.id
<message: {u"id": u"1", u"subject": u"subject delete 1", u"body": u"body delete 1"}>
>>> message.delete()  # remove Message object.
>>> try:
>>>     message.id
>>> except AttributeError:
>>>     assert True  # throw AttributeError.Setup$ pip install tastypie-queryset-clientDocumentationtastypie-queryset-client.readthedocs.orgLicenseMIT License
Package: tastypie-queryset-client-p3k
Tastypie Queryset ClientClient forTastypie.Provide operation similar to the Django Model API .This is a fork of original project modified to run under python >=3.3UsageGet>>> client = Client("http://api.server.com/your/v1/")
>>> client.your.objects.get(name="your")
<your: {u"id": u"1", u"name": u"your", u"status": u"any"}>Count>>> client = Client("http://api.server.com/your/v1/")
>>> client.your.objects.count()
100Filter>>> client = Client("http://api.server.com/your/v1/")
>>> client.your.objects.filter(name="your")
<QuerySet <class 'Response'> (3/3)>Save>>> client = Client("http://api.server.com/your/v1/")
>>> your = client.your(name="name")
>>> your
<your: {u"name": u"name"}>
>>> your.save()  # save Your object.
>>> your
<your: {u"id": u"2", u"name": u"name"}>Delete>>> client = Client("http://api.server.com/your/v1/")
>>> message = client.message(subject="subject delete 1", body="body delete 1")
>>> message.save()
>>> message.id
<message: {u"id": u"1", u"subject": u"subject delete 1", u"body": u"body delete 1"}>
>>> message.delete()  # remove Message object.
>>> try:
>>>     message.id
>>> except AttributeError:
>>>     assert True  # throw AttributeError.Setup$ pip install tastypie-queryset-clientDocumentationtastypie-queryset-client.readthedocs.orgLicenseMIT License
Package: tastypie-redis-resource
Redis Resource for TastypieAllows you to create delicious APIs for Redis.SettingsREDIS_HOST = localhost
REDIS_PORT = 6379
REDIS_DATABASE = "database_name"Example of Usagefrom tastypie import fields
from tastypie.authorization import Authorization

from tastypie_redis.resources import RedisResource, Document

class DocumentResource(RedisResource):
    id = fields.CharField(attribute="_id")
    title = fields.CharField(attribute="title", null=True)
    entities = fields.ListField(attribute="entities", null=True)

    class Meta:
        resource_name = "documents"
        list_allowed_methods = ["delete", "get", "post"]
        authorization = Authorization()
        object_class = Document
        collection = "documents" # collection name
Package: tastypie-services
A simple API end point that we’ve found useful for our Tastypie API services at
Mozilla.InstallationInstall using pip:pip install tastypie-servicesNote: version 2 renamed the lib from services to tastypie_services.ConfigurationAdd to your urls:from tastypie_services.urls import services

urlpatterns = patterns('',
        ...
        url(r'^', include(services.urls)),
)If you want to allow settings access, set:CLEANSED_SETTINGS_ACCESS = FalseThe actual server status is very specific to your server, so you need to create
a base class overriding the one in services. The tell the library where the
object is. For example:SERVICES_STATUS_MODULE = 'lib.services.resources'Then inlib.tastypie_services.resources:from tastypie_services.services import StatusObject as Base

class StatusObject(Base):

    def test_cache(self):
        cache.set('status', 'works')
        if cache.get('status') == 'works':
                self.cache = TrueSee solitude for an example of this.
Package: tastystyle
tastystylea small python package for styling the terminal. how original, i know.tastystyle supports colours, bold text, dim text, italics, underlined, background and foreground reversal and strikethrough text.please note not all styles work on windowscolourstext is coloured with thebg()andfg()commands. it support keywords, rgb colours, and hex colours.example:fromtastystyleimportcolorsasc# keywordprint(f'{c.FG("GREEN")}Green!{c.RESET()}')# rgbprint(f'{c.FG(65,214,62)}Green!{c.RESET()}')# hexprint(f'{c.FG("#41d63e")}Green!{c.RESET()}')all keywordsnamergbhexRED214, 62, 62#d63e3eORANGE214, 143, 62#d68f3eYELLOW211, 214, 62#d3d63eL_GREEN98, 214, 96#62d660GREEN65, 214, 62#41d63eCYAN62, 214, 199#3ed6c7L_BLUE62, 161, 214#3ea1d6BLUE62, 65, 214#3e41d6PURPLE181, 62, 214#b53ed6VIOLEET214, 62, 209#d63ed1othertext can be styled in other ways with the following:fromtastystyleimportstylesass# boldprint(f'{s.BOLD()}bold text{s.RESET()}')# italicprint(f'{s.ITALIC()}italic text{s.RESET()}')# underlineprint(f'{s.UNDER()}underlined text{s.RESET()}')# strikethroughprint(f'{s.STRIKE()}strikethrough text{s.RESET()}')# dimprint(f'{s.DIM()}dim text{s.RESET()}')# reversedprint(f'{s.REVERSE()}reversed text{s.RESET()}')created with ❤ by tastyl
Package: tastytrade-api
Tastytrade API Python SDKThe Tastytrade API, which my Python module relies on, is currently in beta.A Python client for the Tastytrade API, providing convenient access to Tastytrade's REST API for trading, account management, and more.InstallationInstall the package using pip:pipinstalltastytrade-apiUSAGEHere's an example of how to use the Tastytrade API client:fromtastytrade_api.authenticationimportTastytradeAuthusername="your_username"password="your_password"# Initialize the authentication objectauth=TastytradeAuth(username,password)# Log in to the APIauth_data=auth.login()ifauth_data:print("Successfully logged in!")else:print("Failed to log in.")# Validate the sessionis_valid=auth.validate_session()ifis_valid:print("Session is valid.")else:print("Session is invalid or expired.")# Destroy the session (log out)ifauth.destroy_session():print("Successfully logged out.")else:print("Failed to log out.")DevelopmentTo run tests, first install the required development packages:pipinstall-rrequirements-dev.txtThen, execute the tests using unittest:python-munittestdiscoverLicenseThis project is licensed under the MIT License. See the LICENSE file for details.
Package: tastytrade-sdk
Getting StartedBefore using this SDK, ensure that you:have aTastytrade accounthave opted into theTastytrade Open API programInstallpipinstalltastytrade-sdkUse Itfromtastytrade_sdkimportTastytradetasty=Tastytrade()tasty.login(login='trader@email.com',password='password')tasty.api.post('/sessions/validate')tasty.logout()ExamplesStreaming Market Datafromtastytrade_sdkimportTastytradetasty=Tastytrade().login(login='trader@email.com',password='password')# Subscribing to symbols across different instrument typessymbols=['BTC/USD','SPY','/ESU3','SPY   230630C00255000','./ESU3 EW2N3 230714C4310']subscription=tasty.market_data.subscribe(symbols=symbols,on_quote=print,on_candle=print,on_greeks=print)# start streamingsubscription.open()
Package: tastyworks
Tastyworks (Unofficial) APIDisclaimerThis is an unofficial, reverse-engineered API for Tastyworks. There is no implied warranty for any actions and results which arise from using it.PurposeA simple, async-based, reverse-engineered API for tastyworks. This will allow you to create trading algorithms for whatever strategies you may have.Please note that this is in the very early stages of development so any and all contributions are welcome. Please submit an issue and/or a pull request.Installationpip install tastyworks✨ 🍰Since it's an async-based API, please make sure you're familiar with how asynchronous python works (Note: Python 3.6 or higher).An example use is provided inexample.pyin thetastyworksfolder. See for yourself by adding your tastyworks username/password and running:tastyGuidelines and caveatsThere are a few useful things to know which will help you get the most out of this API and use it in the way it was intended.All objects are designed to be independent of each other in theirsteady-state. That is, unless executing an action, all objects are not bound to each other and have no knowledge of each other's awareness.One can have multiple sessions and, due to the inter-object independence, can execute identical actions on identical objects in different sessions.Given the above points, this APIdoes notimplement state management and synchronization (i.e. are my local object representations identical to the remote [Tastyworks] ones?). This is not an indefinitely closed matter and may be re-evaluated if the need arises.ContributingThe more hands and brains that can help with this project, the better. It was implemented with the effort of getting something working rather than something beautiful as it is a reverse-engineering effort in progress.
I would appreciate any input (be it in the form of issue reporting or code) on how to make this code-base better.You can find the official GitHub repo at:https://github.com/boyan-soubachov/tastyworks_apiTODOI would really appreciate any help/contributions with the TODO's scattered all around the codebase. If they're not descriptive enough, I'd be happy to provide more details.
Package: tastyworks-aiocometd
aiocometdaiocometd is aCometDclient built usingasyncio, implementing theBayeuxprotocol.CometDis a scalable WebSocket and HTTP based event and message routing bus.CometDmakes use of WebSocket and HTTP push technologies known asCometto
provide low-latency data from the server to browsers and client applications.FeaturesSupported transports:long-pollingwebsocketAutomatic reconnection after network failuresExtensionsUsageimportasynciofromaiocometdimportClientasyncdefchat():nickname="John"# connect to the serverasyncwithClient("http://example.com/cometd")asclient:# subscribe to channels to receive chat messages and# notifications about new membersawaitclient.subscribe("/chat/demo")awaitclient.subscribe("/members/demo")# send initial messageawaitclient.publish("/chat/demo",{"user":nickname,"membership":"join","chat":nickname+" has joined"})# add the user to the chat room's membersawaitclient.publish("/service/members",{"user":nickname,"room":"/chat/demo"})# listen for incoming messagesasyncformessageinclient:ifmessage["channel"]=="/chat/demo":data=message["data"]print(f"{data['user']}:{data['chat']}")if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(chat())For more detailed usage examples take a look at thecommand line chat exampleor for a more complex example with
a GUI check out theaiocometd-chat-demo.Documentationhttps://aiocometd.readthedocs.io/Changelog0.4.5 (2019-03-14)Fix connection issues when used with reverse proxy servers with cookie based
sticky sessions0.4.4 (2019-02-26)Refactor the websocket transport implementation to use a single connection
per client0.4.3 (2019-02-12)Fix reconnection issue on Salesforce Streaming API0.4.2 (2019-01-15)Fix the handling of invalid websocket transport responsesFix the handling of failed subscription responses0.4.1 (2019-01-04)Add documentation links0.4.0 (2019-01-04)Add type hintsAdd integration tests0.3.1 (2018-06-15)Fix premature request timeout issue0.3.0 (2018-05-04)Enable the usage of third party JSON librariesFix detection and recovery from network failures0.2.3 (2018-04-24)Fix RST rendering issues0.2.2 (2018-04-24)Fix documentation typosImprove examplesReorganise documentation0.2.1 (2018-04-21)Add PyPI badge to README0.2.0 (2018-04-21)Supported transports:long-pollingwebsocketAutomatic reconnection after network failuresExtensions
Package: tastyworks-cli
tastyworks-cliAn easy-to-use command line interface for Tastyworks!Installation$ pip install tastyworks-cliUsageAvailable commands:twcli option              buy, sell, and analyze options
twcli plot                chart your portfolio's net liquidity or profit/loss over timeUnavailable commands pending development:twcli crypto              buy, sell, and analyze cryptocurrencies
twcli future              buy, sell, and analyze futures
twcli order               view, replace, and cancel orders
twcli pairs               analyze and size pairs trades
twcli portfolio           view statistics and risk metrics for your portfolio
twcli quant               mathematical and statistical analysis
twcli stock               buy, sell, and analyze stock
twcli watchlist           view current prices and other data for symbols in your watchlistsFor more options, runtwcli --helportwcli <subcommand> --help.Development/ContributingThis project includes a number of helpers in theMakefileto streamline common development tasks.Creating a virtualenv for development:$ make venv
$ source env/bin/activateInstall the package:$ pip install -e .It's usually a good idea to make sure you're passing tests locally before submitting a PR:$ make testIf you have a feature suggestion, find a bug, or would like to contribute, feel free to open an issue or create a pull request.Disclaimertastyworks and tastytrade are not affiliated with the makers of this program and do not endorse this product. This program does not provide investment, tax, or legal advice. Stock trading involves risk and is not suitable for all investors. Options involve risk and are not suitable for all investors as the special risks inherent to options trading may expose investors to potentially significant losses. Futures and futures options trading is speculative and is not suitable for all investors. Cryptocurrency trading is speculative and is not suitable for all investors.
Package: tatarubot2
TataruBot2基于NoneBot2的最终幻想14机器人塔塔露这里是塔塔露功能作为nonebot2插件安装的指南当前功能塔塔露帮帮忙：显示所有功能暖暖：本周时尚品鉴作业选门：帮你选藏宝洞的门仙人彩：帮你选每周仙人仙彩数字物品 物品名：查询物品信息，例：物品 铁矿价格 大区 物品名：查询板子物价，大区不写默认豆豆柴，例：价格 陆行鸟 铁矿、价格 叶小妖看看微博：获取FF微博新闻房子 服务器名 主城名 房子大小：查询空房。主城名为：森都、海都、沙都、白银、雪都。房子大小为：S、M、L。例:房子 银泪湖 森都 S输出 boss名 职业名 (国服) (rdps) (day2): 查询logs上对应boss和职业的dps分段，括号内为可选的参数，默认国际服、adps、截止最后一天。
例:输出 海德林 武士，输出 海德林 武士 国服 day10攻略 (副本等级) 副本名关键字 (文本)：查简单副本攻略，括号内为可选参数，默认输出图片攻略日历：获取FF近期活动日历招募 大区名：获取指定大区招募板信息抽卡：随机抽取一张FF14塔罗牌依赖python >= 3.7.3如果有NoneBot v1则卸载pip uninstall nonebot本代码测试使用的NoneBot版本是 nonebot2==2.0.0b4↑↑↑ 既然是作为nonebot2的插件，上面的1.2.3.你应该都已经达到了，姑且放在这里提一下使用安装塔塔露机器人插件包# 为了防止出啥意外先把旧的删了吧pipuninstalltatarubot2# 如果以前装过塔塔露机器人，把配置文件也删了rmtatarubot2_conf.json# 安装最新插件pipinstall-Utatarubot2进入你的机器人文件夹，根据需要修改配置文件.env.dev，更多信息见NoneBot2官方文档# 注意配置命令起始字符# 我的习惯是直接纯中文作为命令，所以添加了一个空 ""，如下所示COMMAND_START=["/",""]在bot.py中加载插件nonebot.load_builtin_plugins("tatarubot2")首次启动机器人，会自动在机器人文件夹内生成一个插件的配置文件tatarubot2_conf.jsonnbrun根据需要选择开启哪些插件，修改tatarubot2_conf.json，将对应"enable"改为true启动机器人nbrun使用go-cqhttp连接机器人，该部分参考go-cqhttp官方文档。需要注意的是配置中反向websocket设置参考文档https://adapter-onebot.netlify.app/docs/guide/setup备注NoneBot2官方文档：https://v2.nonebot.dev/NoneBot2 github：https://github.com/nonebot/nonebot2go-cqhttp连接配置：https://adapter-onebot.netlify.app/docs/guide/setupgo-cqhttp github：https://github.com/Mrs4s/go-cqhttp