Saravanan666/pypi-org huggingface dataset:
Package: ticketml
# ticketml [![Build Status](https://travis-ci.org/lukegb/ticketml.svg?branch=master)](https://travis-ci.org/lukegb/ticketml) [![PyPI Version](https://pypip.in/version/ticketml/badge.svg?style=flat)](https://pypi.python.org/pypi/ticketml)A small XML-based markup language for ticketsWhy?====As part of the code I write for [Imperial Cinema](http://www.imperialcinema.co.uk), I decidedI need some way of cleanly abstracting over multiple different (but similar) ticket printers.I decided on a sort-of HTML-ish language, for which you will find a parser and ticket printingbackend for the following receipt printers:* Citizen CBM-1000* IBM 4610 family (tested on the 4610-TF6)The XML=======The XML document has the following sort of style:```xml<?xml version="1.0" ?><ticket><head><logo num="1" />not bold<b> suddenly bold</b> not bold again<br />not underlined <u>suddenly underlined</u> not underlined<br />now <b>for <u>a mix</u></b> <u>of <b>settings</b></u><br/><align mode="center"><logo num="2" /></align>base font<br /><font width="2">2x wide</font><br /><font height="2">2x high</font><br /><font width="2" height="2">2x big</font><br /><font width="8" height="8">MASSIVE</font></head></ticket>```(Note that this document is formatted neatly - leading per-line whitespace is NOT stripped by the parser and may cause you issues!)The following tags are implemented - unknown tags are ignored (but are still recursed into!):* `ticket`: this is the root tag and is not treated specially* `b`: activates emphasis (usually bold)* `u`: activates underlining* `logo num="NUMBER"`: prints pre-loaded image NUMBER* `align mode="left|right|center"`: changes the alignment of text* `br`: prints a newline* `font (width="WIDTH") (height="HEIGHT")`: changes the font width/height multiplierUsing it========At the moment there's a fairly simplistic API. In order to get started, you'll need some sort of file-like output device. This is usually a PySerial `Serial` object.```pythonimport serialoutput = serial.Serial('/dev/ttyS1', 19200)```Now that you have an output device, you can construct a `Backend`. At present there's a choice of two, the `CbmBackend` (for Citizen CBM-1000 printers) and the `Ibm4610Backend` (for IBM 4610 series printers). Backends are up to take whatever arguments they choose - at the moment this is just the output device they should talk to.```pythonbackend = ticketml.Ibm4610Backend(output)```Now you can finally construct a parser. This takes place in two stages - first you parse the input XML, then you tell the parser to render it to the output device:```pythonticket = ticketml.TicketML.parse('<?xml version="1.0" ?>\n<ticket>Hello! This is my first ticket!</ticket>')context = {}ticket.go(context, backend)```The `context` parameter is unused at the moment, but is planned to be used for future templating functionality.
Package: tickets
tickets提供基于命令行的火车票、演出及热映电影的信息查询.Usage火车查询命令行下输入:$ tickets 上海虹桥 北京 617你将获得本年6-17从上海虹桥到北京的火车票信息:…当然你也可以指定火车的类型和输入完整的查询日期, 比如:$ tickets -dg 上海 北京 20160617只查询动车和高铁.演出查询命令行下输入：$ tickets 南京 音乐会你将获得未来15天内在南京的音乐会信息：当然, 你也可以指定查询未来多少天:$ tickets 上海 演唱会 7只查询一周内的信息.电影查询命令行下输入:$ tickets -m 或者 $ tickets 电影你将获得当前热映的电影信息:输出电影信息后，你可以输入你感兴趣的电影编号查看电影简介, 比如输入2获得独立日的简介:输入q或quit退出.Installtickets使用Python3编写，请使用pip3安装:$ pip3 install tickets或者下载源码安装:$ git clone https://github.com/protream/tickets然后到下载目录:$ ./setup.py installHelpUsage:
    tickets (-m|电影)
    tickets <city> <show> [<days>]
    tickets [-dgktz] <from> <to> <date>

Arguments:
    from             出发站
    to               到达站
    date             查询日期

    city             查询城市
    show             演出的类型
    days             查询近(几)天内的演出, 若省略, 默认15


Options:
    -h, --help       显示该帮助菜单.
    -d               动车
    -g               高铁
    -k               快速
    -t               特快
    -z               直达

    -m               查询当前热映的电影

Show:
    演唱会 音乐会 比赛 话剧 歌剧 舞蹈 戏曲 相声 音乐剧 歌舞剧 儿童剧 杂技 马戏 魔术

Examples:
    tickets -m
    tickets 电影

    tickets 上海 演唱会
    tickets 北京 比赛 7

    tickets 南京 北京 201671
    tickets -k  南京南 上海 2016-7-1
    tickets -dg 上海虹桥 北京西 2016/7/1Notes火车票查询最多查询未来50天内.确保你的查询日期不要有歧义, 比如111可以是1.11也可以是11.1, 默认解析为11.10.3.0新功能，查询热映电影信息及电影简介优化火车查询日期处理，本年内不需要输入年小bug修复0.2.4修正Windows下面的编码问题修正查询show时不支持城市报错问题0.2.3不再使用colorama改变显示演出的方式0.2.2小bug修复0.2.1setup缺失colorama修复0.2.0不再支持Python2重构了代码增加的查询演出门票的功能0.1.1use unicode globaladd a logo0.1.0Make it live!Added to PyPI
Package: ticketscloud
Ticketscloud API Client – A python client for API ticketscloud.ruDocs are available at https://ticketscloud.readthedocs.org/. Pull requests
with documentation enhancements and/or fixes are awesome and most welcome.ContentsRequirementsInstallationUsageInitialize API clientCustomize optionsWorking with TC APIContext managerRaw api requestBug trackerContributingContributorsLicenseRequirementspython >= 2.6InstallationTicketscloud API Clientcould be installed using pip:pip install ticketscloudUsageInitialize API clientYou should haveapi_token, from the TC service.from ticketscloud import TCClient

client = TCClient(api_token='your-token-here')Customize optionsclient = TCClient(
    access_token='your-token-here',
    api_root='http://ticketscloud.ru',
    api_version='v1',
    loglevel='info',
    user_agent='TC-Client',
)Working with TC APIThe client has nice and easy syntax. Just have a look:# Get events list GET http://ticketscloud.ru/v1/resources/events
client.api.resources.events()
client.api.resources.events['event-id']()

# Get deals list with scheme GET http://ticketscloud.ru/v1/resources/deals
client.api.resources.deals(**{
    'fields-schema': 'id,event{id},term{extra}', 'status': 'accepted'})

# Create a new order POST http://ticketscloud.ru/v1/resources/orders/
client.api.resources.orders.post(total=..., event=...)

# Update a order PATCH http://ticketscloud.ru/v1/resources/orders/<id>
client.api.resources.orders['id'].patch(status=)

# You could also use a 'getitem' syntax for resources
client.api.resources['custom-resource-name'](**params)
# Same there
client.api['resources']['custom-resource-name'](**params)

# And etc. I hope you make decision how the client works :)Context managerYou could temporary redefine the client settings in context:with client.ctx(loglevel='DEBUG'):
    # More logging here
    client.api.resources.deals(**params)Raw api requestYou could make a raw request to TC API:client.request(method='GET', url='v1/resources/events', data={...})Have a nice codding!Bug trackerIf you have any suggestions, bug reports or
annoyances please report them to the issue tracker
athttps://github.com/Dipsomaniac/ticketscloud/issuesContributingDevelopment of starter happens at github:https://github.com/Dipsomaniac/ticketscloudContributorsklen(Kirill Klenov)LicenseLicensed under aBSD license.
Package: ticket-universe
Ticket UniverseA command line interface and library to generate a universe of unique ticket codes in Python 3.x.InstallationTicket Universe can be installed via pip:pip install ticket-universeUsageTicket Universe can be used as library and as command line interface.Command line interfaceThe ticket universe cli provides a means to generate a universe and write
it to stdout.usage: ticket-universe [-h] [--offset OFFSET] [--limit LIMIT]
                       [POSITION [POSITION ...]]

example: ticket-universe fixed:LTFY- alpha numeric numeric numeric

positional arguments:
  POSITION         alpha | alpha:safe_latin | numeric | range:min:max |
                   fixed:{} | binary

optional arguments:
  -h, --help       show this help message and exit
  --offset OFFSET
  --limit LIMITLibraryfromticket_universe.positionimportFixedPosition,AlphaPosition,NumericPosition,RangedPositionfromticket_universe.universeimportUniversestandard_universe=Universe([FixedPosition('LTFY-'),AlphaPosition(),NumericPosition(),NumericPosition()])# ['LTFY-A00', ..., 'LTFY-Z99']print([tfortinstandard_universe])# Alternate charsets for alpha positionscharset_universe=Universe([AlphaPosition('safe_latin'),AlphaPosition('safe_latin')])tickets=[tfortincharset_universe]print('O'intickets,'I'intickets,'L'intickets)# False, False, False# Limited, generate only a part of the universelimited_universe=Universe([RangedPosition(0,999)])print(len([tfortinlimited_universe.generate(limit=10,offset=2]))#8
Package: ticketus
Ticketus is a simple, no-frills ticketing system for helpdesks. For more
information about its features and for a demo, see
[ticketus.org](http://ticketus.org/).[![Latest Version](https://pypip.in/version/ticketus/badge.svg)](https://pypi.python.org/pypi/ticketus/)
[![Supported Python versions](https://pypip.in/py_versions/ticketus/badge.svg)](https://pypi.python.org/pypi/ticketus/)
[![Development Status](https://pypip.in/status/ticketus/badge.svg)](https://pypi.python.org/pypi/ticketus/)
[![License](https://pypip.in/license/ticketus/badge.svg)](https://pypi.python.org/pypi/ticketus/)RequirementsPython 3.3+PostgreSQL 9.3+ and [psycopg2](http://initd.org/psycopg/)WSGI server (e.g. gunicorn)Web server (e.g. nginx or Apache2)InstallationInstall your distro’s packages for Python 3, virtualenv, and psycopg2. For
example, on Fedora:` # yum install python3python-virtualenvpython3-psycopg2`Activate a virtualenv (ensure it uses Python 3 as 2.x is not supported):` $ virtualenv-ppython3--system-site-packagesticketus $ cd ticketus && source bin/activate `Install the latest release from [PyPi](https://pypi.python.org/pypi/ticketus):` $ pip install ticketus `Create a new Python package inside the virtualenv calledticketus_settingsand copy the configuration to it:` $ mkdir ticketus_settings $ touch ticketus_settings/__init__.py $ cplib/python*/site-packages/ticketus/local_settings.py.exampleticketus_settings/local_settings.py `Edit the settings and specify at least the database andBASE_DIR(which should be set to the full path to the virtualenv).Create and populate the database:` $ createdb ticketus $ PYTHONPATH=.ticketus-admininit `Note when runningticketus-admin, you must setPYTHONPATHto the parent directory of whereticketus_settingsis located.Optionally import some data (see [import_scripts/README.md](https://github.com/sjkingo/ticketus/blob/master/import_scripts/README.md) for more information).Point your WSGI server toticketus.wsgi, e.g.:` $ pip install gunicorn $ gunicorn ticketus.wsgi `You must point your web server to serve files fromstatic, as gunicorn will not.If you just wish to bring up the development server quickly for testing, run:` $ PYTHONPATH=.ticketus-adminrunserver `LDAP authenticationLDAP authentication is available by using thedjango_auth_ldap3library. Follow the
[installation instructions](https://github.com/sjkingo/django_auth_ldap3) to set up.Email gatewayTicketus provides an email gateway for retrieving emails and importing them as
tickets and comments. Currently there exists a backend for IMAP4 and it can be
run as a cronjob.
Package: ticket-ynab-sync
================
ticket_ynab_syncSync Ticket transactions with a YNAB account.CLI `tys``Commands:tys init /path/to/db: initializes a new Sync database (asks for YNAB and Ticket credentials) at the provided pathtys info /path/to/db: displays information about the current state of the provided Sync databasetys sync /path/to/db: runs a sync iteration - 1) get new transactions from Ticket, 2) push them to YNABtys sync --period X /path/to/db: ryns a sync iteration every X minutestys sync --hour X /path/to/db: ryns a sync iteration every X minutesTODO[ ] CLI for configuring Ticket, e..g creds, start sync date, sync period, default category, etc.
[ ] CLI config YNAB, creds, which account to save new transactions to
[ ] init database with Ticket transactions
[ ] extra: check if Ticket transactions already exist in YNAB account, based on value, description and date; store YNAB transaction id on local database
[ ] push new Ticket transactions (without YNAB id) to YNAB, get YNAB ID, associate ID to Ticket transaction
[ ] create loop for syncing
[ ] OR add to cronjob
[ ] EXTRA: alternative web based GUI to CLITicket APIhttps://github.com/diogo-aos/TicketYnacSync
Package: tickeys
# Tickeys-linuxInstant audio feedback when typing. For Linux.English Readme: [English Readme](https://github.com/BillBillBillBill/Tickeys-linux/blob/master/README_en_US.md)
中文版Readme: [中文Readme](https://github.com/BillBillBillBill/Tickeys-linux/blob/master/README_zh_CN.md)
Package: ticking
Useful tools when dealing with clocks for timing and benchmarking. Will use a
different method for retrieving accurate, monotonic clock values (see source
for detail).Tested on Python 2.7 and 3.3+. The latter is recommended because thetimemodule contains much better access to OS timing functions.ExamplesSimple framerate-limiter:>>>importticking>>>forframe,tinticking.Clock(0.5):...print(frame,t)...1 0.5
2 1.0
3 1.5
...After dropping a frame, the clock is aligned again:>>>importtime>>>forframe,tinticking.Clock(0.5):...print(frame,t)...time.sleep(0.8)# drop a frame...1 0.5
3 1.5
5 2.5Measuring time:>>>withticking.Stopwatch('Demonstration')assw:...time.sleep(1.3)...>>>sw.total1.3013252970049507>>>print(sw)Demonstration: took 1.30sQuick in-program profiling:>>>withticking.profiled('testprofile.prof'):...time.sleep(1.0)...>>>importpstats>>>pstats.Stats('testprofile.prof').print_stats()Wed Jun  8 11:21:38 2016    testprofile.prof

         5 function calls in 1.001 seconds

   Random listing order was used

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000    0.000    0.000 {method 'disable' of '_lsprof.Profiler' objects}
        1    1.001    1.001    1.001    1.001 {built-in method sleep}
        1    0.000    0.000    0.000    0.000 /usr/lib/python3.4/contextlib.py:63(__exit__)
        1    0.000    0.000    0.000    0.000 {built-in method next}
        1    0.000    0.000    0.000    0.000 /home/marc/Documents/github.com/mbr/ticking/ticking.py:137(profiled)
Package: tickit
An event-based multi-device simulation framework providing configuration and
orchestration of complex multi-device simulations.PyPIpip install tickitSource codehttps://github.com/dls-controls/tickitDocumentationhttps://dls-controls.github.io/tickitReleaseshttps://github.com/dls-controls/tickit/releasesAn example simulation consists of a simple counter and a sink. The counter
increments up a given value and then passes this value to a sink.A simulation is defined using a yaml file, in which the graphing of the required
components is denoted. This file defines aCounterdevice namedcounterand
aSinkdevice namedcounter_sink. The output_valueofcounteris wired
to the input ofcounter_sink.-type:examples.devices.counter.Countername:counterinputs:{}-type:tickit.devices.sink.Sinkname:counter_sinkinputs:input:component:counterport:_valueThis file is executed to run the simulation.python-mtickitallexamples/configs/counter.yamlThe simulation will output logs depicting the incrementing of the counter:DEBUG:examples.devices.counter:Counterinitializedwithvalue=>0DEBUG:asyncio:Usingselector:EpollSelectorDEBUG:tickit.core.management.ticker:Doingtick@0DEBUG:tickit.core.components.component:countergotInput(target='counter',time=0,changes=immutables.Map({}))DEBUG:examples.devices.counter:Counterincrementedto1DEBUG:tickit.core.management.schedulers.base:SchedulergotOutput(source='counter',time=0,changes=immutables.Map({'value':1}),call_at=1000000000)DEBUG:tickit.core.management.schedulers.base:Schedulingcounterforwakeupat1000000000DEBUG:tickit.core.components.component:counter_sinkgotInput(target='counter_sink',time=0,changes=immutables.Map({}))DEBUG:tickit.devices.sink:Sunk{}DEBUG:tickit.core.management.schedulers.base:SchedulergotOutput(source='counter_sink',time=0,changes=immutables.Map({}),call_at=None)DEBUG:tickit.core.management.ticker:Doingtick@1000000000DEBUG:tickit.core.components.component:countergotInput(target='counter',time=1000000000,changes=immutables.Map({}))DEBUG:examples.devices.counter:Counterincrementedto2DEBUG:tickit.core.management.schedulers.base:SchedulergotOutput(source='counter',time=1000000000,changes=immutables.Map({'value':2}),call_at=2000000000)The counting device is defined as below. It increments a given value and logs as
it increments.@dataclassclassCounter(ComponentConfig):"""Simple counting device."""def__call__(self)->Component:# noqa: D102returnDeviceComponent(name=self.name,device=CounterDevice(),)classCounterDevice(Device):"""A simple device which increments a value."""classInputs(TypedDict):...classOutputs(TypedDict):value:intdef__init__(self,initial_value:int=0,callback_period:int=int(1e9))->None:self._value=initial_valueself.callback_period=SimTime(callback_period)LOGGER.debug(f"Counter initialized with value =>{self._value}")defupdate(self,time:SimTime,inputs:Inputs)->DeviceUpdate[Outputs]:self._value=self._value+1LOGGER.debug(f"Counter incremented to{self._value}")returnDeviceUpdate(CounterDevice.Outputs(value=self._value),SimTime(time+self.callback_period),)Seehttps://dls-controls.github.io/tickitfor more detailed documentation.
Package: tickit-devices
A collection of devices simulated using thetickitframework.PyPIpip installtickit-devicesSource codehttps://github.com/dls-controls/tickit-devicesDocumentationhttps://dls-controls.github.io/tickit-devicesReleaseshttps://github.com/dls-controls/tickit-devices/releasesSafety NoteThese devices mimic real synchrotron devices and there is the potential for conflict with the real PVs if this is run on the same port as EPICS (5064).
If using this simulation to test software, set yourEPICS_CA_SERVER_PORTenvironment variable to something nonstandard, e.g. 5065 or greater, so that your
tests are not confused between these and the real PVs. TheS03startup scripts manage the setting of
these ports automatically, so if you are using this as part of S03 you won’t need to change anything. Do not run this simulation on a beamline controls machine!Adding devices to the S03 simulationTo add a device to s03, the config file required to run the tickit simulation should be present ins03_configs.
Only changes pushed to main will be built into thetickit-devicesimage that s03 pulls from. Once the
image has been built with the new device and config, follow the instructionshereto include it in S03.Seehttps://dls-controls.github.io/tickit-devicesfor more detailed documentation.
Package: tickterial
Download and cache tick data(material) from Dukascopy Bank SAThis is a local API server that downloads tick data on request and caches results for subsequent calls. Finally, a free historical data collection for backtesting your forex trading algorithms!
All instruments onthis pageare supported! (But onlycurrency pairsare tested based on my use case.).Email mefor special requests.Installation ::Python3pip install tickterialUsageThis module can be used in two modes. As an API server using aflaskbackend, and as a module.Module usagefromdatetimeimportdatetime,timedeltafromtickterialimporttickloaderdefdownload():period=datetime.now()-timedelta(minutes=60)# previous hourdata=tickloader.download('GBPUSD',period)#count=4forindex,tickinenumerate(data):print(tick)#count-=1ifnotcount:print(f'--showing first{index+1}ticks--')breakdownload()print('--end--')Sample output from GBPUSD{'timestamp': 1689631196.875, 'ask': 1.30788, 'bid': 1.30778, 'ask-vol': 900000, 'bid-vol': 900000}API-mode usageComing soon...TODOInternally convert prices to float 																	- DONEAdd database caching for large offline historiesAdd API functionality for use as a local tcp streaming serviceContainerize the API through docker for ease of useStick around. There's more coming!NotesCache is store in UTC. Pass your UTC time difference as last parameter totickloader.downloadto fix local time offset.Tick data can only be fetch to the previous hour. Current hour returns 404. This is handled internally thoughCache is stored in current working directory, path =.tick-data. Move this directory when migrating your server to save bandwidth and keep your cached data, or mount a local directory when using docker volumes.Please donate to keep development goingMy Public Address to Receive BTC:bc1qg8tqa0azl7el38wtdfawxnj2tfz46ajtjnv685ViaTrust Wallet
Package: tickthon
tickthonYet another unofficial Ticktick API client, it is based on ticktick-pyhttps://pypi.org/project/ticktick-py/InstallationpipinstalltickthonUsagefromtickthonimportTicktickClientclient=TicktickClient(username,password)client.get_active_tasks()Featuresget_active_tasks()get_completed_tasks()get_deleted_tasks()get_abandoned_tasks()get_expense_logs()get_day_logs()get_task(task_id)get_overall_focus_time(date)get_habits()complete_task(Task)create_task(Task, column_id)Task modelThis packages uses a custom attrs model to store task data, it has the following attributes:Task:title: strstatus: int, default: 0  # 0: default/open, 2: done, -1: abandonedticktick_id: str, default: ""focus_time: float, default: 0.0deleted: int, default: 0  # 0: not deleted, 1: deletedtags: List[str], default: []project_id: str, default: ""timezone: str, default: ""due_date: str, default: ""recurrent_id: Optional[str], default: ""Environment variablesTT_USER: Ticktick usernameTT_PASS: Ticktick passwordTICKTICK_IDS: This environment variable is a JSON string that specifies the TickTick lists and folders from which
tasks will be fetched, if you don't set this environment variable all tasks will be fetched. It follows this structure:for example:{"FOLDER_IDS":{"folder_name-1":"folder_id","folder_name-2":"folder_id",...},"LIST_IDS":{"list_name-1":"list_id","list_name-2":"list_id",...}}
Package: ticktick
Python API for TickTickPython API for TickTickFree software: MIT licenseDocumentation:https://ticktick.readthedocs.io.FeaturesAdd taskDelete taskQuery completed and uncompleted taskNice text representation for taskCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-10-23)First release on PyPI.
Package: ticktick-to-sqlite
ticktick-to-sqliteImport TickTick data into a SQLite databaseInstallationInstall this tool usingpip:pip install ticktick-to-sqliteUsagePre-requisite:Register your application.Assuming you have a TickTick account, register your app and create aclient_idandclient_secret.@lazeroffmichael (author ofticktick-py) wrote a easy to follow"Get Started"instructions to set up your app.(Recommended) Set enviornment variables for your login credentials:TICKTICK_USERNANE- Your TickTick usernameTICKTICK_PASSWORD- Your TickTick passwordFor help, run:ticktick-to-sqlite --helpYou can also use:python -m ticktick_to_sqlite --helpAuthenticateStore app settings for OAuth.(venv) $ ticktick-to-sqlite auth
Register your application and obtain: "Client ID", "Client Secret", and pick a "Redirect URL". Paste it here:

Client ID: your_client_id
Client Secret: your_client_secret
Redirect URL: https://127.0.0.1TasksSave your uncompleted tasks.ticktick-to-sqlite tasks ticktick.dbSave your completed tasks for a specified time range (ex. between Dec 31st, 2023 and Jan 31st, 2024).ticktick-to-sqlite completed-tasks ticktick.db 2023-12-31 --end-date 2024-01-31TagsSave your tags.ticktick-to-sqlite tags ticktick.dbProjectsSave your projects (aka "Lists").ticktick-to-sqlite projectsSave your project folders (aka "List Folders").ticktick-to-sqlite project-foldersDevelopmentTo contribute to this tool, first checkout the code. Then create a new virtual environment:cd ticktick-to-sqlite
python -m venv venv
source venv/bin/activateNow install the dependencies and test dependencies:pip install -e '.[test]'To run the tests:pytest