Saravanan666/pypi-org huggingface dataset:
Package: twock
twockPing/knock a list of tweets and return reachability issues (deleted/protected/withheld...) #twockknockUsageKnocking Tweetstwock knock [OPTIONS] TWEETFILE

  Ping (knock) a list of tweets. Expects file path to CSV with `id` column.

Options:
  --outpath TEXT    Path to output file, will be prefixed with today's date.
                    Default: `errors.ndjson`
  --tkpath TEXT     Path to Twitter API v2 bearer token YAML file. Default:
                    `bearer_token.yaml`
  --sample INTEGER  If given, sample INTEGER number of tweets only
  --help            Show this message and exit.AuthentificationYou need to have access to the Twitter V2 API and t obtain a valid bearer token. Replace the template value inbearer_token.ymlwith your actual credentials.Developer InstallInstallpoetryClone repositoryIn the cloned repository's root directory runpoetry installRunpoetry shellto start development virtualenvRuntwacapicto enter API keys. Ignore the IndexError.Runpytestto run all tests
Package: twod
twod - A Two-Dimensional Geometry Library for Humans™twod(pronounced "two dee") is a geometry library that supplies
simple two-dimensional geometric primtives:twod.Pointtwod.RectInstallInstallingtwodis a snap!$python3-mpipinstall-UtwodDevelopment Workflow$gitclonehttps://github.com/JnyJny/twod.git$cdtwod$poetryshell...(twod-...)$Usage ExmaplesfromtwodimportPointo=Point()b=Point.from_polar(10,0)assertb.distance(o)==10.0
Package: twodeg.recipe.apacheconf
ContentsMotivationDownloadMotivationWe’re deploying multiple test/staging servers using django and it’s a pain to have lots of apache confs lying around which are almost exactly the same.The only things that are different are the IP addresses, server names and, if using buildout (which is kind of the whole point of this), the python path and packages.  So a valid approach would be to put your apache conf somewhere under your buildout directory and have it built at the same time as you buildout your project.There’s already a nice recipe that does thisz3c.recipe.filetemplate. So this recipe is subclassing from that and using zc.recipe.egg to add apython_pathvalue to the options. This is done by setting the eggs and extra-paths values in the recipe.This is just an internal project so there’s no bug tracker, mailing list etc. I hope that someone finds it useful, please contact me it you do or wish to make changes to it.Download
Package: twodlearn
A library to develop machine learning models.A. Installation1. Install the desired version of tensorflow (CPU or GPU)pip install tensorflow        # for CPU
pip install tensorflow-gpu    # for GPU2. Clone the projectgit clone git@github.com:danmar3/twodlearn.git twodlearn
cd twodlearn3. Install the projectpip install -e .4. Install extras (optional)pip install -e .[reinforce]
pip install -e .[development]B. Run the tests using pytestinstall pytestpip install-Upytestrun the unit-tests using pytest:cd twodlearn/tests/
pytest -ra                # print a short test summary info at the end of the session
pytest -x --pdb           # drop to PDB on first failure, then end test session
pytest --pdb --maxfail=3  # drop to PDB for first three failures
pytest --durations=10     # get the test execution time
pytest --lf               # to only re-run the failures.
pytest --cache-clear      # clear the cache of failed testsRoadmap for v0.6[x] migrate to TF 1.14[ ] add documentation[ ] add project to pypi[ ] create LayerNamespace[x] add a shortcut for required and optional input arguments[x] add check_arguments method to Layer and TdlModel[x] get_parameters now supports nested structures and nested SimpleNamespace[ ] deprecate tuple initialization[ ] deprecate optim[ ] move feedforward to dense[ ] cleanup common: clean deprecated descriptors and put them in separate file[ ] remove redundant base classes, such as TdlObject[ ] deprecate templates and design a format for estimators[ ] deprecate options value[ ] deprecate pyfmi and jmodelica
Package: twodolib
DescriptionThis package provides the librarytwodoliband a command line utilitytask2doto add tasks, projects and checklists to the macOS App2DoAppfrom the command line.Since version 1.5 (Mac) 2Do supports adding tasks by using an URL scheme.
For example, if you want to add the taskSave the world., you can open the
URL:twodo://x-callback-url/add?task=Save%20the%20world.to add this task to your 2Do App (see:https://www.2doapp.com/kb/article/url-schemes.html)Thetask2docommand supports creating such URLs from the command line.
To print such an URL for a task without adding it, just enter:task2do "Save the world."which prints the URL to stdout like this:twodo://x-callback-url/add?task=Save%20the%20world.If you want to actually add the task to your 2Do App, use the-eor--executeoption:task2do -e "Save the world."
# no output here, but the task should be added into your standard list in 2DoFeaturesruns with Python 3 (if you need py27 support please use release0.4.0)Create tasks on the command line and show the corresponding URL scheme, for copy and pasting it.Create tasks on the command line and open the corresponding URL scheme to send it to2DoAppSee the documentation athttp://twodolib.readthedocs.org/en/latest/InstallSeedocs/installation.rst(It’s justpip install twodolib)DependencieswheelLicenseFree software: ISC licenseHistory0.5.4 (2019-07-28)updated HISTORY.txt file (gosh!)0.5.3 (2019-07-28)removes unnecessary dependencies.0.5.2 (2019-07-15)Updated requirements.0.5.1 (2018-11-14)Please update, because package requests was updated for security reasons!updated requirements0.5.0 (2018-08-08)dropping Python 2.7 supportimplementedforParentNameprint taskid0.4.0 (2018-08-07)you can paste tasks now, even as subtasks of a project. See help or docs!minor fixes0.3.0 (2017-05-28)added ‘action’ property of tasks (e.g. url, phone, …)switched from webbrowser.open to subprocess.call([‘open’, …)0.2.1 (2015-09-21)fixed classifier in setup.pyfixed #3 - adding to lists works now.0.2.0 (2015-09-20)first public release.0.1.0 (unreleased)ADD: more commandline options implemented: repeat, due, dueTime, startADD: docs0.0.1 (2015-09-14)not released - pre alpha.
Package: twod.wsgi
twod.wsgi unlocks Django applications so developers can take advantage of the
wealth of existing WSGI software, as the other popular Python frameworks do. It
won’t break you existing Django applications because it’s 100% compatible with
Django and you can start using the functionality offered by this library
progressively. It should be really easy to get started, particularly for
developers who are familiar with frameworks like Pylons or TurboGears.
Package: twofabackup
TwoFaBackupApplication to safely and locally store backup codes for two factor authenticated
services. It is good pracice to store these codes in an other location than in
e.g. the password manager that stores the first factor or in the authenticator app
that generates the one time passwords.The backup is locally stored in a sqlite database with symmetric Fermet encryption.
The sqlite database stores aid,service name,description [optional],the backupcodes [encrypted],date added. A new encryption key will be generated
when first codes are saved in the db.
The location of the database is$HOME/.config/2FA_codes.db.!! Do not lose the generated key, or your codes will be lost !!Main help$twofabackup---helpusage:twofabackup[-h][-v]{add}...Encrypted2FAbackupcodesstoragepositionalarguments:{add}Addnewbackupcodesfromatextfileorstdinoptions:-h,--helpshowthishelpmessageandexit-v,--versionshowprogram's version number and exitAdd codes help$twofabackupadd--helpusage:twofabackupadd[-h][-fFILE]-nNAME[-dDESCRIPTION]options:-h,--helpshowthishelpmessageandexit-fFILE,--fileFILETextfilewithbackupcodes-nNAME,--nameNAMENameoftheservice-dDESCRIPTION,--descriptionDESCRIPTIONOptionaldescriptionofservice
Package: twofactorauthcli
Two Factor Authentication CLI2FA in your computerHOWTOJust install the tool withpipand then use the shortcut2fa.$pipinstalltwofactorauthcli
$2faIn the use, the tool will show you where to config it.TODOThis is a MVP, usable but limited. There are some ideas to implement:The tests are stupid, rethink them.Explain how to get the codes.Improve configuration, making the path configurable or even better making it editable trought the CLI.Show how many time left for the next codes change.Get a code fast and copied to clipboard, something like2fa copy aws.
Package: twofas-cli
An unofficial command line interface for 2FAStwofas-cli is an unofficial client for2FASwritten in Python that can retrieve 2fa codes stored on your mobile device by
registering itself as a browser extension with 2FAS. Every request this tool makes for a 2FA code needs to be approved on your mobile device, just like with 2FAS' browser extensions. You can use it for scripting automatic logins to services that require a
second factor via TOTPs.InstallationInstall via pip from PyPi:pipinstalltwofas-cliUsageIn order to use twofas-cli you need to have the 2FAS app installed on your mobile device.
Head over to2fas.comfor instructions and a download link for your app store.After installing 2fas on your mobile device and PC, register twofas-cli as a browser extension by running:twofas-cliregisterAfter running this command successfully you should see a directory containing a QR code image calledqrcode.png. Open it and scan it using your 2FAS app.Afterward, you can runtwofas-cli get --helpto see the available options for retrieving 2fa codes ortwofas-cli --helpto see all possible actions.Compatibilitytwofas-cli should be able to run anywhere its dependencies and Python itself runs, however, it has only been tested so far on MacOS and Linux. It requires a recentish Python 3 version (>= 3.7).ContributingContributions are welcome. Please use theGithub Pageto report issues or submit Pull Requests.
Package: twofish
Bindings for the Twofish implementation by Niels Fergusonlibtwofish-dev.Compatible with Python 2.6, 2.7 and 3.3.The library performs a self-test at each import.Installationpip install twofishUsageCreate atwofish.Twofishinstance with a key of length ]0, 32] and then use theencryptanddecryptmethods on 16 bytes blocks.All values must be binary strings (stron Python 2,byteson Python 3)[WARNING]this should be used in a senseful cipher mode, like CTR or CBC. If you don’t know what this mean, you should probably usa a higher level library.Example>>> from twofish import Twofish
>>> T = Twofish(b'*secret*')
>>> x = T.encrypt(b'YELLOWSUBMARINES')
>>> print(T.decrypt(x).decode())
YELLOWSUBMARINES
Package: twofourseven
TwoFourSevenPython Package to scrape recruiting data from 247Sports websiteAble to scrape transfer portal page as well.Installation:pip install twofoursevenClasses:RecruitgetClass(team, year) - Returns df of the recruiting class of a given team from the given year. (does NOT include transfers)getAllTime(team) - Returns df of top recruits for a team for recent history.getFBPlayerData(year) - Returns df of top 2000 fb recruits for a given year.getBBPlayerData(year) - Returns df of top 2000 (or less depending on how many are ranked) bb recruits for a given year.getDraft(year) - Returns df of the NFL draft from a given yearTransferPortalgetFootballData(year) - Returns df of everyone who entered the transferportal for a given year for footballgetBasketballData(year) - Returns df of everyone who entered the transferportal for a given year for basketball
Package: twokenize
ark-twokenize-pyThis is a crude Python port of theTwokenize class from ark-tweet-nlp.It produces nearly identical output to the original Java tokenizer, except in a
few infrequent situations. In particular, Python does not support partial
case-insensitivity in regular expressions and this causes some tokenization
differences for ``Eastern" style emoticons, particularly when the left and right
halves are of different cases. For example:Java (original): v.V
Python (port): v . VEmoticons of this kind are seemingly pretty rare. Nevertheless, I have included
a fix for one special case:Java (original): o.O
Python (port, w/o fix): o . O
Python (port, w/ fix): o.OEvaluationA comparison on 1 million tweets found 83 instances (0.0083%) where tokenization
differed between the original Java version and this Python port. The differences
were primarily related to the emoticon issue discussed above, and it was not
clear in general which output was more desirable. For example:Text:
Profit-Taking Hits Nikkei http://t.co/hVWpiDQ1 http://t.co/xJSPwE2z RT @WSJmarkets

Java (original):
Profi t-T aking Hits Nikkei http://t.co/hVWpiDQ1 http://t.co/xJSPwE2z RT @WSJmarkets

Python (port):
Profit-Taking Hits Nikkei http://t.co/hVWpiDQ1 http://t.co/xJSPwE2z RT @WSJmarketsUsage>>> import twokenize
>>> twokenize.tokenizeRawTweetText("lol ly x0x0,:D")
['lol', 'ly', 'x0x0', ',', ':D']Installationpip install twokenize
Package: twoline
Easily display messages on yourtwo-line LCD screen.FeaturesNetwork accessible:  Posting a message on your screen is as easy as a simplecurlcommand.Automatic rotation:  If you send multiple messages to the screen for display, Twoline will rotate through them for you automatically.Automatic paging:  Your screen can only show 32 characters at a time?  Don’t worry; Twoline will page through your message for you.Easy color and blinking configuration: Every message can have its own color.Message expiration: Can’t be bothered to send aDELETEto remove your message when its no longer relevant?  Just set your messages’sexpireskey and Twoline will automatically remove the message when it’s over.URLS/: IndexURL IndexGET: Display all endpoints and acceptable methods./message/: MessagesList or create a message to add to the message rotation.GET: Get a list of all current messages.POST: Add a new message to the list of messages to cycle through./message/<message_id>/: Message DetailsCreate, delete, or alter an existing message.GET: Get an existing message object for a given ID.PUT: Replace an existing message object for a given ID.PATCH: Update an existing message object for a given ID.DELETE: Delete an existing message object for a given ID./flash/: Flash MessagesShort-duration single-time announcements.GET: Get the current flash message (if one exists).PUT: Set the flash message to a given message object.DELETE: Delete the current flash message (if one exists)./brightness/: BrightnessScreen brightness.PUT: Set brightness./contrast/: ContrastScreen contrast.PUT: Set contrast.Message Object{'message':'Until this message disappears, Adam is not yet 30','color':[255,255,255],# Optional; set the color'blink':[[255,0,0],[0,0,0]],# Optional; cycle through these colors'expires':'2014-03-02 00:00',# Optional;  The parser -- dateutil --# is very liberal, but your mileage may# vary.  If no timezone is specified# defaults to the local system timezone.# Can also be an integer number of# seconds from the current time.'interval':5,# Optional; Only for regular messages;# Number of seconds to display this message before# switching to the next'timeout':300,# Optional; Only for flash messages;# Number of seconds until message disappears'backlight':True,# Optional; Backlight on or off}Simple Curl ExampleTo post a message to your screen usingcurljust run a command like the below:curl -i -X POST -H "Content-Type: application/json" -d '{"message": "Hello World"}' http://127.0.0.1:6224/message/Pretty easy, huh?!
Package: twomartens.allrisscraper
This scraper offers both public and private scraping. The latter requires your username and password and performs the
following tasks for you:logindownload of all agendas and motions related to upcoming meetings of committees and plenary sessionsOnly considers meetings where you already have been invited formally through ALLRIS.IMPORTANT:All districts are supported but official committee abbreviations will only work for Eimsbüttel as of now.The public scraper ought to be used with care as it accesses all accessible pages of an entire month. Currently,
June 2020 is hardcoded and it can only be used in a GUI environment.RequirementsPython 3.7+Firefox installedgeckodriver binaryin PATHInitial setupInstall ALLRIS scraperpip install twomartens.allrisscraper(you need Python 3.7+)Run ALLRIS scraper a first timetm-allrisscraper(creates config ini in your current working directory)Fill out the config file with your login credentials and an absolute path on your system to store PDFs of filesConfiguration[Default]; possible values for district: Altona, Bergedorf, Eimsbüttel, Hamburg-Nord,; Hamburg-Mitte, Harburg, Wandsbekdistrict=Eimsbüttel; if you are not from Eimsbüttel your domain ending will differusername=max.mustermann@eimsbuettel.de; password is stored in clear text, therefore ini file should have most; restrictive read permissionspassword=VerySecurePassword; location for storage of PDFs (trailing slash is IMPORTANT)pdflocation=/path/to/storage/of/PDFs/; location of the firefox binaryfirefoxBinary=/Pfad/zur/firefox.exe; location of the geckodriver binarygeckodriver=/Pfad/zum/geckodriverUsage after initial setupRun ALLRIS scraper:tm-allrisscraper(takes a few seconds to finish)In the specified location for download you will find the following structure:YYYY-MM-DD_Abbreviationof committee or plenary session/(one directory for each meeting)files inside the directory:Einladung.pdf(contains invitation),Mappe.pdf(contains all motions in one document), andTagesordnung.pdf(agenda)Packaging new versionsActivate virtual environment and runpython-mbuild--sdist--wheel
Package: twomartens.calendarsync
Calendar synchronizationThis is a small tool that can be used to synchronize a Jekyll event collection
with a remote calendar.InstallationUse Python package managerpip install twomartens.calendarsyncAfterwards you can usetm-calendarsyncto access the CLI interface. If you installed
the package into a virtual environment, this environment needs to be activated. Otherwise
thetm-calendarsynccommand will not be known.Usagetm-calendarsync calendar_url event_collection_pathThe CLI interface validates the input and guarantees that the URL is valid and the directory
of the event collection exists. It however does not make logical checks. So you need to
make sure that the directory is actually the correct one. The URL for the calendar must be
readable without authentication and point to an ICS file.If the input is correct the tool will go through ALL events of the calendar and create files
in the event collection directory. The filename of these is as follows:YYYY-MM-DD-title.markdownwhere all spaces in the title are replaced by underscores (_).The content of these files follows this structure:# preamble for Jekyll event (this line is not actually written)---
layout: event
title:  <name>
date: <created>
start_date: <begin>
end_date: <end>
location: <location>address: <address>---Both location and address are extracted from the location field in a calendar event. If a colon (:) is existing
the first part is the location and the latter part the address. If it does not exist the content of the location
field will be used for both location and address.The full usage of this tool becomes obvious if you create a cronjob or something similar that executes this code
every x amount of time.Note: Even if you run this as a cronjob it will not yet result in any visible changes to the Jekyll-powered website.
You will need to trigger the build yourself in whatever way makes sense to you.
Package: twomartens.masterthesis
Master ThesisAllows reproduction of results in my master thesis.The package supports testing and evaluating SSD and Bayesian SSD. The results
can be visualised.InstallationPlease install python header files of your Python version.
Those are needed to compile the pycocotools with Cython upon installation.pipinstalltwomartens.masterthesis
pipinstall'git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI'The second line is important as Git dependencies cannot be specified in thesetup.pyfile.Please refer toGPU supportfor instructions on
installing the non-Python dependencies fortensorflow.Type the following to create the configuration file and to see the options:tm-masterthesisconfiglistEspecially the paths have to be set to the correct values.Usage exampletm-masterthesis--helpLists all available commands. As most commands are nested, it is advisable to
request the help at different nesting levels.tm-masterthesisconfig{get,set,list}Allows for the modification and retrieval of the configuration values.tm-masterthesistest{ssd,bayesian_ssd}iterationtrain_iterationTests the selected network, usingiterationas identifier for the test run
andtrain_iterationas identifier for the training iteration. If the config
parameterssd_test_pretrainedisTruethen the training iteration is
not relevant.tm-masterthesisevaluate{ssd,bayesian_ssd}iterationRuns the evaluation process using the test results identified byiteration,
evaluation results are saved underiterationunder the evaluation path.tm-masterthesisvisualise_metrics{ssd,bayesian_ssd}iterationUses the evaluation results stored underiterationand visualises
it. The score JSON and the figure images are stored underiterationin avisualisefolder under the output path.There are more commands but the rest can be very tightly linked to requirements
in the master thesis and might therefore not be of interest generally.Development setupClone the repository locally. Then execute the following commands inside
the repository:gitsubmoduleinit
gitsubmoduleupdate
pipinstall-e.
pipinstall'git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI'Release History0.3.0added cython dependency and information about required python header files0.2.0added python 3.8 classifier0.1.0first releaseMetaJim Martens –@2martens–github@2martens.deDistributed under the Apache 2.0 license. SeeLICENSEfor more information.
The package contains thessd_kerasimplementation of Pierluigi Ferrari.https://github.com/2martens/ContributingFork it (https://github.com/2martens/masterthesis/fork)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 Request
Package: two.ol
Two - it takes two to DjangoA Django mini subframework that provides common web/django patterns,
promotes OO withing Django and attempts to avoid code duplication.two.ol (prononce ‘Tool’) is the two code package.two.ol provides class based views for Django inspired by those offered
by Pyramid, Zope and Zope3. They were initially conceived before Django
introduced its own CBV’s.0.1 - First release
Package: twootfeed
python-twootfeed⚠️twootfeedis no longer maintained.generate an RSS feed from parsed Twitter or Mastodon search and Mastodon bookmarks/favorites/home timelineThe RSS feed displays only the original tweets (not the retweets) and toots, with:links to :the tweet on Twitter or toot on MastodonhashtagsusernamesURLsimagessourcelocation (only for Twitter)visibility (only for Mastodon)numbers of retweets and likes for tweets and boosts and favourites for toots➡️ seedocumentationfor installation instructions and features.ContributorsThanks to:georgedornfor adding:rss feed generation with authenticated user's favoritesscript to register the app and generate credentials for Mastodon