Saravanan666/pypi-org huggingface dataset:
Package: tarantula
Descriptiontarantula crawls your movie directory, and retrieves info,
posters and trailer of the movies present from the International
Movie Database(IMDb) and RottenTomatoes.com. It also creates a
local database of the retrieved info. Information obtained includes Plot,
Director, Actors, IMDb Rating, TomatoMeter, etc.The sqlite database can then be searched using sql commands such
as the Following, which shows you all the movies directed by
Christopher Nolan.Version1.1.0b1Modulesgetmoviedata - Gets info and posters of a movieand stores in the form of text, json and an sqlite DB.tarantula - Recursively searches a directory, identifying
movies. Then calls getmoviedata.replace - In case the info is wrong, the user can replace it.How to UseExtract all the files from the .tar or.zip file (either is fine)
and run this from the command line:python3 setup.py installFor help on usage, run the following from the command line:tarantula.py --help
getmoviedata.py --help
replace.py --helpFor DevelopersIn case you were thinking of using a module or two from this
code, feel free to do so. This code is licensed under the MIT
License, which means you can use it however you like as long
as you preserve the copyright notice.Ways you could use the code:Use the whole thing, and write a GUI for the data in the
database, as use the posters and the trailers to add flavour.Replace the crawler (tarantula) with your own, if you prefer
some other language and use getmoviedata to get whatever you
want.Use everything, replacing the writer module alone, if you
want to do something else with the data.Use the wrappers for the RottenTomatoes and IMDb API’s - rtapi
and imdbapi respectively.Use only the trailer module to get the trailers of movies.I have tried my best to follow the coding and documentation
guidelines inPEP-8andPEP-257, so hopefully you should have a
pleasant experience reading the code.LicensingMIT License. Refer License.txtList of AuthorsKrishna SundarramNotesOnly tested on Python 3.2Bug Reports/ Feature Requests can be sent tokrishna.sundarram@gmail.comReadme written on 10th January 2012.
Package: taraxa-py
taraxa-pyTaraxa RPC client in python.taraxa-py pypi address:taraxa-pyTaraxa official website:taraxa.ioinstallinstall from source code.git clone https://github.com/Taraxa-project/taraxa-py
cd taraxa-py
python setup.py installor install from pypipytaraxa.pip install taraxa-pyconfigdefault parameters:config={"host":"127.0.0.1","port":7777,"jsonrpc":2.0,"id":1}for all methods, if no parameter given, default will be used.package level config set and reset.any of below config will influence the whole packge.importpytaraxa.jsonrpcasrpcimportpytaraxa.ethasethimportpytaraxa.taraxaastaraxaimportpytaraxaa.netasnetrpc.set({"host":"127.0.0.1","port":7777,"jsonrpc":2.0,"id":1})eth.set({"host":"35.224.183.106",})taraxa.set({"host":"35.224.183.106",})net.set({"host":"35.224.183.106",})rpc.reset()eth.reset()taraxa.reset()net.reset()function level config setfunction level config set only influence the function it self once.importpytaraxa.ethasethr=eth.blockNumber(host='127.0.0.1',port=7777)print(r)usage1.low level useinput data can be json string or dict.response is json string.importpytaraxa.jsonrpcasrpcdata='{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'r=rpc.send(data)print(r)data={"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}r=rpc.send(data)print(r)2.middle level useresponse is json string.frompytaraxa.jsonrpcimport*r=eth_blockNumber()print(r)3.high level useresponse is parsed to python types.importpytaraxa.ethasethr=eth.blockNumber()print(r)4.ethereumweb3.pylike useimportpytaraxaimportweb3w3=web3.Web3(host="127.0.0.0",port=7777)r=w3.eth.blockNumber()print(r)w3.host="35.224.183.106"w3.port=7778r=w3.eth.blockNumber()print(r)object w3 of class Web3  will hold the host and port once you set until you reset it to default.sub packagesjsonrpcethweb3netTODOadminTODOadmmin_netTODOdebugTODOtestTODO
Package: tarball-deploy
tarball-deploy - atomically deploy your code from tarballstarball-deployis an utility to facilitate deploying code (or any files, for
that matter) packed into TAR archives. It handles unpacking received archives,
and switching to new releases atomically (using a little bit of symlink magic).Use casestarball-deployhas been written with shared web hosting services in mind,
which usually grant you SSH access to a shared server, and one or morepublic_htmldirectories, where you're expected to put your website files (eg.
static HTML, or PHP scripts). This tool attempts to address the following
problems:How to copy new release of your website from your CI/CD pipeline (you have
one, right?) to your server.How to switch to the new release atomically, so that the site is in
consistent state all the time.How to call securely additional hooks before and after deployment (f.ex.
restarting your web server), in a way which does not allow your CI runner to
execute arbitrary commands on the server.RequirementsA decent UNIX-like system, which will let you install custom Python scriptsAtarimplementation. GNU Tar and libarchive (FreeBSD) tar are known to
work.InstallationRemember thattarball-deployis expected to be installed on your server. The
easiest way is to install it withpip:$pipinstalltarball-deployYou might, however, want or need to install it in a virtualenv and symlink
somewhere in your$PATH.UsageTo usetarball-deploy, you need to pack your code into a TAR archive first.
This is out of scope of this project, but usually you can do something like:$tarcfrelease.tarindex.htmlstyle.cssimages/**Then you can proceed with your preferred deployment method from below.Deploy from local machine$sshyour-username@your-hosttarball-deploy--workdir=/your/remote/deployment/dir<release.tarShould things go wrong, you can quickly revert to the previous deployment:$sshyour-username@your-hosttarball-deploy--workdir=/your/remote/deployment/dir--rollbackDeploy from CIFor every website you want to manage, you will need to:Generate an SSH keypair for your CI runnerEdit.ssh/authorized_keyson your server and add something similar to:restrict,command="tarball-deploy --workdir=/your/remote/deployment/dir" ssh-rsa AAAAB3Nza...Symlink/your/remote/deployment/dir/currentto a place where your web
server is expected to find your site content (usually something like~/domains/example.com/public_html)Calling additional hooksPut yourpre-deployandpost-deployscripts inside/your/remote/deployment/dir/hooks. They need to be marked as executable.CreditsCreated byPiotr ŚliwkaLicenseMIT
Package: tarball-httpd
Serves directories as .TARs (tarball archives) over http - to be downloaded by a web browsertarball_httpd extends pythons http.server/SimpleHTTPServer to serve
directories as tarballsthe goal is to do this without creating the tarball in memory at one
timeas much code as possible has been borrowed from python3’s http.serverTododoublecheck for XSS, LFI, directory traversal vulnerabilitiesadd more supported archive files: zip, non compressed zip, gz/gz2, ..test on bsd, mac and windowsInstall% pip install tarball_httpdUsage% python -m tarball_httpd
  Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

% python -m tarball_httpd 12345 --bind 127.0.0.1 --directory /tmp
  Serving HTTP on 127.0.0.1 port 12345 (http://127.0.0.1:12345/) ..

% python -m tarball_httpd -h
  usage: tarball_httpd.py [-h] [--bind ADDRESS] [--directory DIRECTORY] [port]

  positional arguments:
    port                  Specify alternate port [default: 8000]

  optional arguments:
    -h, --help            show this help message and exit
    --bind ADDRESS, -b ADDRESS
                        Specify alternate bind address [default: all interfaces]
    --directory DIRECTORY, -d DIRECTORY
                        Specify alternative directory [default:current directory]Usage without installation% git clone git@github.com:zrthstr/tarball_httpd.git
% cd tarball_httpd
% ./tarball_httpd.py
  Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...Testing% ./tests/test.shLicenseThis project is licensed under the PSF License - see theLICENSEfile for detailsAuthors and AcknowledgmentsLargs parts of its code are based on or copied from python3/lib/http/servertarball_httpd was written byzrth1k@gmail.com
Package: tarbell
Read the docs athttp://tarbell.readthedocs.orgTarbell makes it simple to put your work on the web, whether you’re a team of one or a dozen. With Tarbell, you can collaboratively build beautiful websites and publish them with ease.Tarbell makes use of familiar, flexible tools to take the magic (and frustration) out of publishing to the web. Google spreadsheets handle content management, so changes to your stories are easy to make without touching a line of code. Step-by-step prompts help you set up and configure your project, so that publishing it is a breeze.
Package: tarcom
TarCo Communication (tarcom)TcpClientCommunicate with network devices as TCP client.TcpServerCreate a TCP server to communicate with network devices.UsagefromtarcomimportTcpServer,TcpClientprint("Started")isServer=Trueaddress="192.168.0.1"port=42424ifisServer:com=TcpServer(port)else:com=TcpClient(address,port)defconnectionUpdatedEventHandler(sender,args):if(args.connected):print(args.address+": "+"Connected")else:print(args.address+": "+"Disconnected")defdataReceivedEventHandler(sender,args):print(args.address+": "+args.data)com.connectionUpdated=connectionUpdatedEventHandlercom.dataReceived=dataReceivedEventHandlercom.connect()inputStr=NonewhileinputStr!="E":inputStr=input("Input (E = Exit):\n")ifinputStr!=None:com.send(inputStr)print("Stopped")Internal Use Only(Use at your own risk)
Package: tarda
Tarda - An Intrusion Detection System LibraryTarda is a library for the collection of Intrusion Detection Systems (IDS) and robust-IDS, along with tools for evaluating them.InstallationYou can install Tarda using pip:pipinstalltarda# Import the Tarda libraryfromtardaimportAwesomeIDS# Create an instance of the AwesomeIDS classmodel=AwesomeIDS()# Example: Parsing data from a pcap filemodel.parse("path/to/your/file.pcap","output/file.csv",save_netstat="output/netstat.pkl")# Example: Training the modeltrain_params={"path":"output/file.csv","packet_limit":20000,"maxAE":10,"FMgrace":16000,"ADgrace":4000,"model_path":"output/kitsune.pkl","normalize":True}model.train_model(train_params)# Example: Testing the modelbenign_pos,_=model.test_model("output/file.csv","output/kitsune.pkl",threshold=None,out_image="output/benign.png",record_scores=True)ChangeLog==========0.0.1(16/04/2023)------------------
-Initialization
Package: tar-diff
Installation$[sudo]pipinstalltar-diff$[sudo]npmi-gtar-diffFeaturesfile/url arguments supportedExamples$diff="$(tar-diffarchive1.tar.gzarchive2.tar.gz)"complicated example. bump python project version$dist_dir="$(mktemp-d)"$pythonsetup.pysdist--dist-dir="$dist_dir"&>/dev/null
$sdist="$(find"$dist_dir"-typef-name"*.tar.gz")"$url="$(python-mpypi_get.urls<name>|greptar.gz)"$diff="$(tar-diff"$sdist""$url")"$[[-n"$diff"]]&&bumpversionreadme42.com
Package: tardis
Tardis is a minimalCalDAVclient.ConfigurationTardis will look for a configuration file in this ordertardis.cfg,~/.tardis.cfg. The format is based onconfigparser.A section describes parameters for a CalDAV calendar.urlis minimum requirement:[Amy]
url = http://amy:****@example.com/calendars/amelia
color = blue

[Rory]
url = http://rory:***@example.com/calendars/rory
color = redFor more information please visit thetardis website.
Package: targ
targBuild a Python CLI for your app, just using type hints and docstrings.Just register your type annotated functions, and that's it - there's no special
syntax to learn, and it's super easy.# main.pyfromtargimportCLIdefadd(a:int,b:int):"""Add the two numbers.:param a:The first number.:param b:The second number."""print(a+b)if__name__=="__main__":cli=CLI()cli.register(add)cli.run()And from the command line:>>>pythonmain.pyadd112To get documentation:>>>pythonmain.pyadd--helpadd===Addthetwonumbers.

Usage
-----
addab

Args
----
a
Thefirstnumber.

b
Thesecondnumber.DocumentationThe full documentation is available onRead the Docs.
Package: targa
A lightweight async Python library for MySQL queries and modeling.InstallationThe latest version of Targa can be downloaded and installed usingpip.pip install targaAny requirements (includingaiomysql) should be automatically installed for you.UsageConnecting to a databaseThetarga.Database.connectmethod may be used to connect to an existing MySQL database. This method returns atarga.Databaseinstance that can be used to issue queries.importasyncioimporttargaasyncdefmain():database=targa.Database.connect(host='',# hostname or IP of the database serverusername='',# username to connect withpassword='',# password to connect withdatabase_name=''# name of the database instance to connect to)if__name__=='__main__':asyncio.run(main())Issuing a queryOnce atarga.Databaseis initialized, thequerymethod may be used to execute SQL queries. For example, consider a scenario where the rows in the followingpersonstable need to be read:idfirst_nameoccupation1WillDeveloper2JohnAccountant3SueEngineerAssuming a database connection has already been established, these rows could be accessed as follows:importasyncioimporttargaasyncdefmain():# ... database connection already establishedpersons=awaitdatabase.query('SELECT * FROM persons')forperson_dictinpersons:print(person_dict)if__name__=='__main__':asyncio.run(main())Thequerymethod returns each result row as adictmapping the column names as keys to the row values. As a result, this program would output:{'id':1,'first_name':'Will','occupation':'Developer'}{'id':2,'first_name':'John','occupation':'Accountant'}{'id':3,'first_name':'Sue','occupation':'Engineer'}Defining modelsObject models in Targa are represented as annotated Python classes that inherit thetarga.Modelbase class. For example, aPersonmodel for the table previously discussed would look like this:importtargaclassPerson(targa.Model):id:intfirst_name:stroccupation:strOnce this model is defined, an individual dict returned from querying thepersonstable could be wrapped as follows:importasyncioimporttargaasyncdefmain():# ... database connection already establishedpersons=awaitdatabase.query('SELECT * FROM persons')forperson_dictinpersons:print(Person(**person_dict))if__name__=='__main__':asyncio.run(main())This program would output the following:Person(id=1,name='Will',occupation='Developer')Person(id=2,name='John',occupation='Accountant')Person(id=3,name='Sue',occupation='Engineer')The fields of each Targa model are type checked as they are instantiated and may be accessed just like the fields of any other Python class.
Package: targeneintersect
TargetGeneIntersectA baby package that usespybedtoolsintersect to gain target gene names for genomic data in a pandas dataframe. My first attempt at packaging, as well as a useful little tool for something I end up copying and pasting all the time.Free software: MIT licenseDocumentation:https://targeneintersect.readthedocs.io.FeaturesInput a BED formatted gene file and a BED formatted dataframe of genomic dataReceive a dataframe that now includes target gene namesCreditsThis package is based on theBEDToolsfunction intersect, as implemented in python bypybedtools. This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-06-25)First release on PyPI.0.2.0 (2018-06-29)Fixed code styleAdded pytest testingAdded travis CI0.2.1 (2018-06-29)Fixes a mistake with travis CI
Package: targer-api
🗣️ targer-apiSimple, type-safe access to theTARGERneural argument tagging APIs.With this package you can analyze the argumentative structures
using one of the pre-trained neural models for argument mining
found in theTARGER API.
The API is hosted by theWebis research groupand free to use.Installationpipinstalltarger-apiUsagefromtarger_apiimportanalyze_textarguments=analyze_text("The alternative vote is advantageous. ""The President is directly elected by secret ballot ""under the system of the Alternative Vote.")print(arguments)CitationIf you use this package, please cite thepaperfrom theTARGERauthors.
You can use the following BibTeX information for citation:@InProceedings{chernodub:2019,author={Artem Chernodub and Oleksiy Oliynyk and Philipp Heidenreich and Alexander Bondarenko and Matthias Hagen and Chris Biemann and Alexander Panchenko},booktitle={57th Annual Meeting of the Association for Computational Linguistics (ACL 2019)},editor={{Martha R.} {Costa-juss{\`a}} and Enrique Alfonseca},ids={bondarenko:2019b},month=jul,pages={195-200},publisher={Association for Computational Linguistics},site={Florence, Italy},title={{TARGER: Neural Argument Mining at Your Fingertips}},url={https://www.aclweb.org/anthology/P19-3031},year=2019}DevelopmentTo build and develop this package you need to install thebuildpackage:pipinstallbuildInstallationInstall package dependencies:pipinstall-e.TestingInstall test dependencies:pipinstall-e.[test]Verify your changes against the test suite to verify.flake8targer_apitestsexamples
pylint-Etarger_apitestsexamples
pytesttarger_apitestsexamplesPlease also add tests for the axioms or integrations you've added.Build wheelA wheel for this package can be built by:python-mbuildLicenseThis repository is released under theMIT license.
Package: target-airtable
target-airtableThis is aSingertarget that reads JSON-formatted data from stdin
following theSinger specand
persists it toAirtable.InstallImplemented and tested with Python 3.9.0. It is recommented to install this target into a
separate virtual environment to avoid dependency conflicts. Clone the repository and install
it from source:›pipinstalltarget-airtableUsetarget-airtable takes two types of input:A config file containingapi_token(from your Airtable account)base(the Airtable base id)endpoint(optional, default="https://api.airtable.com/v0", the Airtable API endpoint)typecast(optional, default=True, tries to cast types according to your Airtable table schema)output_schema(optional, default=False, collects and write the (flattened) stream schema to a file)output_schema_path(optional, default="", the output path to write the schema file)failed_insert_exception(optional, default=True, raises an exception for any failed insert instead of error
only)upsert(optional, default=False, if set to True, it updates existing records and inserts new ones from the
received streams. The parameter unique_field_name might be specified. Exceptions will be thrown if duplicate records
are found both in the data to be upserted and the existing table data)unique_field_name(optional, default="id", the field name which is assumed to be unique)A stream of Singer-formatted data on stdintarget-airtable replicates the incomming streams from a tap into Airtable tables with the same name as the
stream. Make sure that these tables and the fields exist in your selected Airtable base.If you want to make sure how the (flattened) schema has to look like in Airtable, set the optionoutput_schemato
True. A file with the required table fields will be written tooutput_schema_path/output_schema.txtand no
records will be submitted to Airtable.Create a config file with your configuration data:{"api_token":"my_token","base":"my_base","endpoint":"https://api.airtable.com/v0","typecast":true,"output_schema":false,"output_schema_path":"","failed_insert_exception":true,"upsert":false,"unique_field_name":"id"}›tap-some-api|target-airtable--configconfig.jsonwheretap-some-apiis aSinger Tap.Want to help?Fork, improve and PR.
Package: target-avro
target-avroThis is aSingertarget that reads JSON-formatted data
following theSinger spec.FeaturesOutput Avro files forSingerstreamsOutput to cloud storages like Google Cloud Storage and Amazon S3, etc are supported powered bysmart_open.Installpipinstalltarget-avroUsage# simplecat<<EOF | target-avro -c sample_config.json{"type":"STATE","value": {}}{"key_properties":["id"],"schema":{"properties":{"assignee":{"properties":{},"type":["null","object"]},"created_at":{"format":"date-time","type":["null","string"]},"id":{"type":["null","integer"]},"labels":{"items":{"properties":{"id":{"type":["null","integer"]},"name":{"type":["null","string"]}},"type":"object"},"type":["null","array"]},"locked":{"type":["null","boolean"]},"pull_request":{"properties":{"url":{"type":["null","string"]}},"type":["null","object"]},"title":{"type":"string"}},"selected":true,"type":["null","object"]},"stream":"issues","type":"SCHEMA"}{"type": "RECORD", "stream": "issues", "record": {"created_at":"2020-11-24T23:49:24.000000Z","id":12,"labels":[{"id":238,"name":"ABCDEFGHIJKLMNOPQRSTUV"}],"locked":true,"pull_request":{"url":"https://api.github.com/repos/sample/issues/pulls/999999"},"title":"ABCDEFGHIJKLMNOPQRSTUVWXY"}, "time_extracted": "2021-03-25T12:53:51.817781Z"}{"type": "STATE", "value": {"bookmarks": {"singer-io/singer-python": {"issues": {"since": "2020-11-24T23:49:24.000000Z"}}}}}EOF# complexcat./tests/data/github.jsonl|target-avro-csample_config.jsonConfigurationThe fields available to be specified in the config file are specified
here.FieldTypeDefaultDetailsprefix["string"]N/AThe output uri prefix. Seesmart_openfor information about valid values and credentials.disable_collection["boolean", "null"]falseIncludetruein your config to disableSinger Usage Logging.logging_level["string", "null"]"INFO"The level for logging. Set toDEBUGto get things like HTTP requests executed, JSON and Avro schemas, etc. SeePython's Logger Levelsfor information about valid values.Known LimitationsRequires aJSON Schemafor every stream.Only string, string with date-time format, integer, number, boolean,
object, and array types with or without null are supported. Arrays can
have any of the other types listed, including objects as types within
items.Example of JSON Schema types that work['number']['string']['string', 'null']Exmaple of JSON Schema types thatDO NOTwork['string', 'integer']['integer', 'number']['any']['null']JSON Schema combinations such asanyOfandoneOfare not supported.JSON Schema$refis not supported.Usage LoggingSinger.iorequires official taps and targets to collect anonymous usage data. This data is only used in aggregate to report on individual tap/targets, as well as the Singer community at-large. IP addresses are recorded to detect unique tap/targets users but not shared with third-parties.To disable anonymous data collection set disable_collection to true in the configuration JSON file.Copyright © 2021 Kageboushi
Package: target-couchbase
target-couchbaseWhat is itThis is aSingertarget that loads JSON-formatted data
following theSinger spectoCouchbase Server.InstallFirst, make sure Python 3.6 or higher is installed on your system or follow
these  installation instructions for Mac or Ubuntu.pip install -U couchbase
pip install -U target-couchbaseOr you can install the lastest development version from GitHub:pip install -U couchbase
pip install --no-cache-dir https://github.com/anelendata/target-couchbase/archive/master.tar.gz#egg=target-couchbaseNote: Please refer toCouchbase documentationfor the details of installation of couchbase Python SDK.RunStep 1: ConfigureCreate a file called target_config.json in your working directory, following
this sample:{
    "cluster": "{{ your-couchbase-server.com }}:8091",
    "username": "{{ couchbase_username }}",
    "password": "{{ couchbase_password }}",
    "bucket": "{{ your-bucket-name }}"
}Step 2: Runtarget-bigquery can be run with any Singer Target. As example, let usetap-exchangeratesapi.pip install tap-exchangeratesapiAnd create tap_config.json that looks like:{
    "base": "USD",
    "start_date": "2021-01-11"
}(Adjust your start date. 7 days ago is recommended for the test)Run:tap-exchangeratesapi -c tap_config.json | target-couchbase -c target_config.jsonOriginal repositoryhttps://github.com/anelendata/target-couchbaseAbout this projectThis project is developed by
ANELEN and friends. Please check out the ANELEN'sopen innovation philosophy and other projectsCopyright © 2021~ Anelen Co., LLC