Saravanan666/pypi-org huggingface dataset:
Package: tidyxbrl
tidyxbrl: The tidy XBRL InterfaceWhat is it?tidyxbrlis a Python package that parses XBRL data files and returns dynamic structures that succinctly store the underlying data. This package additionally can interface with the XBRL API and SEC EDGAR interfaces, with further expansion to other XBRL data providers planned for the near future. This package aims to the be the simplest and most effective method to parse XBRL data in Python.The XBRL StandardeXtensible Business Reporting Language (XBRL) is a standardized financial reporting framework to structure financial reporting in a way that enables automation and machine processing. This package aims to enable its users to realize the full capabilities of the XBRL standard through parsing files and interfacing with the applicable APIs.Applicable documentation can be found below:XBRLXBRL API OverviewXBRL API DocumentationXBRL API ExamplesEDGARSEC Edgar InformationSEC API DocumentationSEC Flat FilesWhere to get itThe source code is currently hosted on GitHub at:https://github.com/cowboycodeman/tidyxbrl/The tidyxbrl package is publically available for download at:https://pypi.org/project/tidyxbrl/# PyPIpipinstalltidyxbrlExamplesxbrl_parse- Parse xbrl files or website urlstidyxbrl.xbrl_parse("https://www.sec.gov/Archives/edgar/data/320193/000032019321000010/aapl-20201226_htm.xml")xbrl_query- Query the XBRL APIresponse = tidyxbrl.xbrl_apikey(username=username, password=password, client_id=client_id, client_secret=client_secret, platform='pc', grant_type='password', refresh_token='')
dataresponse = tidyxbrl.xbrl_query(access_token=response.access_token.values[0], 
               baseapiurl='https://api.xbrl.us/api/v1/report/search?',
               queryparameters = {'report.entity-name': "APPLE INC.",
                                  'fields': "report.id,report.entity-name,report.filing-date,report.base-taxonomy,report.document-type,report.accession,entity.ticker,report.sic-code,entity.cik,report.entry-type,report.period-end,report.sec-url,report.checks-run,report.accepted-timestamp.sort(DESC),report.limit(20),report.offset(0),dts.id,report.entry-url",
                                  'report.document-type': "10-K"
                        })edgar_query- Query SEC data using the Central Index Key (CIK)companycik = tidyxbrl.edgar_cik()
desiredcorp = str(companycik[companycik.title.str.contains("ZILLOW GROUP, INC.")]['cik_str'].unique()[0])
tidyxbrl.edgar_query(desiredcorp, query_type = 'submissions')
tidyxbrl.edgar_query(desiredcorp, query_type = 'companyconcept', queryextension = '/us-gaap/AccountsPayableCurrent')
tidyxbrl.edgar_query(desiredcorp, query_type = 'companyfacts')edgar_frames- Aggregates one fact for each reporting entitytidyxbrl.edgar_frames(urldescriptor = 'us-gaap/NonoperatingIncomeExpense/USD/CY2019Q1I')Dependenciespandas - A fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.NumPy - The fundamental package for scientific computing with Pythonrequests - An elegant and simple HTTP library for Python, built for human beings.bs4 - For pulling data out of HTML and XML files
Package: tiebamd
将百度贴吧的指定帖子下载为 textbundle（内含一个 markdown 文本文件，图片等资源保存在 assets 文件夹中）。使用 pip 或 pipx 安装：pipinstalltiebamdpipxinstalltiebamd使用方法# 默认只下载楼主发布的楼层tiebamdhttps://tieba.baidu.com/p/1766018024# 包含所有回帖（楼中楼除外）tiebamdhttps://tieba.baidu.com/p/1766018024--repliers除此之外，还有两个命令行参数可以使用：--start-fid本次下载的起点楼层 ID（不是楼层数，是楼层的 HTML 属性id所后缀的数字）--http-proxy通过指定的 HTTP 代理进行下载遭遇错误在下载过程中，可能会遇到一些错误，比如百度拒绝访问。对于已经发现的报错，在程序中已经添加了相关处理代码。
对于短时间内请求过多导致百度拒绝访问的情况（error_code 239103），默认采用等待 3 分钟再继续的策略。
对于其他报错，请记录程序输出的提示，并提交到 issue 方便程序改进。提示输出样式如下:xxxx/yyyy: (zzzz)xxxx 表示帖子 ID，yyyy 表示楼层 ID，zzzz 表示错误代码。可以将 yyyy 位置所提供的 fid 提供给命令行参数--start-fid，令程序从中断处继续。不过这不会删除之前已经下载的部分，可能导致下载的文本内容存在重复。# 这将从目标帖子的第 381 楼开始下载tiebamdhttps://tieba.baidu.com/p/1766018024--start-fid22754385957如果反复遇到相同的错误或者开发者无法重现，可以将环境变量DEBUG的值设为1，然后再次运行。这会在当前工作目录下生成debug_xxx_error.json文件，记录了几处请求信息，可以将其提交到 issue 方便开发者调试。# bash/zsh 等 Unix ShellDEBUG=1tiebamdhttps://tieba.baidu.com/p/1766018024# powershell$env:DEBUG=1tiebamdhttps://tieba.baidu.com/p/1766018024# cmd.exesetDEBUG=1tiebamdhttps://tieba.baidu.com/p/1766018024示例下面的命令所下载的是 Defanive2 编写，发布在 minecraft 吧的《直播，MC 1.3 原版生存》。包含图片（7000+ 张）共 974 MB 内容，下载总耗时约 20 min，中间中断两次。tiebamdhttps://tieba.baidu.com/p/17660180240it[00:00,?it/s]抓取帖子：minecraft/直播，MC1.3原版生存正在下载1766018024.textbundle/assets/8b82b9014a90f603c3d8fcd13912b31bb051ed38.jpg::86it[00:08,10.82it/s]已收集楼层:125floor[00:07,15.77floor/s]下载结果的前几楼感谢使用百度贴吧 APP 的 API 接口的代码参考自https://github.com/cnwangjihe/TiebaBackup。
Package: tieba-sign
百度贴吧 自动签到如何安装pipinstall--usertieba-sign使用说明#查看帮助$python-mtieba-h

usage:-m[-h][-iINTERVAL][-v][bduss]百度贴吧批量签到

positionalarguments:bduss贴吧bduss的cookie值

options:-h,--helpshowthishelpmessageandexit-iINTERVAL签到间隔时间，批量签到避免弹验证码，默认5秒-v详细模式，显示更多运行信息首先登录百度，然后打开浏览器调试工具(按F12)，在网络，请求头找到cookie,然后拷贝BDUSS段的值过来。python-mtieba"RsNlNwbUpKdGtj....aFZxcHJMQVZzM3BE"2023-07-27 08:35:17,960 [tieba.sign] [INFO] 共关注了136个贴吧
2023-07-27 08:35:17,960 [tieba.sign] [INFO] 3d打印(2206871):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] 4k(463046):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] archlinux(1695944):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] arduino(2712373):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] blender(972857):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] cemu(21343135):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] centos(471894):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] cheatengine(3338054):已签
...
2023-07-27 08:35:29,415 [tieba.sign] [INFO] 58个贴吧已签到，78个贴吧未签到
2023-07-27 08:35:29,475 [tieba.sign] [ERROR] 贴吧状态异常，ie=utf-8&kw=gta5
2023-07-27 08:35:29,715 [tieba] [INFO] 退出..代码中使用fromtiebaimportTiebaapp=Tieba("RsNlNwbUpKdGtj....aFZxcHJMQVZzM3BE")#查看签到状态app.status()# 单独签到app.sign("python")#批量签到app.auto_sign()
Package: tie-decay-epidemics
Tie-Decay EpidemicsTie-Decay Epidemics contains the scripts that allow you to simulate epidemic spreading on a tie-decay network.InstallationTo install Tie-Decay Epidemics, run this command in your terminal:$pipinstall-Utie-decay-epidemicsThis is the preferred method to install Tie-Decay Epidemics, as it will always install the most recent stable release.If you don't havepipinstalled, theseinstallation instructionscan guide
you through the process.Quick Start>>>fromtie_decay_epidemicsimportExample>>>a=Example()>>>a.get_value()10CitingIf you use our work in an academic setting, please cite our paper:DevelopmentSeeCONTRIBUTING.mdfor information related to developing the code.Suggested Git Branch Strategymasteris for the most up-to-date development, very rarely should you directly commit to this branch. Your day-to-day work should exist on branches separate frommaster. It is recommended to commit to development branches and make pull requests to master.4. It is recommended to use "Squash and Merge" commits when committing PR's. It makes each set of changes tomasteratomic and as a side effect naturally encourages small well defined PR's.Additional Optional Setup Steps:Create an initial release to test.PyPI and PyPI.FollowThis PyPA tutorial, starting from the "Generating distribution archives" section.Create a blank github repository (without a README or .gitignore) and push the code to it.Delete these setup instructions fromREADME.mdwhen you are finished with them.
Package: tiempo
# tiempoTwisted Task Scheduling for Django## Dev Setup```bashvirtualenv tiempo --no-site-packages --distributedsource tiempo/bin/activatepip install -e <path to your tiempo repo>```Then to test this shit out just run:```bash./tiempo/scripts/metronome```#### To use with Django/Hendrix*  in settings.py* `TIEMPO_THREAD_CONFIG = [('prioirty1'), ('priority1, 'downstairs', 'upstairs')]`* each entry in the list specifies which queues that thread should check for work* the above example will have two both checking "priority1" and "downstairs" and "upstairs" on only one process* 'INSTALLED_APPS' += 'tiempo.contrib.django'
Package: tiempo-tracker
IntroductionTrack time you’ve spent on different tasks. Then see how much time you’ve spent on each.Continuation oftime_managementscript idea.DevelopmentBuilt with Python, Poetry, SQLAlchemy for managing database, SQLite as database.Testing: PytestRun package without building:poetry run python-mtime_tracker [options]in the project directoryExample:poetry run python-mtime_tracker-aTask1Run tests:poetry run pytestInstallationFrom sourcerunmake buildand thenmakepackage-installin the package directory.PIPrunpip installtiempo-trackerWhen you run app for the first time it will create a database. You’ll see a message:Database not found. Creating new oneAlso app will show path where database is stored.Usagetiempo-tracker can be invoked bytrtcommand in the terminal.
Available options:-h, --help            show this help message and exit
-s START, --start START
                        Start task by providing its name
-f, --finish          Finish current task. Task also can be finished
                        by starting a different task
-a ADD, --add ADD     Add new task
-r REMOVE, --remove REMOVE
                        Remove the task
-l, --list            List of all tasks
-st STATS, --stats STATS
                        Stats about tasksStart with adding new task:trt-atask1Then track the task:trt-stask1To finish the task either start a new one (add new task first if it doesn’t exist yet):trt-stask2or finish tasktrt-fShow all added tasks:trt-lIf particular task is in progress there will be(in progress)status near this task. Example:Project_work
Exercising (in progress)
Flask_API_project
Some_taskRemove task if it’s no longer needed:trt-rtask1See how much time you’ve spent on each task during the day:trt-stTime will be presented in two formats:hr:minand as a decimal number. The latter is convenient for further storage in spreadsheets.
Package: tiendanube
TiendaNube API Python Client.InstallJustpip install tiendanube.UsageQuery list of products:> api_key = 'API_KEY'
> from tiendanube import NubeClient
> client = NubeClient(api_key)
> store = client.get_store(1)
> [p.name.es for p in store.products.list()]
[u'Mi primer producto',
 u'Probando publicaci\xf3n',
 u'hola',
 u'Producto de Prueba']Query one product in particular:> api_key = 'API_KEY'
> from tiendanube import NubeClient
> client = NubeClient(api_key)
> store = client.get_store(1)
> p = store.products.get(911)
> p.name.es
u'Mi primer producto'Query images for a given product:> api_key = 'API_KEY'
> from tiendanube import NubeClient
> client = NubeClient(api_key)
> store = client.get_store(1)
> p = store.products.get(911)
> [i.src for i in p.images.list()]
[u'http://example.com/image.jpg']DevelopmentRunning tests:$ python -m tests.run
Package: tiered-antibiotic-resistance-model
Warwick iGEM computational modellingA repository containing code for custom computational modelling components
within the 2021 Warwick team iGEM project.We used Python to implement a discrete time, stochastic, compartmental model of
the spread of antibiotic resistant pathogens through a population.Model abstractWe propose a validated computational model of the spread of an antibiotic
resistant pathogens in a hospital, with and without our diagnostic tool for
quickly identifying it, and show that in a relevant scenario it reduces the
presence of antibiotic resistant pathogens in our selected scenario, showing our
product is beneficial in the real-world.Writeup, documentation and production codeThe writeup for the entire project can be found here:As a markdown documentAs a PDF fileAs part of the Warwick iGEM 2021 wikiThe documentation for the production code can be found here:On readthedocs.ioThe final production code for the project can be found here:As a standalone python fileAs a package on PyPITeamThe core team members of the project are:Edmund Goodman, Model design and software
implementationAxel Schoerner Emillon,
Model design and data analysisWith thanks toReanna Gregory,Alex Darlington, and the rest of the 2021 iGEM Warwick team for their time discussing the initial design and ways to improve the model.Contributions and errataIf you find a bug in the code or an error in the writeup, feel free to submit
a pull request or an issue through GitHub, and we will endeavour to fix it!
Package: tier-sdk
TIER PythonAn SDK to easily work with theTIER APIInstallVia Pippipinstalltier-sdkUsagefromtierimportTIERtier=TIER(api_token="your-token")sites=tier.vehicles.in_radius(52.548977,13.437837,500)Available MethodsDescriptiontier.vehicles.in_radius(latitude, longitude, radius)Retrieve aVehiclesCollectiondict with details about vehicles for a specific radius.tier.vehicles.in_zone(zone_id)Retrieve aVehiclesCollectiondict with details about vehicles for a specific radius.tier.vehicles.get(vehicle_id)Retrieve aVehicledict with details about a specific vehicle.tier.zones.all()Retrieve aRootZonesCollectiondict with details about all zones.tier.zones.near(latitude, longitude)Retrieve aRootZonesCollectiondict with details about zones within 50km of a set of coordinates.tier.zones.get(zone_id)Retrieve aRootZonedict with details about a specific zone.Change logPlease seeCHANGELOGfor more information on what has changed recently.Testinghatchshell

hatchruntestSecurityIf you discover any security related issues, please emailsecurity@voke.devinstead of using the issue tracker.CreditsOwen VokeAll ContributorsLicenseThe MIT License (MIT). Please seeLicense Filefor more information.TreewareYou're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.You can buy treeshere.Read more about Treeware attreeware.earth.
Package: ties-lib
OverviewThe Triage Import Export Schema (TIES) specifies a data interchange format for bidirectional sharing of data. The schema
captures object items, relationships, and assertion information via a generic and flexible approach.At its highest level, it consists of:An array of exported multimedia object items (videos, images, documents) and associated metadata, not including the raw multimedia dataAn array of groups of related object itemsAn array of analyst annotations relating to object items included in the exportAn array of supplemental descriptions relating to object items included in the exportRelationships between object items, annotations, and supplemental descriptionsAn array of key/value pairs containing user-defined metadataLicenseCopyright 2019 Noblis, IncLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.The above license applies to all of the Triage Import Export Schema (TIES)
source code in the TIES repository.Python Reference ImplementationThe TIES Python reference implementation can be installed using pip:pip install ties-lib==0.9.1Git RepositoryTo clone the TIES Git repository:git clone https://github.com/Noblis/ties-lib.git
Package: tieval
tievalA framework for evaluation and development of temporally aware models.InstallationThe package is available onPyPI:pipinstalltievalIt requires Python 3.8 or above.UsageTo understand its usability refer to the notebooks availablehere.DataThroughout the last two decades many datasets have been developed to train this task.
tieval provides an easy interface to download the available corpus.To know more about the module run the following code on the terminal.python-mtievaldownload--helpHow to ...In this section, we summarize how to perform the most useful operations in tieval.download a dataset.frompathlibimportPathfromtievalimportdatasetsdata_path=Path("data/")datasets.download("TimeBank",data_path)load a dataset.fromtievalimportdatasetste3=datasets.read("tempeval_3")load a model.fromtievalimportmodelsmodel=models.TimexIdentificationBaseline()make predictions.pred=model.predict(te3.test)evaluate predictions.fromtievalimportevaluateannot={doc.name:doc.timexsfordocinte3.test}results=evaluate.timex_identification(annot,pred)ContributingFork it (https://github.com/LIAAD/tieval)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestMetaHugo Sousa -hugo.o.sousa@inesctec.ptThis framework is part of theText2Storyproject which is financed by the ERDF –
European Regional Development Fund through the North Portugal Regional Operational Programme (NORTE 2020), under the
PORTUGAL 2020 and by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia
within project PTDC/CCI-COM/31857/2017 (NORTE-01-0145-FEDER-03185)PublicationsIf you usetievalin your work please site the following article:@inproceedings{10.1145/3539618.3591892,author={Sousa, Hugo and Campos, Ricardo and Jorge, Al\'{\i}pio M\'{a}rio},title={Tieval: An Evaluation Framework for Temporal Information Extraction Systems},year={2023},isbn={9781450394086},publisher={Association for Computing Machinery},address={New York, NY, USA},url={https://doi.org/10.1145/3539618.3591892},doi={10.1145/3539618.3591892},booktitle={Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval},pages={2871–2879},numpages={9},keywords={temporal information extraction, evaluation, python package},location={Taipei, Taiwan},series={SIGIR '23}}
Package: tif
TIFPython versionPython 3.8.9DependenciesFabric 2:https://www.fabfile.org/Docker SDK for Python:https://pypi.org/project/docker/https://docker-py.readthedocs.io/en/stable/index.htmlPython Hosts:https://pypi.org/project/python-hosts/Emoji:https://pypi.org/project/emoji/Installationpip3installtif
Package: tif2geojson
Installpip install tif2geojsonFeaturesRead XML TourInFrance V3 and converts to GeoJSONTake profit oftitle,description,category,pictures,websiteandphoneattributesSelect language for title and descriptionConverts from command-lineUsagefromtif2geojsonimporttif2geojsongeojson=tif2geojson(xmlcontent)If you havegeojsonio-cliinstalled, you can shoot TourInFrance URLs straight togeojson.iofor lightning-fast visualization and editing.$curl"http://sit.com/flux.xml"|tif2geojson.py|geojsonioAuthorsMathieu LeplatreLicenseFree software BSD - Copyright Makina CorpusHistory0.1.3 (2014-06-19)Add a number of safety checks if TIF malformed0.1.2 (2014-06-12)Fix error when dc:title tags have no attributeFix error when image has no copyrightFix error when several adresses for one entry0.1.1 (2014-04-06)Fix module packaging0.1.0 (2014-03-28)Initial working version
Package: tifeatures
Simple and Fast Geospatial Features API for PostGIS.Documentation:https://developmentseed.org/tifeatures/Source Code:https://github.com/developmentseed/tifeatures:warning: This project is on pause while we focus ondevelopmentseed/tipg:warning:ref:https://github.com/developmentseed/timvt/discussions/96TiFeatures, pronouncedT[ee]Features, is apythonpackage which helps creating lightweightFeaturesserver for PostGIS Database. The API has been designed with respect toOGC Features API specification.Install$python-mpipinstallpip-U
$python-mpipinstalltifeatures# or from source$gitclonehttps://github.com/developmentseed/tifeatures.git
$cdtifeatures
$python-mpipinstall-e.OGC SpecificationSpecificationStatuslinkPart 1: Core✅https://docs.ogc.org/is/17-069r4/17-069r4.htmlPart 2: CRS by Reference❌https://docs.ogc.org/is/18-058r1/18-058r1.htmlPart 3: Filtering / CQL2✅https://docs.ogc.org/DRAFTS/19-079r1.htmlNotes:The project authors choose not to implement the Part 2 of the specification to avoid the introduction of CRS based GeoJSON. This might change in the future.While the authors tried to follow the specification (part 1 and 3) to the letter, some API endpoints might have more capabilities (e.g geometry column selection).PostGIS/PostgreSQLTiFeaturesrely a lot ofST_*PostGIS functions. You need to make sure your PostgreSQL database has PostGIS installed.SELECTname,default_version,installed_versionFROMpg_available_extensionsWHEREnameLIKE'postgis%'ornameLIKE'address%';CREATEEXTENSIONpostgis;ConfigurationTo be able to work, the application will need access to the database.tifeaturesusesstarlette's configuration pattern which make use of environment variable and/or.envfile to pass variable to the application.Example of.envfile can be found in.env.example# you need define the DATABASE_URL directly
DATABASE_URL=postgresql://username:password@0.0.0.0:5432/postgisLaunch$pipinstalluvicorn# Set your postgis database instance URL in the environment$exportDATABASE_URL=postgresql://username:password@0.0.0.0:5432/postgis
$uvicorntifeatures.main:app# or using Docker$docker-composeupContribution & DevelopmentSeeCONTRIBUTING.mdLicenseSeeLICENSEAuthorsCreated byDevelopment SeedChangesSeeCHANGES.md.
Package: tiff2csv
tiff2csvThis is a simple python package for processing.tifimage data and outputting.csvfiles.
The intention is to operate on a sequence of.tifimages and, based on a given discretization size,
output a.csvfile containing the voxel data.
You can find the Github repository onhttps://github.com/alhermann/tiff2csv.git.Getting startedYou can use the Python package manager Pip for downloading the module fromhttps://pypi.org/project/tiff2csv.pip3 install tiff2csvExampleSuppose you have stored a stack of.tifimage files in an upper subdirectory called../tiffs. In order to run the main module, you have to provide this path as a mandatory argument. For the description of additional arguments, you can use the-hor--helpflagpython3 -m tiff2csv --helpwhich produces the following output:usage: __main__.py [-h] [-n imgNum] [-r resolution] [-d dFile] [-p pooling] sFile [sFile ...]

Script that reads a sequence of .tif files and outputs .csv file of voxel data
to user specified directory

positional arguments:
  sFile          the source file of the .tif image sequence

optional arguments:
  -h, --help     show this help message and exit
  -n imgNum      number of .tif images
  -r resolution  voxel resolution in the .tif images
  -d dFile       the destination directory where the output should go to
  -p pooling     optionally activate 2D pooling on the input imagesFor an exemplary CT image resolution of 5mu the following command runs a max-pooling compression on the input image data files and outputs avoxelization.csvvoxel data file to user specified (in this case parent) directory.python3 -m tiff2csv ../tiffs/ -r 5e-6 -d ../ -p True