Saravanan666/pypi-org huggingface dataset:
Package: tcrpy
tcrpyPython Library for Interacting with the TCR Platform API.UsageQuickStartReferencesFastAPIRelease ChangeLogInstallvia pip ( recommended )The easiest way to install the latest version from PyPI is by usingpip:$ pip install tcrpyvia Git Clonewith extrasClone the repository to an empty directory$ git clone https://github.com/mitchellaha/tcrpy.git .Create a virtual environment$ python3 -m venv venvActivate the virtual environment$ source venv/bin/activateInstall dependencies$ pip install -r requirements.txtFrom Source (Advanced)Clone the repository to an empty directory$ git clone https://github.com/mitchellaha/tcrpy.git .Verify SetupTools is Updated$ pip install --upgrade setuptoolsInstall the project$ python setup.py installTo-Do:All TCR API EndpointsAdd more documentationExplain Correlation & Uses of different TCR Rest endpointsCreate More Unified Filter ConditionsAdd Status Filter to Customers & JobsGetSideMenus contains info for Quick Filter Check BoxesAdd Ticket Status & Ticket Type FilterPull the needed data from the TCR_Menu/TCRConstantsAdvanced Search Filters:Python Class Enums with TCRConstantsDataTypes = "QueryFilterFieldDataType" in TCRConstantsEach DataType is allowed certain "QueryParamOperator" in TCRConstantsPagination SupportCleanup Login / CookieGetterFastAPIAdd DocumentationAdd PostMan CollectionAdd AuthenticationServerside LoggingAdd Descript Error Messages
Package: tcr-roboclaw
RoboClaw Python Library - Team Chat RobotiqueAn easy-to-install version of Basicmicro's RoboClaw Python libraryWe want to install and use this code easily on our robots for theFrench Robotics Cupand forEurobot, so here is the main file that is distributed by Basicmicro.All methods in the library have docstrings to help coding and understanding what they are used for. Most docstrings information is based on Basicmicro'sUser Manual.Most methods were not tested on a real RoboClaw, at the moment of releasingtcr-roboclaw 0.1.0. If you encounter a bug with the library, feel free to postan issueor a pull request onour repo.Installationpip install tcr-roboclawUsageUsetcr-roboclawby importing the class :fromtcr_roboclawimportRoboclawroboclaw=Roboclaw("/dev/ttyACM0",115200)roboclaw.open():warning: Some method/function names were changed to comply withPEP8or to make them more explicit (Explicit is better than implicit.). Double-check that you use the right methods when using this library with code that was written with the original RoboClaw Python library :warning:Contributing(Recommended)flitis used to package this module. Development packages can be installed usingflit:python -m venv venvsource venv/bin/activatepip install flitflit installAcknowledgementsThis package was created to installroboclaw's Python library easily on any platform.
It contains code from theofficialbasicmicro' RoboClaw Python library.Related LinksRoboClaw Python LibraryUser ManualDatasheet
Package: tcrsampler
tcrsamplerSample TCRs according to VDJ gene usage frequencyInstallpip install tcrsamplerExampleimportosimportpandasaspdfromtcrsampler.samplerimportTCRsamplert=TCRsampler()fn=os.path.join('tcrsampler','tests','pmbc_mixcr_example_data.txt')t.clean_mixcr(filename=fn)t.build_background(stratify_by_subject=True,use_frequency=True)t.sample([['TRBV9*01','TRBJ2-7*01',2],['TRBV7-7*01','TRBJ2-4*01',4]],depth=1,use_frequency=True)[['CASSRTGSLADEQYF', 'CASSATGVVSAQYF'],
 ['CASSLGQAARGIQYF', 'CASSLGQAARGIQYF', 'CASSLGQAARGIQYF', 'CASSLGQAARGIQYF']]Download Default Backgroundpython-c"from tcrsampler.setup_db import install_all_next_gen; install_all_next_gen(dry_run = False)"
Package: tcrutils
TCRUtilsUseful stuff for tcr projects.Todoif in timestr.to_int() there are both and only 1 each of: x.y.z and a:b:c syntaxes thendays -= 1to_str2which shows in format1d + 23:45:57update gp_scum.py to use tcrutils from pypitimestr.to_int()should support weekdaysAdd all docstringsFix floats not recognized and negative numbers not recognizedAlso weekdays now needdays -= 1(((number_of_date_syntaxes) ^ (number_of_weekday_syntaxes) == 1) and)Add docstring to dict_zip and othersmake docstrings use <h1> // ###Add optional syntax highlighting to print_iterableRewrite print_iterable, maybeeee?dir2()add IFYs to discord.stringadd Components[] constructor (returns both view and view.build())tcr.insist()Move the printer decorator into decorators fileAdd doc to fmt_iterable when doneFix when trailing_commas=False breaks 1-element tuplesTest ifys<style>s{color: crimson;} b,strong{text-decoration:underline}</style><style>p, li{font-family: "Hubot Sans Bold"; font-size: 17px}</style><style>code, pre{font-family: Consolas}</style><style>code{background-color: #271a45; border-radius: 4px; padding: 2px; padding-left: 5px; padding-right: 5px;}</style>
Package: tcsa
temporalis Cross Sectional Area (tCSA)The temporalis Cross Sectional Area (tCSA) is a Python package for the segmentation of the temporalis muscle in T1-weighted contrast enhanced MRI and returns the cross-sectional area of the muscle.Preferred input type is NIfTI files (.nii or .nii.gz), however, it is possible to work with DICOM files (.dcm) with the included converter in the package.For now tCSA is only available on POSIX systems (Linux, and macOS) and require python == 3.7.Table of ContentsInstallationQuick startDICOMCreditsContributorsReferencesInstallationTo install the package, create a new virtual environment and run the following command:python -m pip install tcsaQuick startOnce installed, tCSA can be run in the command line interface withtcsa.tcsa .path/to/images -o path/to/output/folder/temporalis.csv --both-sides --delete../images: is the path to where the MRI are stored, it can be a directory or a single image-o output/temporalis.csv: optional, this is the path to where the csv file will be saved and can be ommited.The output file will be created automatically--both-sides: optional, if present will segment both sides of the temporalis muscle--delete: optional, if present will delete all intermediate files and only keep the original MRI, the downloaded weights, and the csv fileall paths can be absolute or relativeDICOMTo work with DICOM(.dcm) files you need to either convert them manually or use the argument--dicom.Dicom files must be put in a folder.tcsa path/to/folder/with/dicom/images --dicomPlease be aware that if the DICOM file has multiple components, only the first one will be segmented and the others will be discarded.CreditsContributorsM. Radvile, Data analyst, Computational Oncology lab, Imperial College London, United KingdomA. Adrien, Visiting student, Computational Oncology lab, Imperial College London, United KingdomW. James, Honorary Clinical Research Fellow, Computational Oncology lab, Imperial College London, United Kingdom
Package: tc-sam-cli
DO NOT USE, THIS IS PRE-ALPHA, HAS NO TESTStc-sam-cliA very simplified tool wrapped around aws-sam-cli to deploy aws lambda.Works together withtclambdaConfiguration[Default]StackName="tc-sam-playground"S3CodeBucket="tc-sam-bucket"[[ExtraPolicies]]Effect="Allow"Action=["dynamodb:*"]Resource="arn:aws:dynamodb:eu-west-1:1234:table/myTable"[Functions.MyLambda]CodeUri="mylambda/"Handler="app.handler"Runtime="python3.7"MemorySize=256Timeout=60ReservedConcurrentExecutions=1BatchSize=10[Functions.MyLambda.Environment]MY_KEY="my value"[Functions.TcLambda.Events.Ping]Schedule="rate(1 minute)"Function="ping"# More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api[Functions.TcLambda.Api.Webhook]Path="/hello"Method="post"[Functions.Numpy]CodeUri="numpy/"Handler="app.handler"Runtime="python3.7"MemorySize=256Timeout=60Tracing=trueGenerate AWS SAM templateAfter every change intc-sam.tomlthe template must be regenerated.$tc-samgenerate_template>template.ymlIt's recommended to havetemplate.ymlunder source control.Every Lambda has given access to each other's SQS Queue, and all Lambdas share the same S3 bucket for results.DeployDeploy is very straightforward, it builds the sam package and deploys the cloudformation stack.$tc-samdeployEnvironmental export$tc-samenv_exportTC_NUMPY_QUEUE="https://sqs.eu-west-1.amazonaws.com/123/tc-sam-playground-NumpySqs-ABC"TC_NUMPY_BUCKET="tc-sam-playground-resultbucket-123456"TC_MYLAMBDA_QUEUE="https://sqs.eu-west-1.amazonaws.com/123/tc-sam-playground-TcLambdaSqs-ABC"TC_MYLAMBDA_BUCKET="tc-sam-playground-resultbucket-123456"These settings can be copied to other projects that will use the aws lambdas.Ping all lambdasThe tclambda handler comes with apingcommand to test if both permissions to SQS and S3 are allowed.$tc-samping
PingNUMPY
PingMYLAMBDA
PongNUMPY
PongMYLAMBDA
Package: tc-science
Thermochemistry Science LibraryInstallationUse the package managerpipto installThermochemistry Sciencepackage.pipinstalltc_scienceWho's usI'm a solo python programmer, living in jorden, owner of science package.descriptionA comprehensive scientific library specialized in thermomechanics and atomic sciences, capable of establishing bonds between atoms to build chemical reactions between them and depicting them in the form of symbolic or verbal equations.
This library is a scientific library that contains a lot of functions 
that are able to help developers and some hobbyists to develop programs
related to conversion between temperatures or atomic activity 
in containing almost all the information of atoms,
which makes it powerful and able to create simple simulations of atomic activities.Operating system compatibilitysystem typecompatibilityLinuxNot Sure yet:interrobang:Windowscompatible:heavy_check_mark:Mac OScompatible:heavy_check_mark:package capabilitiesconvert between temperature scalesDraw charts of the expected change in temperature of objects or areas under given weather conditionsContains thermomechanical equationsBuilding chemical bonds between atoms...etc.NOTE:This package is supposed to be able to turn fantasy into reality, but the only truth seems to be that this is almost impossible if you remain in this state of poor performance and desperate need for help.ContributingPull requests are welcome. For major changes, please open anissuefirst
to discuss what you would like to change.Please make sure to update tests as appropriate.SourcesSource CodeAtomic StuffthermodynamicsErrorsUsageSimpel usageConvert between temperature scales#                       Convert from Celsius to Kelvin# Importing the module as scimporttc_scienceassc# Convert the Temperatureresult=sc.Temperature.Kelvin(23,Key='c')# Printing the resultprint(result)For more details, please see thedocumentsLicenseMIT
Package: tcs-client
TCS ClientLibrary to handle TCS (Telescope Control System) commands and work as client.This library implements a TCP/IP socket following the SCLN protocol, this is 4 bytes to define the message length followed by the message itself using a big-endian and ASCII coding.It will triggers a TCSError exception on failure, otherwise each command will return a dictionary with two keys,raw_responseandresponse.{raw_response:"<COMMAND RESPONSE>",response:[],key1:"value1",key2:"value2"}raw_responsevalue is a string with the TCS response.responsevalue is a list of all single words received in the TCS response.All other strings which match the formatkey=valueare splitted and appended to the response dictionary, as shown forkey1andkey2, if more than 1 key is received, the next keys will be namedkey[i]with i an increasing index.
Package: tc-scraper
Python script to analyse Competitive Programming matches from sitehttps://www.topcoder.com/using BeautifulSoup4. Features available: Problem Ratings (feature not availabe in topcoder), Links to problems, Problemwise analysis!!How to installOpen a new terminalCreate a new enlistment for the project:foo@bar:~$gitclonehttps://github.com/y0g38h-kum4r/tc_scraperfoo@bar:~$cdtc_scraperCreate a new virtual environmentfoo@bar:~$python-mvenvenvfoo@bar:~$sourceenv/bin/activateUpgrade pip installerfoo@bar:~$python-mpipinstall--upgradepip4.Install the projectfoo@bar:~$pipsetup.pyinstallfoo@bar:~$pipinstall-e.Examplefoo@bar:~$tc_scraper-hfoo@bar:~$usage:tc_scraper[-h][-o][-l]contest_namepositional arguments:contest_name        Contest name to analyseoptional arguments:-h, --help          show this help message and exit-o, --output        Output result to txt file-l, --problemlinks  Prints the links to problems
Package: tcsctl
Welcome to The CloudsphereThe Cloudsphere efficiently manages your cloud infrastructures 🚀Automate infrastructure as code (IaC) provisioning at any scale,
at any cloud or data center with any tool. Through a single central
API. Freely definable cloud infrastructures at the push of a button
as self-service.Install the CLI for The Cloudsphere withpip3 install tcsctl.A Getting Started Guide can be found in the documentation for The Cloudsphere:https://thecloudsphere.io/docs/getting-started.Hello World examples can be found in the repositoryhttps://github.com/thecloudsphere/hello-world.
Package: tcsdk
tcsdkTcloud SDK for Performance DataSource Program.OverviewThe Main Program:https://github.com/tsbxmw/datasourceUsing for upload data of the program.ExampleAuthUsing auth to complete the authorization.fromtcsdkimportAuthauth=Auth("key","secret")Init ApiServiceInit ApiService with endpointfromtcsdkimportApiapi=Api(auth=auth,endpoint="http://localhost:9030")Create Task By ApiTask is create by api object, you should offer thetask_name, otherwise system would offer the "".task=api.create_task("test")If you offer thelabel_nameafter thetask_nameincreate_task, you would get an defaultlabelwith namelabel_namewhich intask.labels.Create Label By TaskLabel is the sub process of task, you can also create a label bylabel_name.label=task.create_label("test")Notice:task_namehas no relationship withlabel_name.Now, you can upload the label data!label.upload(fps=100)Full examplefromtcsdkimport*if__name__=="__main__":auth=Auth("4c8093f3","200f759b-1b83-4d")api=Api(auth=auth,endpoint="http://localhost:9030")task=api.create_task("test_for_sdk_111")asserttask.task_id!=0label=task.create_label("test_for_sdk11")assertlabel.label_id!=0assertlabel.upload(fps=100)isTrue
Package: tcShip
tcshippython package for tcship race.INSTALLpip install tcshipSAMPLEdefault with displayfromtcShipimporttc_ship,configimportrandomdefstep_model(env,observation):ship=observation["body"][0]t1=observation["target"][0]t2=observation["target"][1]stone=observation['stone']# 曼哈顿距离d1=abs(t1[0]-ship[0])+abs(t1[1]-ship[1])d2=abs(t2[0]-ship[0])+abs(t2[1]-ship[1])ifd1>d2:i=1else:i=0# 最近星球坐标target=observation["target"][i]ifship[0]>target[0]:next_step="left"next_ship=[ship[0]-1,ship[1]]elifship[0]<target[0]:next_step="right"next_ship=[ship[0]+1,ship[1]]else:next_step="down"next_ship=[ship[0],ship[1]+1]# 思考下什么时候向上或者向下？# elif ship[1] > target[1]:#     next_step =  "up"#     next_ship = [ship[0], ship[1] - 1]#检查下下一步会不会撞上陨石ifnext_shipnotinstone:returnnext_step#仿照检测陨石，如何实现增加检测边界横坐标和纵坐标都不能 < 0或 > 16 ？#and ?>=0 and ?<= 16else:safe_action=["right","left","up","down"]safe_action.remove(next_step)#思考是否有更好的方向选择替代随机选择？让飞船更快走到行星,以及此时随机选择出来的方向就一定安全么？#比如同时可以选的方向为"up"和"down"，如果行星在飞船上方，那我们优先选择"up"。returnrandom.choice(safe_action)##思考下飞船方向能不能直接回头？如何避免？# global last_action# if last_action == "left" and action == "right":defmain():env=tc_ship()observation=env.reset()rew=0for_inrange(100):action=step_model(env,observation)print(action)observation,reward,done,info=env.step(action)rew+=rewardenv.sleep(0.5)ifdone:print("rew :  "+str(rew))breakmain()config no displayfromtcShipimporttc_ship,configimportrandomconfig.WORKSPACE="tianchi"#"local"则展示可视化动画#正式版代码模版defstep_model(env,observation):action_space=env.action_spaceaction=random.choice(action_space)returnactiondefmain():env=tc_ship()observation=env.reset()rew=0for_inrange(100):action=step_model(env,observation)print(action)observation,reward,done,info=env.step(action)rew+=rewardenv.sleep(0.5)ifdone:print("rew :  "+str(rew))breakmain()
Package: tcsprotowhat
protowhatprotowhatis a utility package required byshellwhatandsqlwhatpackages, used for writing Submission Correctness Tests SCTs for interactive Shell and SQL exercises on DataCamp. It contains shared functionality related to SCT syntax, selectors and state manipulation.If you are new to teaching on DataCamp, check outhttps://instructor-support.datacamp.com.If you want to learn what SCTs are and how they work, visitthis articlespecifically.For a deep dive inprotowhat, consulthttps://protowhat.readthedocs.io.Installationpyenv local 3.9.0
pip3.9 install protowhat   # install from pypi
make install            # install from sourceTestingpip3.9 install -e .
pytestLicense
Package: tcs-protowhat
protowhatprotowhatis a utility package required byshellwhatandsqlwhatpackages, used for writing Submission Correctness Tests SCTs for interactive Shell and SQL exercises on DataCamp. It contains shared functionality related to SCT syntax, selectors and state manipulation.If you are new to teaching on DataCamp, check outhttps://instructor-support.datacamp.com.If you want to learn what SCTs are and how they work, visitthis articlespecifically.For a deep dive inprotowhat, consulthttps://protowhat.readthedocs.io.Installationpyenv local 3.9.0
pip3.9 install protowhat   # install from pypi
make install            # install from sourceTestingpip3.9 install -e .
pytestLicense
Package: tcs-pythonwhat
pythonwhatVerify Python code submissions and auto-generate meaningful feedback messages. Originally developed for Python exercises on DataCamp for so-called Submission Correctness Tests, but can also be used independently.New to teaching on DataCamp? Check outhttps://instructor-support.datacamp.comTo learn what SCTs are and how they work, visitthis articlespecifically.For a complete overview of all functionality inside pythonwhat and articles about what to use when, consulthttps://pythonwhat.readthedocs.io.Installation# latest stable version from PyPipipinstallpythonwhat# latest development version from GitHubpipinstallgit+https://github.com/datacamp/pythonwhatDemoTo experiment locally, you can usesetup_state()and write SCTs interactively.
The code throws an error when the underlying checks fail.# make all checking functions availablefrompythonwhat.test_exerciseimportprep_context_,ctxt=prep_context()globals().update(ctxt)# initialize state with student and solution submissionfrompythonwhat.test_exerciseimportsetup_statesetup_state(stu_code="x = 5",sol_code="x = 4")Ex().check_object('x')# No error: x is defined in both student and solution processEx().check_object('x').has_equal_value()# TestFail: Did you correctly define the variable `x`? Expected `4`, but got `5`.# Debugging stateEx()._state# access state objectdir(Ex()._state)# list all elements available in the state objectEx()._state.student_code# access student_code of state objectTo learn how to include an SCT in a DataCamp course, visithttps://instructor-support.datacamp.com.Run testspyenvlocal3.9.6
pip3.9install-rrequirements.txt
pip3.9install-e.
pytestContributingBugs? Questions? Suggestions?Create an issue, orcontact us!License
Package: tcs-shellWhat
shellwhatshellwhatenables you to write Submission Correctness Tests (SCTs) for interactive Shell exercises on DataCamp.If you are new to teaching on DataCamp, check outhttps://instructor-support.datacamp.com.If you want to learn what SCTs are and how they work, visitthis articlespecifically.For a complete overview of all functionality insideshellwhatand articles about what to use when, consulthttps://shellwhat.readthedocs.io.InstallingpipinstallshellwhatDevelopmentInstall everything needed for developing:pipinstall-rrequirements.txt
pipinstall-e.By default, theDummyParseris used, that does not parse the shell code.
Hence, you can not run tests that need this parser:pytest-m"not osh"If you also want to run these 'parser tests',
there is a Dockerfile to parse shell commands with
theOil parser:# Look in Makefile for detailsSHELLWHAT_PARSER='docker'maketestLicense
Package: tcs-sqlWhat
sqlwhatsqlwhatenables you to write Submission Correctness Tests (SCTs) for interactive SQL exercises on DataCamp.If you are new to teaching on DataCamp, check outhttps://authoring.datacamp.com.If you want to learn what SCTs are and how they work, visitthis articlespecifically.For more information about writing SCTs for SQL exercises, consulthttps://sqlwhat.readthedocs.io.Installingpip install sqlwhat     # install from pypi
make install            # install from sourceReferenceAPI Docs:https://sqlwhat.readthedocs.ioAST viewer:https://ast-viewer.datacamp.comExtensions:https://github.com/datacamp/sqlwhat-extRaising issues with how SQL is parsedPlease raise an issue on the respsective parser repo:antlr-tsqlantlr-psqlBasic Usefromsqlwhat.StateimportState# State holds info needed for testsfromsqlwhat.ReporterimportReporterfromsqlwhat.checksimport*# imports all SCTsfromsqlalchemyimportcreate_enginecode="SELECT * FROM artists WHERE id < 100"state=State(student_code=code,solution_code=code,pre_exercise_code="",student_conn=create_engine('sqlite:///'),solution_conn=create_engine('sqlite:///'),student_result={'id':[1,2,3],'name':['greg','jon','martha']},solution_result={'id':[1,2,3],'name':['toby','keith','deb']},reporter=Reporter())# test below passes, since code is equal for student and solutionhas_equal_ast(state)# test below raises a TestFail error, since 'name' col of results# doesn't match between student and solution resultscheck_result(state)# shows error datastate.reporter.build_payload()# can also be done using a chainfromsqlwhat.sct_syntaximportExEx(state).check_result()Running unit testspytest-m"not backend"If you also want to run the backend tests, you need to set aGITHUB_TOKENenvironment variable with access to the (private)sqlbackendrepository.
After this, you can:makeinstall
pytestRules of testingRunning queries is the backend's jobIf a test doesn't run queries, it doesn't need the backendVery few tests should run queriesBuilding DocsInstall sqlwhat and run ..cd docs
make html
Package: tcs-sqlwhat2
sqlwhatsqlwhatenables you to write Submission Correctness Tests (SCTs) for interactive SQL exercises on DataCamp.If you are new to teaching on DataCamp, check outhttps://authoring.datacamp.com.If you want to learn what SCTs are and how they work, visitthis articlespecifically.For more information about writing SCTs for SQL exercises, consulthttps://sqlwhat.readthedocs.io.Installingpip install sqlwhat     # install from pypi
make install            # install from sourceReferenceAPI Docs:https://sqlwhat.readthedocs.ioAST viewer:https://ast-viewer.datacamp.comExtensions:https://github.com/datacamp/sqlwhat-extRaising issues with how SQL is parsedPlease raise an issue on the respsective parser repo:antlr-tsqlantlr-psqlBasic Usefromtcs_sqlwhat2.StateimportState# State holds info needed for testsfromtcs_sqlwhat2.ReporterimportReporterfromtcs_sqlwhat2.checksimport*# imports all SCTsfromsqlalchemyimportcreate_enginecode="SELECT * FROM artists WHERE id < 100"state=State(student_code=code,solution_code=code,pre_exercise_code="",student_conn=create_engine('sqlite:///'),solution_conn=create_engine('sqlite:///'),student_result={'id':[1,2,3],'name':['greg','jon','martha']},solution_result={'id':[1,2,3],'name':['toby','keith','deb']},reporter=Reporter())# test below passes, since code is equal for student and solutionhas_equal_ast(state)# test below raises a TestFail error, since 'name' col of results# doesn't match between student and solution resultscheck_result(state)# shows error datastate.reporter.build_payload()# can also be done using a chainfromtcs_sqlwhat2.sct_syntaximportExEx(state).check_result()Running unit testspytest-m"not backend"If you also want to run the backend tests, you need to set aGITHUB_TOKENenvironment variable with access to the (private)sqlbackendrepository.
After this, you can:makeinstall
pytestRules of testingRunning queries is the backend's jobIf a test doesn't run queries, it doesn't need the backendVery few tests should run queriesBuilding DocsInstall sqlwhat and run ..cd docs
make html