Saravanan666/pypi-org huggingface dataset:
Package: tqp
TQPAn opinionated library for pub/sub over SQS and SNSTopicTo publish on a topic:topic=Topic('widgets--created')topic.publish({'id':'123456'})Topic Queue PollerTo read from the topic:poller=TopicQueuePoller('my_poller')@poller.handler('widgets--created')defprocess_created_widget(item):widget_id=item['id']print(f'Widget{widget_id}was created')poller.start()S3 notificationsIt is also possible to poll for s3 object notifications@poller.s3_handler('my-bucket-name')defprocess_file_created(msg):print(msg)# {#     'event_name': 'ObjectCreated:Put',#     'bucket_name': 'bespin-dev-consular21d51f71-11lpitfowdylc',#     'object': {#         'key': 'genome.fasta',#         'size': 124,#         'eTag': '5d9d04cd0b9d3b314d9bd622da06ab74',#         'sequencer': '005FAD55883A198E97'#     },# }FlaskA Flask binding is also provided:poller=FlaskTopicQueuePoller('my_poller',app=flask_app)When using the Flask poller, you can also specify how to format the logs:# the argument (optional) is a function that takes the message payload as input and return a message identifierpoller.set_log_formatter(lambdapayload:payload["message"].get("id","<NO ID>"))
Package: tqpy
A compact, scalable, statistical analysis, and reporting package built on top of
pandas, and bokeh.ContactIf you have any questions or comments about tqpy, please feel free to contact me via
email atralston@yahoo-inc.com.
This project is hosted at:https://www.github.com/notslar-ralston/tqpyThe documentation can be found at:https://www.github.com/notslar-ralston/tqpy
Package: tq-recursive-scroll-scrape
Recursive-Scroll-ScraperPython library for automating scrolling and downloading web pages via Selenium. Scrolling and downloading functionality
is provided by thetq-scroll-scrapepackage.Recursive-Scroll-Scraper provides the ability to download a paginated site, i.e. starting at the root page, getting the
next page url, downloading that page, and so on until the end is reached.sample_app.pydemonstrates this use case using the Trulia real estate listings site.UsageUsing ChromeDriverDownload ChromeDriver fromhttps://chromedriver.chromium.org/downloads. Choose the version that matches the Chrome
browser running on your system.Using GeckoDriver for FirefoxDownload GeckoDriver for Firefox fromhttps://github.com/mozilla/geckodriver/releases.Install PackageInstall the package by runningpip install tq-recursive-scroll-scrape.Use the PackageHere is sample code demonstrating how to crawl a paginated site.Create the RecursiveScrollScrape instancefromtq_recursive_scroll_scrape.recursive_scroll_and_scrapeimportRecursiveScrollScraperoot_url="https://www.trulia.com"first_url=f"{root_url}/WA/Renton"driver_path="PATH TO DRIVER EXECUTABLE"scroll_scraper=RecursiveScrollScrape(driver_path)Define the Logic to Get the Next Page LinksProvide a callback containing the logic to get the next page links. Since this function is called recursively, be sure
to provide a terminating condition to avoid infinite loops.frombs4importBeautifulSoupfromtypingimportOptionaldefget_next_url(content:str)->Optional[str]:soup=BeautifulSoup(content,"html.parser")links=[aforainsoup.find_all("a")ifa.get("aria-label")and"Next"ina.get("aria-label")]# Terminates recursion if the last page is reached.iflen(links)==0:returnNonenext_url=f"{root_url}{links[0].get('href')}"returnnext_urlOptional Post-Download CallbackProvide an optional callback containing the logic to perform after each page download such as saving the content to
disk.defon_after_download(content:str):withopen("some_file.html","w",encoding="utf-8")asfile:file.write(content)Start the Downloadscroll_scraper.download(first_url,on_after_download,get_next_url)Scroll and Download OptionsRefer to thetq-scroll-scrapedocumentation for details on controlling
scroll and download options. For example, the default wait time between scrolls is two seconds but can be changed. By
default, the entire page is scrolled at once but can be scrolled by a specific number of pixels if desired.
Package: tq-scroll-scrape
Scroll-ScraperPython library for automating scrolling and downloading web pages via Selenium. This is especially useful for pages that
utilize infinite scrolling.UsageUsing ChromeDriverDownload ChromeDriver fromhttps://chromedriver.chromium.org/downloads. Choose the version that matches the Chrome
browser running on your system.Using GeckoDriver for FirefoxDownload GeckoDriver for Firefox fromhttps://github.com/mozilla/geckodriver/releases.Install PackageInstall the package by runningpip install tq-scroll-scrape.Use the PackageHere is sample code demonstrating how to download a page:fromtq_scroll_scrape.scroll_and_scrapeimportScrollAndScrapeurl="https://www.espn.com/"driver_path="{PATH TO DRIVER EXECUTABLE}"scroll_scraper=ScrollAndScrape(driver_path)scroll_scraper.download(url)scroll_scraper.driver.close()scroll_scraper.driver.quit()This library will scroll the page until it reaches the end. The scroll height can be controlled by passing
thescroll_bykwarg. If omitted the value ofdocument.body.scrollHeightis used.To give items the chance to render, the library will wait before scrolling again. The wait time can be controlled via
thesleep_after_scroll_secondsparameter. If omitted, the default value is two seconds.The example below scrolls the page by 500 pixels, waiting 5 seconds between each scroll.fromtq_scroll_scrape.scroll_and_scrapeimportScrollAndScrapedriver_path="{PATH TO DRIVER EXECUTABLE}"scroll_scraper=ScrollAndScrape(driver_path)downloader.download(url,sleep_after_scroll_seconds=5,scroll_by=500)downloader.driver.close()downloader.driver.quit()Post-download ProcessingThedownloadfunction accepts a callback that executes after the page is downloaded. The page source is passed into
the callback. The example below saves the downloaded page to an html file.fromtq_scroll_scrape.scroll_and_scrapeimportScrollAndScrapedefsave_file(source:str):withopen("espn.html","w")asfile:file.write(source)url="https://www.espn.com/"driver_path="{PATH TO DRIVER EXECUTABLE}"scroll_scraper=ScrollAndScrape(driver_path)downloader.download(url,save_file)downloader.driver.close()downloader.driver.quit()
Package: tqsdk
TqSdk 天勤量化交易策略程序开发包TqSdk 是一个由信易科技发起并贡献主要代码的开源 python 库.
依托快期多年积累成熟的交易及行情服务器体系, TqSdk 支持用户使用极少的代码量构建各种类型的量化交易策略程序,
并提供包含期货、期权、股票的 历史数据-实时数据-开发调试-策略回测-模拟交易-实盘交易-运行监控-风险管理 全套解决方案.from tqsdk import TqApi, TqAuth, TqAccount, TargetPosTask

api = TqApi(TqAccount("H海通期货", "4003242", "123456"), auth=TqAuth("快期账户", "账户密码"))      # 创建 TqApi 实例, 指定交易账户
q_1910 = api.get_quote("SHFE.rb1910")                         # 订阅近月合约行情
t_1910 = TargetPosTask(api, "SHFE.rb1910")                    # 创建近月合约调仓工具
q_2001 = api.get_quote("SHFE.rb2001")                         # 订阅远月合约行情
t_2001 = TargetPosTask(api, "SHFE.rb2001")                    # 创建远月合约调仓工具

while True:
  api.wait_update()                                           # 等待数据更新
  spread = q_1910["last_price"] - q_2001["last_price"]        # 计算近月合约-远月合约价差
  print("当前价差:", spread)
  if spread > 250:
    print("价差过高: 空近月，多远月")                            
    t_1910.set_target_volume(-1)                              # 要求把1910合约调整为空头1手
    t_2001.set_target_volume(1)                               # 要求把2001合约调整为多头1手
  elif spread < 200:
    print("价差回复: 清空持仓")                               # 要求把 1910 和 2001合约都调整为不持仓
    t_1910.set_target_volume(0)
    t_2001.set_target_volume(0)要快速了解如何使用TqSdk, 可以访问我们的十分钟快速入门指南.Architecture行情网关 (Open Md Gateway)负责提供实时行情和历史数据交易中继网关 (Open Trade Gateway)负责连接到期货公司交易系统这两个网关统一以Diff协议对下方提供服务TqSdk按照Diff协议连接到行情网关和交易中继网关, 实现行情和交易功能FeaturesTqSdk 提供的功能可以支持从简单到复杂的各类策略程序.公司级数据运维，提供当前所有可交易合约从上市开始的全部Tick数据和K线数据支持市场上90%的期货公司实盘交易支持模拟交易支持Tick级和K线级回测, 支持复杂策略回测提供近百个技术指标函数及源码用户无须建立和维护数据库, 行情和交易数据全在内存数据库, 无访问延迟优化支持pandas和numpy库无强制框架结构, 支持任意复杂度的策略, 在一个交易策略程序中使用多个品种的K线/实时行情并交易多个品种配合开发者支持工具，能够进行交易信号打点，支持自定义指标画图InstallationTqSdk 仅支持 Python 3.6 及更高版本. 要安装 TqSdk, 可使用 pip:$ pip install tqsdkDocumentation在线阅读HTML版本文档:https://doc.shinnytech.com/tqsdk/latest在线问答社区:https://www.shinnytech.com/qa知乎账户【天勤量化】：https://www.zhihu.com/org/tian-qin-liang-hua/activities用户交流QQ群:619870862(目前只允许给我们点过STAR的同学加入, 加群时请提供github用户名)GuiTqSdk本身自带的web_gui功能，简单一行参数即可支持调用图形化界面，详情参考web_guiAbout us信易科技是专业的期货软件供应商和交易所授权行情服务商. 旗下的快期系列产品已为市场服务超过10年. TqSdk 是公司开源计划的一部分.
Package: tqsdk2
TqSdk2 天勤量化交易策略程序开发包TqSdk2 是一个由信易科技发起并贡献主要代码的, 采用 C++ 核心架构, 对外提供 python 和 C++ 接口的库.依托快期多年积累成熟的交易和行情服务器体系和开源量化 python 库TqSdk,
TqSdk2 支持用户使用很少的代码量构建各种类型的量化交易策略程序, 并提供包含 历史数据-实时数据-开发调试-策略回测-模拟交易-实盘交易-运行监控-风险管理 的全套解决方案fromtqsdk2importTqApi,TqAuth,TqAccount,TargetPosTaskapi=TqApi(TqAccount("H海通期货","4003242","123456"),auth=TqAuth("信易账户","账户密码"))# 创建 TqApi 实例, 指定交易账户q_1910=api.get_quote("SHFE.rb1910")# 订阅近月合约行情t_1910=TargetPosTask(api,"SHFE.rb1910")# 创建近月合约调仓工具q_2001=api.get_quote("SHFE.rb2001")# 订阅远月合约行情t_2001=TargetPosTask(api,"SHFE.rb2001")# 创建远月合约调仓工具whileTrue:api.wait_update()# 等待数据更新spread=q_1910.last_price-q_2001.last_price# 计算近月合约-远月合约价差print("当前价差:",spread)ifspread>250:print("价差过高: 空近月，多远月")t_1910.set_target_volume(-1)# 要求把1910合约调整为空头1手t_2001.set_target_volume(1)# 要求把2001合约调整为多头1手elifspread<200:print("价差回复: 清空持仓")# 要求把 1910 和 2001合约都调整为不持仓t_1910.set_target_volume(0)t_2001.set_target_volume(0)要快速了解如何使用TqSdk2 , 可以访问我们的十分钟快速入门指南.FeaturesTqSdk2 提供的功能可以支持从简单到复杂的各类策略程序.提供当前所有可交易合约从上市开始的全部Tick数据和K线数据支持数十家期货公司的实盘交易支持通过直连模式接入期货公司进行交易支持直连直连模式接入期货公司 CTP 柜台支持模拟交易提供近百个技术指标函数及源码用户无须建立和维护数据库, 行情和交易数据全在内存数据库, 无访问延迟优化支持pandas和numpy库无强制框架结构, 支持任意复杂度的策略, 在一个交易策略程序中使用多个品种的K线/实时行情并交易多个品种InstallationTqSdk2 支持 Windows 和 Ubuntu 20.04 环境下 Python 3.6.4 及以上版本。WindowsTqSdk2 核心代码依赖 C++ 运行库, 若您的环境中缺少该库, 可以到微软官网下载安装对应版本即可(vc_redist 下载地址).推荐使用 pip 进行安装$ pip install tqsdk2LinuxTqSdk2 采用发布包遵循PEP600标准, 支持 Linux 发行版如下:安装如下:$ sudo apt update
$ sudo apt install -y build-essential
$ sudo apt install -y python3 python3-pip
$ sudo pip install pip --upgrade
$ sudo pip install tqsdk2注: 国内用户使用 pip 进行 Python 包安装下载时, 默认采用的是国外镜像源, 下载速度可能较慢.
推荐切换至清华源后再进行 TqSdk2 的下载安装.Documentation在线阅读HTML版本文档:https://doc.shinnytech.com/tqsdk2/latest在线问答社区:https://www.shinnytech.com/qa知乎账户【天勤量化】：https://www.zhihu.com/org/tian-qin-liang-hua/activities用户交流QQ群:619870862(目前只允许给我们点过STAR的同学加入, 加群时请提供github用户名)LicenseTqSdk2 在 Apache License 2.0 协议下提供, 使用者可在遵循此协议的前提下自由使用本软件.About us信易科技是专业的期货软件供应商和交易所授权行情服务商. 旗下的快期系列产品已为市场服务超过10年.
Package: tqsim
TQSimTQSim stands for Topological Quantum Simulator. It is an open-source library for simulating topological quantum computer based on anyons.InstallationYou can install TQSim from pip usingpipinstall--upgradetqsimUsage1. Basic ExampleIn this example, we create a circuit with 2 qudits, made of 3 anyons each. We then braid the anyons manually.fromtqsimimportAnyonicCircuitcircuit=AnyonicCircuit(2,3)# Create a circuit having 2 qudits and 3 anyons per quditscircuit.braid(1,2)# Braids the first with the second anyoncircuit.braid(3,4)# Braids the first with the second anyoncircuit.braid(2,1)circuit.measure()# Measure the system by fusing the anyonscircuit.draw()# Draw the circuitHere is the output of thedraw()method:Simulating the circuit:circuit.run(shots=50)Output:{'counts':{'0':16,'2':20,'4':14},'memory':array([4,2,2,2,2,2,2,4,2,4,2,0,0,0,4,0,4,0,0,0,0,4,2,4,0,2,0,0,0,0,4,4,2,2,2,4,2,2,0,0,2,4,2,2,4,2,4,4,0,2])}2. Simulating a Hadamard gateHere we simulate the application of a Hadamard gate on a single qudit with 3 anyons.
Unlike the previous example, we will use a braiding sequence of braiding operators and their corresponding powers.fromtqsimimportAnyonicCircuitcircuit=AnyonicCircuit(nb_qudits=1,nb_anyons_per_qudit=3)# Create a circuit with 1 qudit composed of 3 anyonscircuit.initialize([0,0,1])# We initialize the circuit in the last state (state 2).# For this circuit, we have 3 basis states: [0, 1, 2].# The Hadamard gate braiding sequence in terms of braiding operatorshad_sequence=[[1,2],[2,2],[1,-2],[2,-2],[1,2],[2,4],[1,-2],[2,2],[1,2],[2,-2],[1,2],[2,-2],[1,4]]circuit.braid_sequence(had_sequence)# We apply the braiding sequence.# This should put our qudit in a superposition of the states 2 and 1.circuit.measure()# Measure the system by fusing the anyonscircuit.draw()# Draw the circuitThe Hadamard braid looks like thisSimulating the circuit:result=circuit.run(shots=1000)# Run the circuit 1000 times.print(result['counts'])# Show the counts only.Output:{'1':493,'2':507}Authors and CitationAbdellah Tounsi, Mohamed Messaoud Louamri, Nacer eddine Belaloui, and Mohamed Taha Rouabah – Constantine Quantum Technologies.If you have used TQSim in your work, please use theBibTeX fileto cite the authors.LicenseCopyright © 2022,Constantine Quantum Technologies. Released under theApache License 2.0.
Package: tqt
TQTTQT's pytorch implementation.NoticeNow availabel atpip install tqt!Networks quantized via this package could be find athttps://github.com/PannenetsF/QuantizationPool.ContributingIt will be great of you to make this project better! There is some ways to contribute!To start with, issues and feature request could let maintainers know what's wrong or anything essential to be added.If you use the package in you work/repo, just cite the repo and add a dependency note!You can add some function intorch.nnlikeHardTanhand feel free to open a pull request! The code style is simple ashere.AcknowledgmentThe initial version of tqt-torch is developed byJinyu Bai.The beta version was tested byJinghan Xu, based on whose feedback a lot of bugs were fixed.The original papar could be find atArxiv, Trained Quantization Thresholds for Accurate and Efficient Fixed-Point Inference of Deep Neural Networks.
Package: tqueues
TQueuesTQueues (reThinkdb Queues) is a simple python3.5+
library for queueing jobs and processing them in workers using rethinkdb.FeaturesAcceptscoroutinesas jobsDistributedHandles everything in arethinkdb database objectthat can be reused
at the workerExposes changes via websocketsUses rethinkdb streaming “changes” method, wich is pretty efficientUses asyncio, implements an async context manager for jobs and
async iterator for the workers+--> Worker
                        |
Rethindb --> Dispatcher ---> Worker
                        |
                        +--> WorkerUsageTQueues provides two entry points, tqueues_dispatcher and tqueues_worker.TQueues dispatcher must be accesible from all workers, and you need to start
one worker per parallel task you need. They may be distributed (as long as
they can reach the dispatcher)TQueues workerUsage:
    tqueues_worker -h | --help
    tqueues_worker --version
    tqueues_worker --endpoint_url <endpoint_url>
    tqueues_worker --queue <queue>

Options:
    -h --help                        Show this screen
    -v --version                     Show version
    --endpoint_url <ENDPOINT_URL>    TQueues dispatcher endpoint
    --queue        <QUEUE>           Endpoint queue to listen on

Examples:
    tqueues_worker --endpoint_url http://127.0.0.1:800/ --queue testqueueTQueues job dispatcherUsage:
    tqueues_dispatcher --db "db" --host "127.0.0.1" --port 28015
    tqueues_dispatcher --db "db" --host "127.0.0.1"
    tqueues_dispatcher --db "db" --port 28015
    tqueues_dispatcher --db "db" --user 'user'
    tqueues_dispatcher --db "db" --password 'password'
    tqueues_dispatcher -h | --help
    tqueues_dispatcher --version

Options:
    --host "127.0.0.1"                          Rethinkdb host
    --db "db"                                   Rethinkdb databaes
    --port 28015                                Rethinkdb port
    --user 'user'                               Rethinkdb user
    --password 'password'                       Rethinkdb password
    --allowed_domains 'foo.com,bar.com'         Allowed domains
    --loglevel (DEBUG|INFO)                     Loglevel
    -h   --help                                 Show this screen
    --version                                   Show version

Examples:
    tqueues_dispatcher --host localhost --db foo --port 28015 --user foo --password bar --loglevel INFO --allowed_domains 'foo.com,bar.com'
Package: tquota
TQuotaProcessing timer module: help if the code is running on the  cloud server which has a quota limitation, such askaggleandcolabwhich have a limit for 9 hours of processing on each sessionquota classThe package has only one class (quota) that has two parametersquota_time: type (str) default value (6h) : represent the quota time for the sessiongap_time: type (str) default value (30m): represent the time gap between the quota limit and the actual closing time for the sessionThe time has a strict format to be passed with; it has to partdwwhiled: represent the time as digitsw: the time and one character(w) to represent the time periods: Secondsm: Minutesh: Hoursd: Daysfunctionsquota class has two functions:time_up : return True if the process reaches it is limithastime : return True if the process still has time to processinstallyou can install the package frompypi.pip install tquotausageImport the quota class as followingfrom tquota import quotaExample on using the package:Usingtime_upfunction:fromtquotaimportquotaimporttime# quota _time was set for 1 minute and the gap _time as 30 secondqt=quota('1m','30s')foriinrange(1000):time.sleep(1)ifqt.time_up():print('The process has reached the limited time')breakUsinghastimefunction:fromtquotaimportquotaimporttime# quota _time was set for 1 minute and the gap _time as 30 secondqt=quota('1m','30s')foriinrange(1000):time.sleep(1)ifnotqt.hastime():print('The process has reached the limited time')break
Package: tr064
TR-064 python APIThis package provides a very lightweight and straight-forward TR-064 client, that pulls every information about supported services from the routers description files.InstallationEasiest way to install is to use pip:$ python3 -m pip install tr064To update a previous version:$ python3 -m pip install --upgrade tr064DocumentationFull documentation can be read unterhttps://tr064.readthedocs.org
Package: tr0nz0d
TR0NZ0D LibO que é?TR0NZ0D Lib é uma biblioteca criada em python para facilitar o uso de algumas ferramentas. O projeto está em versão Beta, melhorias e novas funcionalidades serão adicionadas futuramente.O idioma principal da biblioteca é português, traduções serão adicionadas no futuro.DocumentaçãoWebsite fora do ar por tempo indeterminado devido a financiamento de hospedagem.Módulos existentesToolsSecurityDiscordDjango
Package: trabalho-de-gces
Trabalho GCESAluno: Antonio Igor Carvalho
Matrícula: 180030264Containerização do BancoO banco foi containerizado utilizando a imagem oficial do postgresContainerização da biblioteca + BancoA biblioteca foi containerizada com uma imagem criada por mim, e o container do app, banco e metabase utilizando o docker-composePublicação da bibliotecaA publicação da biblioteca foi feita no pypi, utilizando o poetryhttps://pypi.org/project/trabalho-de-gces/Documentação automatizadaA documentação é atualizada juntamente com a build da imagemIntegração contínuaA build, atualização da documentação e teste são feitos quando ocorre a publicação de um novo commitDeploy contínuoA publicação da biblioteca é feita automaticamente quando a varivável de ambiente 'current_version' é atualizada
Package: trabBuild
Update package version, build, and upload to PyPi. All in one step!InstalltrabBuild is available on PyPi.pip install trabBuildOr install directly from setup.pypython setup.py installUsageNavigate to the directory with the package and setup.py file you want to update and build, then type.$ trabbuildtrabBuild will first update the version number in your setup.py file
based on your input, then callpython setup.py sdistandpython
setup.py bdist_wheel –universalto build your package.Once built you will be given the option to upload your package to
PyPi withtwine.NOTE: You must already have an account on PyPi for this part to work.*NOTE*Package version must be specified in setup.py with this format__version__ = "x.x.x"Sample
Package: trabConfig
A simple Config file parser that supports json, and yaml formats with auto-save feature.Installationfrom pippip install trabConfigor the old fashioned waypython setup.py installNOTE: wheels and source dists also available on pypiUsageExample -fromtrabconfigimporttrabConfig# load file verbatimconfig=trabConfig("config.json",autosave=False,data='json')# or justconfig=trabConfig("config.json")# for yamlconfig=trabConfig("config.yml",data='yaml)# autosave capability (saves on changes)config.autosave=True# or during instantiationconfig=trabConfig("config.json",autosave=True)# usage examplehealth=config['health']config['health']=9999mana=config.get('mana',None)ifmanaisnotNone:config['mana']=999lvl=config.get('lvl')config.set('lvl',99)config.new('items',[])config['items'].append('gold')config.delete('cloth')config.save()NotesCreated by - traBpUkciP 2016-2017
Package: trab-devops-ci-cd-process
trab-devops-ci-cdFinal task repository of the Devops Practices discipline, data engineering course at Pucminas 2023Respositorio do trabalho final da disciplina de Praticas Devops, curso de engenharia de dados da Pucminas 2023.Instructions for use in English:Import the package ‘trab-devops-ci-cd-process 0.0.5’ on the PYPI website:https://pypi.org/project/trab-devops-ci-cd-process/Confirm that the package is available:
pip listRun Python:
pythonImport eq_segundo_grau code available in the package:
from bhaskara import eq_segundo_grauRun coleta_coeficientes() function with the command below:
eq_segundo_grau.coleta_coeficientes()Instruções de uso em Português BR:Importe o pacote 'trab-devops-ci-cd-process 0.0.5' no site PYPI:https://pypi.org/project/trab-devops-ci-cd-process/Confirme que o pacote está disponivel:
pip listExecute o python:
pythonImporte o codigo 'eq_segundo_grau.py' disponibilizado no pacote:
from bhaskara import eq_segundo_grauExecuto a função coleta_coeficientes() com o comando:
eq_segundo_grau.coleta_coeficientes()
Package: trac2google
*Important note, please read: this package no longer provides trac integration, only integration with Redmine. The code is still there and needs just a tiny bit of refactoring. Feel free to branch https://bitbucket.org/tiberiuichim/trac2google/ and push back your changes. And, while you’re at it, convert the code to use the latest Google APIs, you can find hints on how to do that in the fise_pontaj module. *Running it the first time will create a new file in your home, called
.gcalendar. You need to fill in your google account details, your trac
id and the name of the calendar that contains your timesheet.IMPORTANT: this script only processes one month, it will not
record timesheet entries in other months, so it is best if you run this
in cron, daily, at some convenient hour when you’ve finished your work.You can call it with an argument from the command, line, giving
it the number of the month that you want it to process.
Package: trac2rst
trac2rstI usetrac2rstto help me in the task to pass documentacion
fromtractosphinx(reStructuredText). I usally copy the trac wiki page to a temporaly file, run
the script, copy the output to the new rest file and do manual changes.FeaturesThe idea is use this tool to do the more tedious work (I mean transforming
lists, links and inliners).
Youmustreview and fix the result later.It only processes:Headers (sections at 4 levels)Lists (bullets and numbered)Trac links.A subject of trac and rest inlinersIt doesNOT support(a lot):Trac macrosTrac processorsLinks between wiki pagesRest definition lists, etcPreformattingImagesTablesFootnotesAnchorsCitationsCommentsA lot more …Usage exampleType trac2rst –helpYou can view a simple wiki transfomation (used for manual test):$ bin/trac2rst -i src/trac2rst/tests/wikitext.txt -u https://trac.yaco.es/project/  -o /tmp/test.rst && rst2html /tmp/test.rst /tmp/test.html && firefox /tmp/test.htmlDisclaimerThis is aquick and dirty tool. It does not use reST or wiki processor. The
work is done using regular expressions.Licensetrac2rstis offered under theMIT license.Authorstrac2rstis made available byYaco SistemasCreditsDistributeBuildoutmodern-package-templatezest.releaserChangelog0.2.1 (2011-12-19)fix error in project url0.2 (2011-12-19)pep8 compliantGlobal variables removedSet a TODO comment por preformated text0.1 (2011-12-19)First Release