Saravanan666/pypi-org huggingface dataset:
Package: tw.epiclock
ContentsDetailed DocumentationContributorsChange historyDetailed DocumentationClock widget for toscawidget and turbogearsThis Widget encapsulates the epiclock JavaScript libraryhttp://code.google.com/p/epiclockfor inserting clocks and countdowns contents in a standard-friendly manner.The current epiclock version packaged with this widget is version 3.0http://epiclock.googlecode.com/files/epiclock-3.0.fixed.tar.gzFrom within your controller, simply instantiate an Epiclock
and return this instance to be rendered within your template:from tw.epiclock import Epiclock
from tg import tmpl_context
...
tmpl_context.my_clock = Epiclock("my_clock")From within your template, simply call the epiclock:${tmpl_context.my_clock()}Another common use is display server time somewhere in a header zone
in lib/helpers.py:from tw.epiclock import Epiclock
clock = Epiclock("clock", format="j-n-Y G:i:s")anywhere in templates:${h.clock()}custom renderers (retros) are not available is this releasein static jquery.dateformat.js and jquery.epiclock.js are for documentation purpose
only the minimized versions are actually injected in your codeContributorsMain developpersNicolas Laurance <nicolas[dot]laurance[at]gmail[dot]com>Change historyNew in 0.1First Release
Package: twerk
TwerkThis is a Selenium-powered tool to browse Twitter and automatically block fake accounts.This project was generated withcookiecutterusingjacebrowning/template-python.SetupRequirementsPython 3.7+PoetryUsageInstall the project from source:$ git clone https://github.com/jacebrowning/twerk
$ cd twerk
$ poetry installVerify browser automation is working:$ poetry run twerk check --debug --browser=chrome
$ poetry run twerk check --debug --browser=firefoxConfigurationThe$TWITTER_USERNAMEand$TWITTER_PASSWORDenvironment variables can be set to avoid manually typing account credentials.Most commands accept a--browseroption or you can set$BROWSERto avoid specifying this each time.The$TWITTER_SEED_USERNAMEcan be set to override the default starting account when searching for fake accounts.Disclaimer: I am by no means responsible for any usage of this tool. Please consult thefull licensefor details.
Package: twetch2py
Twetch2pyA class-based library for using theTwetch SDKwith Python.InstallationInstall the Twetch SDK in CLI mode:npm install -g @twetch/sdkInitialize the Twetch SDK from the command line:twetch initInstalltwetch2pyon pip:pip3 install twetch2pyImporttwetch2pyinto your project:from twetch2py import TwetchAuthenticate your signing address on theTwetch developer page. Don't forget to fund your wallet!UsageOnce instantiated, Twetch objects have the following attributes:content: A string for text-based posts. Accepts @ and branch URLs.media: Filename for rich media (like images). Relative paths will be converted to absolute before publishing.reply_tx: A transaction ID of a post to reply to.like_tx: A transaction ID of a post to like.published_url: Successful posts and likes will set the URL of your Twetch to this attribute.tweet: Boolean. IfTrue, the target Twetch will be cross-posted to Twitter.hide_link: Boolean. If true andtweetalso evaluets toTrue, the Twetch link will be hidden on Twitter.The library can also fetch the following information about your Twetch SDK install:get_balance(): Returns your signing address balance in BSV.get_address(): Returns the signing address of your Twetch SDK BSV wallet.Examples# Make a text post
my_twetch = Twetch(content="Hello from Python!")
my_twetch.publish()

# Branch a post
my_branch = Twetch(content="https://twetch.app/t/b9ca41ea6e7302016ab039babe19548f74feccdbd2addbc1c50b3e49907e6ef4")
my_branch.publish()

# Quote a post
my_quote = Twetch(content="This is a quote branch! https://twetch.app/t/b9ca41ea6e7302016ab039babe19548f74feccdbd2addbc1c50b3e49907e6ef4")
my_quote.publish()

# Post an image
my_image_twetch = Twetch(content="Image from Python!", media="images/myimage.jpg")
my_image_twetch.publish()

# Reply to a post
my_reply = Twetch(content="Hello fellow Twetcher!", reply_tx="b9ca41ea6e7302016ab039babe19548f74feccdbd2addbc1c50b3e49907e6ef4")
my_reply.publish()

# Reply to a post w/image and text
my_reply = Twetch(content="Hello with image!", media="images/myimage.jpg", reply_tx="b9ca41ea6e7302016ab039babe19548f74feccdbd2addbc1c50b3e49907e6ef4")
my_reply.publish()

# Tweet from Twetch
my_twetch = Twetch(content="Hello Twitter from Twetch!", tweet=True)
my_twetch.publish()

# Tweet from Twetch, hide Twetch link on Twitter
my_twetch = Twetch(content="Hello Twitter from Twetch!", tweet=True, hide_link=True)
my_twetch.publish()

# Like a post
my_like = Twetch(like_tx="b9ca41ea6e7302016ab039babe19548f74feccdbd2addbc1c50b3e49907e6ef4")
my_like.like_twetch()

# Print your active signing address (returns a string)
twetch_object = Twetch()
print(twetch_object.get_address())

# Print the balance of your signing wallet (returns a float)
twetch_object = Twetch()
print(twetch_object.get_balance())LicenseTwetch2py is offered by Cyphergato, LLC. under theMIT Licenseand is free to use.If you find this open source library useful, please consider donating to support its development!Paymail:cyphergato@moneybutton.comAddress:12Jm4J1GxWfA52JdiYHLovhwaFmy89LD6Q
Package: twexit
Telnyx "Twexit" Python LibraryThe Telnyx "Twexit" Python library allows users to send messages and validate webhooks with minimal changes to their existing Twilio messaging code.InstallationThis SDK can be installed either viapip:pip install twexitor direct from source by downloading and unzipping the repository from here, then from within thetwexit-pythonfolder, runpython setup.py installAccount SetupComplete thePortal Setupto set up a messaging-enabled number.Follow the additionalTwexit setup stepsto configure webhooksUsageSend a messagefromtwilio.restimportClient# Your organization ID fromaccount_sid="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"# An API key from https://portal.telnyx.com/#/app/api-keysauth_token="KEY0123456789xxxxx"message=client.messages.create(to="+13125550123",from_="+16165550123",body="Free yourself with Twexit!")print(message.sid)Webhook ValidationTwexit uses a fast asymmetric signing algorithm, Ed25519, to avoid issues discovered with SHA-1. To switch from the HMAC-SHA1 signing method, follow these steps:Obtain your account's public key athttps://portal.telnyx.com/#/app/account/public-keyUpdate your application to use theTwexitRequestValidatorinstead ofRequestValidatorExtract theX-Twexit-Signaturefrom the request and provide that when calling the validator.fromtwilio.request_validatorimportTwexitRequestValidatorpublic_key="abcdef123456xxxxx"validator=TwexitRequestValidator(public_key)url='https://mycompany.com/myapp.php?foo=1&bar=2'params={"MessageSid":"CA1234567890ABCDE","ApiVersion":"2010-04-01","Body":"Aloha!","From":"+13125550123","To":"+16165550123",}# The X-Twexit-Signature header attached to the requesttwexit_signature='0/KCTR6DLpKmkAf8muzZqo1nDgQ='print(validator.validate(url,params,twexit_signature))CaveatsThis SDK currently only provides the capability to send messages via REST and validate webhooks when receiving messages. Configuration of the messaging product and other products (voice, fax) are not yet supported.
Package: twFusionCharts
Widgets forFusionChartsFreebased onTGFusionChartsInstalleasy_install twFusionChartsConfiguring ToscaWidgets with PylonsSeehttp://wiki.pylonshq.com/display/toscawidgets/Using+twForms+with+Pylons.+Part+1?showComments=false#id5Usage Example with PylonsController:from pylons import tmpl_context as c
from tw.fusioncharts import Column3DChartWidget, SingleSeriesChart

def index(self):
   c.widget = Column3DChartWidget(
            chart_id='chart1', width=400, height=200,
            chart=SingleSeriesChart(
                [3,4,1,5],
                caption="New Incoming Links"))
   return render('/page.mako')Template (page.mako):<html><head></head>
   ${h.literal(c.widget.render())}
</html>
Package: tw.gravatar
ContentsDetailed DocumentationContributorsChange historyDetailed DocumentationGravatar widget for toscawidget and turbogearsThis Widget allow for the insertion of gravatar’s imagehttp://www.gravatar.com/A common use inlib/helpers.pyfrom tw.gravatar import Gravatar
gravatar=Gravatar(size=32, rating="G", default="wavatar")anywhere in templates:${h.gravatar(email='your.name@domain.com')}parameters you can use:params = {
      "email": "email adress associated to a gravatar",
      "size": "size in pixels of the expected image",
      "rating": "a string chosen from 'G', 'PG' 'R' or 'X'",
      "default": "identicon, monsterid, mm, wavatar"
      }ContributorsMain developpersNicolas Laurance <nicolas[dot]laurance[at]gmail[dot]com>Change historyNew in 0.1First Release
Package: twhook
Abouttwhook is a simple Twitter Premium Account Activity API wrapper that helps you to manage webhooks and subscriptions.InstallationGit:gitclonehttps://github.com/nxgeo/twhook.gitcdtwhook
pipinstall-rrequirements.txtPip:pipinstalltwhookExamplesFor easy implementation examples, seetwhook/examples/.SuggestionAs described in theTwitter Securing Webhooksguide, a first step is writing code that receives a Twitter Challenge-Response Check (CRC) GET request and responds with a properly formatted JSON response.A CRC will be sent when you register your webhook URL, so implementing your CRC response code is a fundamental first step.HEREis an example of implementing a CRC response in Python.ReferenceAccount Activity API: Premium
Package: twi
twiSend tweets, change your Twitter profile description, and delete your last tweet, all from the comfort of your sweet-smelling CLI!Installation>pipinstalltwiThen put these variables somewhere in your environment (get themhere):TWITTER_CONSUMER_KEYTWITTER_CONSUMER_SECRETTWITTER_ACCESS_TOKENTWITTER_ACCESS_TOKEN_SECRETTWITTER_USER_IDUsage>tw"hey this is my tweet"Okay,publishedthetweetathttps://twitter.com/yourname/status/12344556
>twd
Okay,deletedthistweet:'hey this is my tweet'>tw"hey this is my tweet with a screenshot"--attach=/home/me/screencap.png
Okay,publishedthetweetwithatachmentathttps://twitter.com/yourname/status/12344557
>twpu"hey this is my new twitter profile description"Okay,updatedprofile.
>twp
currentprofile:'hey this is my current profile description'
Package: twibint
bigintRust crate for arbitrarily big integers, signed or unsigned.The main API of this crate is to export 2 types: BigUint and BigInt,
meant to represent unsigned or signed integers of arbitrarily large
absolute value. They are meant to be used in almost any way a regular
integer can be used. The only caveat is that they don't implement the
Copy trait ; this means that callingA + Bfor example will perform
amoveoperation onAandB, losing ownership of them. Most of the
time you will actually want to call&A + &B, performing the operation
"by reference".Build, documentation, benchmarks and tests are available the usual way calling
the following:cargobuild
cargodocs
cargobench
cargotestFor benchmarks specifically, you might want to call only some of these:cargobenchmul
cargobenchadd
cargobenchsubInstall as a Python packageSimply use from the base directorypython3-mpipinstall.Python tests are available to be run in thepytestframework. They are located
in thetestsfolder and should provide ample example usage.
Package: twid
Twid includes simple functions about Taiwan Identification Card system.
See also:http://en.wikipedia.org/wiki/National_Identification_Card_%28Republic_of_China%29Quick Start>>> from twid import female, male, kaohsiung
>>> female()
'X249592708'
>>> kaohsiung()
'E168646609'
>>> kaohsiung(male())
'E167853593'
Package: twidge
TwidgeSimple terminal widgets for simple people.This package is mostly intended for my own personal use, but have at it.Quick StartInstallpython-mpipinstalltwidgeCLI# Echo keypressespython-mtwidgeecho# ... as bytespython-mtwidgeechobytes# Edit textpython-mtwidgeedit'Hello World'# Form inputpython-mtwidgeformname,email,username,password# Template inputpython-mtwidgetemplate"Hello, my name is {name} and I live in {town}. I prefer {language:('Python', 'JavaScript')}"Pythonfromtwidge.widgetsimport*# Echo keypressesEcho().run()# ... as bytesEchoBytes().run()# Edit stringscontent=Close(EditString('Hello World!')).run()# Form inputuser_info=Close(Form(['Name','EMail','Username','Password'])).run()# Template inputresult=Close(EditTemplate("Hello, my name is{name}and I live in{town}. I prefer {language:('Python', 'JavaScript')}")).run()
Package: twig
Join the chat at
https://gitter.im/ethereum/twigBuild StatusPyPI
versionPython
versionsDocs
buildA tool for Ethereum smart contract development.Read more in thedocumentation on
ReadTheDocs.View the change
log.QuickstartpipinstalltwigDeveloper SetupIf you would like to hack on twig, please check out theEthereum
Development Tactical
Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethereum/twig.gitcdtwigvirtualenv-ppython3venv.venv/bin/activatepipinstall-e.[dev]Testing SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1twig/tests/-c"clear; flake8 twig tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenvptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on twig failed'"../tests../twigRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for
stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable
(stagecan be alpha or beta).To issue the next version in line, specify which part to bump, likemake release bump=minorormake release bump=devnum. This is
typically done from the master branch, except when releasing a beta (in
which case the beta is released from master, and the previous stable
branch is released from said branch). To include changes made with each
release, update “docs/releases.rst” with the changes, and apply commit
directly to master before release.If you are in a beta version,make release bump=stagewill switch to
a stable.To issue an unstable version when the current version is stable, specify
the new version explicitly, likemake releasebump="--new-version4.0.0-alpha.1devnum"
Package: twiggy-goodies
[![ChangeLog](http://allmychanges.com/p/python/twiggy-goodies/badge/?rnd=1)](http://allmychanges.com/p/python/twiggy-goodies/)Here you’ll find some useful addons to [Twiggy], pythonic logger.
These addons help to use Twiggy with third-party libraries, which
use standart library’s [logging][].Main target was to create convenient way to write log items
which are grouped by some request identifier. Twiggy already
supports it by it’sfieldsmethod, but sometimes it is too
inconvenient to pass logger object around. That is why I take
idea of a threadlocal loggers stack from the [logbook][] and
implemented it for twiggy.Here is example how to use it:from twiggy_goodies.setup import setup_logging
from twiggy_goodies.threading import logdef some_function():log.info(‘inner function does not accept logger’)
log.info(‘but uses same field as caller’)setup_logging(None)log.info(‘before request’)with log.fields(request_id=’foo’):log.info(‘bar has happened’)
some_function()log.info(‘after request, id gone’)Output will be, as expected:2014-04-14T18:29:02Z:INFO:beforerequest
2014-04-14T18:29:02Z:INFO:request_id=foo:barhas happened
2014-04-14T18:29:02Z:INFO:request_id=foo:innerfunction does not accept logger
2014-04-14T18:29:02Z:INFO:request_id=foo:butuses same field as caller
2014-04-14T18:29:02Z:INFO:afterrequest, id goneSame way, logger name could be changed, just replacefieldscontext
manager toname.There is no dark magick behind the scene:setup_logging does simple setup and redirects all output
from standartloggingto twiggy.logobject is proxies all logging methods to a topmost
logger on the thread-local stack.fieldsandnamecontext managers just create a new
logger as original twiggy’s methods and put it on thread-local
stack.That is it.Some other goodiestwiggy_goodies.syslogcontainsSysLogOutput.twiggy_goodies.jsoncontainsJsonOutput, useful
to pass data to logstash.twiggy_goodies.logstashcontainsLogstashOutput,
which sends messages directly to Logstash’s UDP port.twiggy_goodies.django_rqcontainsjobdecorator, which
groups all messages logged from one task, using UUID.twiggy_goodies.djangocontainsLogMixinclass which
could be mixed to any management command, to group all
logged messages by single UUID.twiggy_goodies.djangoalso containsLogMiddleware, to
do the same asLogMixin, but for each http request.[Twiggy]:https://github.com/wearpants/twiggy[logging]:https://docs.python.org/2/library/logging.html[logbook]:http://pythonhosted.org//Logbook/
Package: twigs
twigsThreatWorx Information Gathering Scripthttps://threatworx.io/docs/twigs-intro/Free software: GNU General Public License v3CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-03-18)First release on PyPI.1.1.0 (2022-01-23)Added support for twigs plugins.
Package: twigs-host-benchmark
twigs_host_benchmarkTWIGS Host BenchmarkFree software: GNU General Public License v3.Documentation:https://twigs-host-benchmark.readthedocs.io.FeaturesThis is a sub-package used by twigs for performing host benchmark tests.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.0.0 (2020-11-20)First release on PyPI.1.0.1 (2021-03-12)Minor fixes.1.0.2 (2022-05-31)Upgraded host benchmark tool.1.0.3 (2022-06-01)Fix broken package.
Package: twigs-ssl-audit
twigs_ssl_auditTWIGS SSL AuditFree software: GNU General Public License v3Documentation:https://twigs-ssl-audit.readthedocs.io.FeaturesThis is a sub-package used by twigs for performing SSL audit.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.0.0 (2020-07-17)First release on PyPI.
Package: twiimote
a wiimote to twitter thingy.twiimote is a program that‘connects your wiimote to twitter’.it’s as simple as that.InstallYou’ll need a working wiimote to use this!twiimote requires python-cwiid and python-bluez & obviously pipsudo apt-get install python-cwiid python-bluezthen:sudo pip install twiimotekeep in mind twiimote only works on linux. not mac or windows.media:asciicast:https://asciinema.org/a/4572youtube:http://www.youtube.com/watch?v=KMEmvo1dbggHow to use:When inside twiimote press these buttons to navigate.Home = Home Timeline - press Home to exit1 = List @Mentions2 = List DM’sA = ?????B = Hashtag tracking. - press Home to exit.Minus = ExitLearn Morefor more information on twiimote head over here.http://hakob.yt/e/twiimote
Package: twikenizer
TwikenizerThis repository hosts the code for a tokenizer of tweets. It's main purpose is to identify subtle profanity, so it should
obtain better performance on data containing hidden profanity (e.g. 'f*ck').Disclaimer: The following paragraphs may contain profanity.DescriptionPython offers a set of sentence tokenizers for different purposes: nltk's word tokenizer, spacy's, scikit-learn's default and
TweetTokenizer, among others. All but TweetTokenizer disregard hashtags and mentions by separating the symbols from the rest of the token(s).
Although TweetTokenizer considers the Twitterdialect, it fails to tokenize subtle hidden profanity.For the wordf*ck,the tokens considered are[f, *, ck]. The wordg@yis tokenized as[g, @y], considering
a single tokengand a wrongly identified mention@y. While the hashtag#hash_tagis correctly tokenized as[#hash_tag],regulartokens are not underscore separated:love_twitteris tokenized as['love_twitter']instead of['love', '_', 'twitter'].Twikenizer was created in order to enable a proper identification of hidden profane words, considering the features detailed above. Applying distance related features, i.e. levenshtein distance to slang words should output better results using this tokenizer.InstallationUsing pippip install twikenizerClone repositorygit clonehttps://github.com/Guilherme-Routar/Twikenizer.gitUsage>importtwikenizerastwk>twk=twk.Twikenizer()>tweet='This is an #hashtag'>twk.tokenize(tweet)['This','is','an','#hashtag']Twikenizer has a built-in functionexamplifywhich demonstrates how it tokenizes different kind of words/tokens.>twk.examplify()Generatedtweet###############Tw33t# @dude_really #hash_tag $hit (g@y) retard#d @dude. 😀😀 !😀abc %😀lol #hateit #hate.it $%&/ f*ck-Generatedtokens################['Tw33t','#','@dude_really','#hash_tag','$hit','(','g','@','y',')','retard#d','@dude','.','😀','😀','!','😀','abc','%','😀','lol','#hateit','#hate','.','it','$','%','&','/','f*ck','-']´´´
Package: twiki
# python-twikipython-twiki is a bunch of tools which allow manage a TWiki.# Install## From the source```sh$ git clone https://github.com/psaavedra/python-twiki.git$ cd python-twiki$ sudo python setup.py install```## From PyPI```sh$ sudo pip install twiki```# Examples## Configuration file (setup.cfg)```[global]loglevel:20logfile:/dev/stdouturl:http://localhost/twiki[auth]type:http_basicusername:userpassword:pass```where `url` is something like: ''https://wiki.igalia.com/twiki''.In the other hand, the `auth` settings refer to HTTP Basicauthentication parameters, in necessary case.## Getting Topics from a Web```sh$ twiki-get-topics -c setup.cfg -o list.csv -w WebName```where `list.csv` results something like this:```"WebName/WebTopic1","WebName/WebTopic2",```## Moving a Topic to another Topic parent```sh$ twiki-move-topic -c setup.cfg -t WebName/WebTopic -p NewWebTopicParent$ twiki-move-topic -c setup.cfg -i list.csv$ twiki-move-topic -c setup.cfg -i list.csv -p NewWebTopicParent```where `list.csv` is something like this:```"WebName/WebTopic1", "NewWebTopicParent1""WebName/WebTopic2", "NewWebTopicParent2"```## Renaming Topics```sh$ twiki-rename-topic -c setup.cfg -t WebName/WebTopic -n NewWebName/NewWebTopic$ twiki-rename-topic -c setup.cfg -t WebName/WebTopic -n WebName/NewWebTopic$ twiki-rename-topic -c setup.cfg -t WebName/WebTopic -n NewWebName/WebTopic$ twiki-rename-topic -c setup.cfg -i list.csv```where `list.csv` is something like this:```"WebName/WebTopic1", "NewWebName/NewWebTopic1""WebName/WebTopic2", "NewWebName/NewWebTopic2"```
Package: twikit
TwikitA simple API wrapper to interact with twitter's internal API.Documentation (English)Async DocumentationIf you have any questions, please ask onDiscord.FeaturesNo API Key RequiredThe library uses an unofficial API and therefore doesnot require an API key.Completely FreeThe service is entirely free to use.Both Synchronous and Asynchronous SupportWhether you prefersynchronousorasynchronousprogramming,
Twikit supports both, providing flexibility for different use cases.FunctionalityThis library allows you to perform various Twitter-related actions, including:Create tweetsSearch tweetsRetrieve trending topicsetc...Installingpip install twikitQuick ExampleDefine a client and log in to the account.fromtwikitimportClientUSERNAME='example_user'EMAIL='email@example.com'PASSWORD='password0000'# Initialize clientclient=Client('en-US')# Login to the service with provided user credentialsclient.login(auth_info_1=USERNAME,auth_info_2=EMAIL,password=PASSWORD)Create a tweet with media attached.# Upload media files and obtain media_idsmedia_ids=[client.upload_media('media1.jpg',index=0),client.upload_media('media2.jpg',index=1)]# Create a tweet with the provided text and attached mediaclient.create_tweet(text='Example Tweet',media_ids=media_ids)More Examples:example.pyAsync Examples:example_async.pyRate Limits:ratelimits.mdContributingI would like to hear your thoughts and suggestions.
If you have any features you'd like to see added or encounter any issues,
please let me know in theissuessection.Additionally, if you find this library useful, I would appreciate it if you would star this repository or share this library⭐! Thank you very much!