Saravanan666/pypi-org huggingface dataset:
Package: twixxy
twixxy - twiggy + twistedtwixxy consists primarily of twisted log observer which can installed to
forward calls tolog.msgandlog.errto the appropriate Twiggy
log methods.Using with twistdtwixxy provides a log observer factory compatible withtwistd--logger.> twistd --logger=twixxy.observerFactory -n web --path=.
2012-06-19T22:09:43Z:INFO:twisted:Log opened.
2012-06-19T22:09:43Z:INFO:twisted:twistd 12.1.0 (/Users/dreid/.virtualenvs/twixxy/bin/python 2.7.1) starting up.
2012-06-19T22:09:43Z:INFO:twisted:reactor class: twisted.internet.selectreactor.SelectReactor.
2012-06-19T22:09:43Z:INFO:twisted:Site starting on 8080
2012-06-19T22:09:43Z:INFO:twisted:Starting factory <twisted.web.server.Site instance at 0x10b718fc8>Replacing Twisted’s Logging without twistd.import sys
import twiggy
from twisted.python import log
from twixxy import TwiggyLoggingObserver

twiggy.quickSetup(file=sys.stdout)
observer = TwiggyLoggingObserver('example')
log.startLoggingWithObserver(observer.emit)

log.msg('Hello, World!')Using in conjunction with Twisted’s logging.import sys
import twiggy
from twisted.python import log
from twixxy import TwiggyLoggingObserver

twiggy.quickSetup(file='twiggy.log')
observer = TwiggyLoggingObserver('example2')
observer.start()
log.startLogging(sys.stdout)

log.msg('Hello, World!')
Package: twiz
twizYour Twitter Account Data Analysis & Visualization Tool <3Table of ContentsWhy did you create this project ?Where did you get all these data ?How do I install it ?How do I use it ?What's inside box ?MotivationBeing a data hunter ( yeah, you read it correct ), I love to collect data & analyze it for finding hidden patterns in it.That's why I downloaded my Twitter account data archive & started analyzing it. This tool can be used for analyzing your twitter account data without sending any of it to remote machines.I'm adding some features here, if you feel some improvements can be done there, please feel free to contact me or you can always raise a PR.DataFor obtaining your copy of Twitter account data archive, followthis.Installationtwizcan be downloaded from PyPI. Make sure you've python( >=3.7 )installed.python3-mpipinstall-UtwizUsageIf you've added defaultpipinstallation path to systemPATHvariable, then it can be invoked as below.twizpath-to-twitter-data.zipsink/FeaturesFollowers & FollowingsTwitter Followers And Followings Per CentTwitter Followers & Followers whom you're following vs Twitter Followings & Followings who're following youLikesTop 10 Twitter#HASHTAGSfound in tweets liked by YOUTop 10@TaggedTwitterUsersfound in tweets liked by YOUTop 10 Emojis found in tweets liked by YOUAdvertisementEngagementsTwitter Ads forYOU, by target device typeTwitter Ads forYOU, by on-screen display locationTwitter Ads forYOU, grouped by target Device Type & on-screen Ad Display LocationTwitter Ads YOU engaged in, grouped by Advertiser NamesTop 15 Twitter Ad Engagement Types used in YOUR caseTop 15 Twitter Advertisers with respective Engagement Types for YOUTwitter Ad targeting criterias used by top X advertisers for YOUTop X Advertisement Target Criterias used for YOU on Twitter{Locations, Age, Follower look-alikes, Platforms, ...} -used as Twitter Ad Target CriteriasTop 20 Twitter#HashTagsfound in Promoted Tweets for YOUTop 3#HashTagsin tweets promoted by top 10 advertisers, targeting YOUTop X@taggedUsersin promoted tweets targeting YOUTweetsTop X#HashTagsin tweets by YOUTop X@UserMentionsin tweets by YOUWord Cloud of#HashTagsin tweets by YOUThis section will keep getting populated ;)
Package: tw.jqmultiselect
ContentsDetailed DocumentationContributorsChange historyDetailed Documentationtw.jqmultiselect documentationtw.jqmultiselect is a tosca widget wrapper around ui.multiselect
a jquery extension which can be found here :http://www.quasipartikel.at/multiselect/usage example:from tw.forms import TableForm
from tw.jqmultiselect import Jqmultiselect

class EditMovieForm(TableForm):
    submit_text = 'Edit Movie'

    fields = [
        Jqmultiselect('actors',
            help_text = 'Please choose the actors of the movie.',
            searchable=True, # default = True
            sortable=True,   # default=True
            ),
            ]ContributorsMain developpersNicolas Laurance <nicolas[dot]laurance[at]gmail[dot]com>Change historyNew in 0.1First Release
Package: twless
twless is a coroutine framework based on twisted and stackless python.it provide simple and nature way to create coroutining runtime envirement,noasync/await,yield,callbackinfection and circling is needed,eveything is just straight-forward,easy to understand.look at this simple example:fromtwless.scheduleimportrunReactor,exitReactor,startUserTaskletfromtwless.contextimportsleepInTaskletclassTestContext:counter=0defworker(idx):'''

        tasklet(coroutine) execute function

    '''print('worker #{0}start...'.format(idx))# sleep 1 second and continue.sleepInTasklet(1)print('worker #{0}finish.'.format(idx))TestContext.counter-=1ifTestContext.counter<=0:# when all workers finish,exit from current process.exitReactor()defmain():## start up 100 tasklet(coroutine)foridxinxrange(100):startUserTasklet(worker,idx)TestContext.counter+=1if__name__=='__main__':runReactor(main)
Package: twmap
TwMap Python ModuleSafely parse, edit and saveTeeworldsandDDNetmaps - in Python!See the Rust librarytwmapfor details on the wrapped library.InstallationSimply dopip install twmap!UsageThehelpfunction is your friend!
Once you importedtwmap, dohelp(twmap.Map)to access the documentation of theMapstruct.
It also contains important general knowledge about the module.To load your first map, domap = twmap.Map(path-to-map).
To see the attributes and documentation about an object...helphelps you!For example, have a look intohelp(map.groups)andhelp(map.groups[0]).
The first one will give you methods on the group collection and the second one attributes and methods on group objects.
If you are confused about something in the module, the general information inhelp(twmap.Map)might help you.Manual Building (on Linux)You needRustinstalled on your system.
To compile twmap in release mode, execute the following command in the source root:cargo build --releaseLocate the filetarget/release/libtwmap.so.
This file is only importable undertwmap.so.
Symlink or copy it to your desired location.Publishing StepsThese steps are the ones I use to upload new versions of twmap-py topypi.Linux:podman pull ghcr.io/pyo3/maturinpodman run --rm -v $(pwd):/io ghcr.io/pyo3/maturin publish -f --username 'USER' --password 'PASS'Cross-compiling to Windows:Cargo.toml: switch thepyo3dependency lineDownload the latest Python 3.7 "Windows x86-64 embeddable zip file" fromhttps://www.python.org/downloads/windows/. Last used:https://www.python.org/ftp/python/3.7.9/python-3.7.9-embed-amd64.zipUnzip in project rootRUSTFLAGS='-C target-feature=+crt-static' PYO3_CROSS_LIB_DIR='./python-3.7.9-embed-amd64' maturin publish --target x86_64-pc-windows-gnu(replace the dir path if another version is used)Enter pypi credentials interactively
Package: twn-generator
Twn_Generator v0.1.5This package generates c or verilog code for convolutions in Ternary Neural NetworksInstallationTo install runpip3 install twn_generatorExample UsageThere are two example verilog use cases for computing the convolutionThe first uses 16 bit adders to compute the convolution quickly.
The second computes the same result but computes the convolution using 4 bit serial adders.
This only has a quarter of the throughput but also a quarter of the area in adders.To run the CSE and generate the adders, run:python3run_cse_and_generate_example.py--matrix_fnamedata/conv1_weights.csv--cse_fnamedata/conv1_tern_op_list.csv--module_namelyr1--BW_in16python3run_cse_and_generate_example.py--matrix_fnamedata/conv1_weights.csv--cse_fnamedata/conv1_tern_op_list.csv--module_namelyr1_serial--BW_in4--serialThis will generate 3 files:lyr1.sv => the 16 bit adder versionlyr1_serial.sv => the 4 bit serial adder versionserial_adder.sv => a helper module implementing the serial adderIn the verilog/ directory the following can be used to verify the 16 bit adder example:conv_windower.svwindower_3x3_pad.svconv_windower_test.svFor the 4 bit serial adder example:conv_windower_serial.svfrom_serial.vto_serial.vwindower_3x3_pad_serial_4.svconv_windower_serial_test.svThe top level design modules are conv_windower.sv and conv_windower_serial.sv respectively.
The simulation test sources are conv_windower_test.sv and conv_windower_serial.svFor more details onCSEFor more details onSMMCopyleftThe output of the generator ( the verilog or c in this case ) is not under GPLSee:In what cases is the output of a GPL program covered by the GPL too?CitationPlease cite:@article{tridgell2019unrolling,
  title={Unrolling Ternary Neural Networks},
  author={Tridgell, Stephen and Kumm, Martin and Hardieck, Martin and Boland, David and Moss, Duncan and Zipf, Peter and Leong, Philip HW},
  journal={ACM Transactions on Reconfigurable Technology and Systems (TRETS)},
  volume={12},
  number={4},
  pages={22},
  year={2019},
  publisher={ACM}
}
Package: twn-solitaire
___  _ __     _____       _ _ _        _
 |__ \| '_ \   / ____|     | (_) |      (_)
    ) |_| |_| | (___   ___ | |_| |_ __ _ _ _ __ ___
   / /         \___ \ / _ \| | | __/ _` | | '__/ _ \
  / /_         ____) | (_) | | | || (_| | | | |  __/
 |____|       |_____/ \___/|_|_|\__\__,_|_|_|  \___|2nSolitaire (or TWN Solitaire) is a simple game inspired by
2048 Solitaire (but more generic) which is inspired by 2048 (but instead of
tiles in a grid you collect cards here). I find the game fun and
satisfying and thus I decided to try and implement it using Pygame. Here we are.The goal of the game is to stack an endless row of cards into limited-size
columns. Each time you stack two cards of the same value one on the other,
the two cards are replaced by one of double the value and your score grows.
Cards with the maximum value (configurable, see below) will disappear.
The game ends once all the columns are full and so no more cards can be played.ControlsThis is what the game looks like. At the top you can see your current score,
below that is the main board where the cards are stacked. In the bottom part you
can see two next cards that will come to the game. You can use1,2,3and4keys to place the next upcoming card to the respective column.That's it. Simple, eh?ConfigurationThere are some configurable options - see
thedefault config file. All options should be described
there including default values which will be used if not specified otherwise.
The game will search for the configuration file in the following locations
(in this order):current working directoryhome directorydirectory specified by TWN_SOLITAIRE_CONF_DIR environment
variableCurrent stateThe game works but doesn't do anything fancy or look fancy yet.Future plansHigh score recordingSpecial cards?Limited swappingnext cards?Limited discardingnext cards?Saving game state on exit?Bettergraphics?Mouse support?See/add issues if interested in anything particular.
Package: two
two😏随机一句「中二」的台词！安装pipinstalltwo# 或者gitclonehttps://github.com/Ailln/two.gitcdtwo
pythonsetup.pyinstall使用>>>importtwo>>>two.two()错的不是我，是世界！【叛逆的鲁鲁修R2】>>>two.two()你还差的远呢！【网球王子】许可
Package: two048
This module provides a backend for the two048 game.Find its documentation athttps://two048.readthedocs.org/en/latest/. Not really useful, the code is simple you can check it directly.Install it with :pip install two048Use it with :fromtwo048importTwo048game=Two048()whilenotgame.is_over():print(game)direction=input("Choose a direction (up/down/right/left): ")game.play(direction)You can easily create an interface using this module.game.play()return a list of all the tile movements, so you can easily animate them.
Package: twoaxistracking
Open source code for calculating self-shading of two-axis tracking solar collectorstwoaxistracking is a python package for simulating two-axis tracking solar collectors, particularly self-shading.DocumentationThe documentation can be found atreadthedocs.Installation and dependenciesThe package can be installed using pip:pip install twoaxistrackingCitingIf you use the package in published work, please cite:Adam R. Jensen, Ioannis Sifnaios, and Kevin Anderson. "twoaxistracking – a python package for simulating
self-shading of two-axis tracking solar collectors." MethodsX, 9, 101876, (2022).https://doi.org/10.1016/j.mex.2022.101876andAdam R. Jensen, Ioannis Sifnaios, Simon Furbo, and Janne Dragsted. "Self-shading of two-axis
tracking solar collectors: Impact of field layout, latitude, and aperture shape." Solar
Energy, 236, 215–224, (2022).https://doi.org/10.1016/j.solener.2022.02.023ContributingContributions to the repository, e.g., bug fixes and improvements to speed up the code are more than welcome.LicenseBSD 3-clause.
Package: twobodyproblem
Two Body Problema small simulationWelcome!I wrote a small program in Python to simulate the two body problem.
You type in some parameters, like mass, radius, velocity and distance.
The program will show you a visualization of the simulation.This program is command line only. If you want a graphical user interface,
visitthis GitHub page.Table of ContentsInstallation Instructionsvia PyPivia GitHubUsageInstallation Instructions(You may need Microsoft Visual C++ to be able to run the program,
so install it fromhereif needed.)via PyPiThe Python package manager pip will install the last uploaded version
from the Python Package IndexPyPi.
This will not always be the latest version, so if you want to install all the latest features,
install it from GitHub (seebelow).Make surePythonand pip are installed correctly.Run these commands from a command line:pip3 install --upgrade pip setuptools wheelpip3 install --upgrade twobodyproblemNow, the program is runnable withpython -m twobodyproblemorpython3 -m twobodyproblem.via GitHubMake surePythonand pip are installed correctly.Make sureGit SCMis installed correctly.Run these commands from a command line:mkdir TwoBodyandcd TwoBodygit clone https://github.com/Two-Body-Problem/twobodyproblem-simulation-python.gitpip3 install --upgrade pip setuptools wheelpip3 install twobodyproblem-simulation-pythonNow, the program is runnable withpython -m twobodyproblemorpython3 -m twobodyproblem.UsageTo learn more about how to run the program with different options,
runpython -m twbodyproblem -horpython3 -m twbodyproblem -hrespectively.Run the program withpython -m twobodyproblemorpython3 -m twobodyproblem.First, you will have to inputoptionsandvalues.
The options define the particular behavior of the simulation,
the values define the dimensions (i.e. mass, radius, distance, velocity) of the bodies.The simulation will start automatically after the last input.During the simulation, you are able to pause, un-pause and stop the simulation
with the accordingly named buttons below the black rectangle.
The restart button restarts thewholeprogram, not just the simulation.The sliders below the buttons can be used to magnify the bodies in the simulation.
This magnification does not affect the physics, it is only a visual help.Participation in this README is always welcome!
Package: twobodyproblem-gui
Two Body Problem – GUIthe GUI to the simulationWelcome!This is the repository for the graphical user interface ofthis simulation.
For more information about the whole program, go there.In this additional GUI, there are more possibilities than in the normal (CLI) program.
For example, you can choose from presets instead of typing in your own parameters,
save your settings and values and more.Table of ContentsInstallation Instructionsvia PyPivia GitHubUsageInstallation Instructions(You may need Microsoft Visual C++ to be able to run the program,
so install it fromhereif needed.)via PyPiThe Python package manager pip will install the last uploaded version
from the Python Package IndexPyPi.
This will not always be the latest version, so if you want to install all the latest features,
install it from GitHub (seebelow).Make surePythonand pip are installed correctly.Run these commands from a command line:pip3 install --upgrade pip setuptools wheelpip3 install --upgrade twobodyproblem_guiNow, the program is runnable withpython -m twobodyproblem_guiorpython3 -m twobodyproblem_gui.via GitHubInstall theCLI program.Run these commands from a command line:cd TwoBody(or whatever folder you stored the CLI program files in)git clone https://github.com/Two-Body-Problem/twobodyproblem-simulation-python-gui.gitpip3 install twobodyproblem-simulation-python-guiNow, the program is runnable withpython -m twobodyproblem_guiorpython3 -m twobodyproblem_gui.UsageTo learn more about how to run the program with different options,
runpython -m twbodyproblem_gui -horpython3 -m twbodyproblem_gui -hrespectively.To learn more about the CLI program / the simulation itself, readthisfirst.Run the program withpython -m twobodyproblem_guiorpython3 -m twobodyproblem_gui.The program will open a window with some input fields. This is the main window where you input the values.
To save values, pressCtrl+S. The values will then be saved into a file.
If you do this action repeatedly, the former contents of the file (i.e. the saved values) will beoverwritten!
To load saved values from this file, pressCtrl+L.
To save or load values through a file dialog,
pressCtrl+Shift+SorCtrl+Shift+L.
It works the same way for saving and loading settings
from the settings window (open it withCtrl+I).
These files will be saved in theYAMLformat (*.yml).You can also select from a few presets (e.g. Sun, Moon, Earth)
to fill in some values instead of typing your own.
To do so, pressCtrl+E, select from the drop-down menus
and press one of the two buttons in the lower right corner.To start the simulation, press the button in the lower right corner in the main window.Participation in this README is always welcome!
Package: twocaptcha-extension-python
2Captcha Extension Python2Captcha Extension Python helps you easily use 2Captcha Extension in Botasaurus, Selenium, and Playwright.You can easily configure 2Captcha with an API key without needing to download the 2Captcha Extension, update config files, etc.Installationpython-mpipinstalltwocaptcha_extension_pythonUsage withBotasaurus Web Scraping Frameworkfrombotasaurusimport*fromtwocaptcha_extension_pythonimportTwoCaptcha@browser(extensions=[TwoCaptcha(api_key="TWO_CAPTCHA_KEY")],# TODO: Replace with your own 2Captcha Key)defsolve_captcha(driver:AntiDetectDriver,data):driver.get("https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php")driver.prompt()solve_captcha()Usage with Seleniumfromseleniumimportwebdriverfromselenium.webdriver.chrome.optionsimportOptionsfromchromedriver_autoinstallerimportinstallfromtwocaptcha_extension_pythonimportTwoCaptcha# Set Chrome optionsoptions=Options()options.add_argument(TwoCaptcha(api_key="TWO_CAPTCHA_KEY").load())# TODO: Replace with your own 2Captcha Key# Install and set up the driverdriver_path=install()driver=webdriver.Chrome(driver_path,options=options)# Navigate to the desired URLdriver.get("https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php")# Prompt for user inputinput("Press Enter to exit...")# Clean updriver.quit()Usage with Playwrightfromplaywright.sync_apiimportsync_playwrightfromtwocaptcha_extension_pythonimportTwoCaptchaimportrandomdefgenerate_random_profile():returnstr(random.randint(1,1000))withsync_playwright()asp:extension_path=TwoCaptcha(api_key="TWO_CAPTCHA_KEY").load(with_command_line_option=False)# TODO: Replace with your own 2Captcha Keybrowser=p.chromium.launch_persistent_context(user_data_dir=generate_random_profile(),headless=False,args=['--disable-extensions-except='+extension_path,'--load-extension='+extension_path,],)page=browser.new_page()page.goto("https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php")input("Press Enter to exit...")browser.close()Love It?Star It ⭐!Become one of our amazing stargazers by giving us a star ⭐ on GitHub!It's just one click, but it means the world to me.
Package: two-captcha-sdk
TwoCaptcha==========2Captcha Python3 API WrapperPrerequisites-------------You will need a ``2Captcha API Key`` which can be found `here`_ afterregistering for 2Captcha on https://2captcha.comUsage-----TwoCaptcha~~~~~~~~~~.. code:: pyfrom twocaptcha import TwoCaptchaAPI_KEY = 'YOUR_API_KEY_HERE'twoCaptcha = TwoCaptcha(API_KEY)TwoCaptcha.solve\_captcha~~~~~~~~~~~~~~~~~~~~~~~~~.. code:: pypage_url = 'http://www.example.com'site_key = '6Le4AQgUAAAAAABhHEq7RWQNJwGR_M-6Jni9tgtA'captcha_token = twoCaptcha.solve_captcha(site_key=site_key, page_url=page_url)print(captcha_token) # Ex. '03AE...'TwoCaptcha.get\_balance~~~~~~~~~~~~~~~~~~~.. code:: pybalance = twoCaptcha.get_balance()print(balance) # Ex. '6.11472'TODO:------  [ ] proxy support-  [ ] poll interval-  [ ] request error handling-  [ ] request unblocking-  [ ] unit tests.. _here: https://2captcha.com/setting
Package: twocaptcha-wrapper
TwoCaptcha - WrapperTwoCaptcha - Wrapper is a wrapper for the 2Captcha API (Recaptcha V2
Token method only) that solves your CAPTCHA with high accuracy.Intallationpippip install twocaptchaSourcegit clone https://github.com/tiagocardosoweb/twocaptcha-wrapper.git
cd twocaptcha
python setup.py installHow to start?First you need a 2Captcha Account, you canRegister
Here, after register your
account: * Login into your account. * Add some money. * Go to
“2Captcha API” * Get “CAPTCHA Key”UsageGetting your balancefrom twocaptcha import TwoCaptcha

two= TwoCaptcha(<api_key>, <soft_id=None>, <log=None>)
print two.get_balance()

This function will return your account balance (string).Uploading a captchafrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=None>)
print two.upload(<google_key>,<page_url>)

This function will upload the captcha request and then return the request ID (string).Response from a captchafrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=None>)
print two.get_response(<request_id>,<except=False>)

This function will request the token from the a request and return you the resolution token (string).
**NOTE:** If you want the method to raise an exception in case something goes wrong, set <except> to *True*Solving a captchafrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=None>>)
print two.resolve_captcha(<google_key>,<page_url>,<waittime=15>)

This function will upload the captcha request & ask back the captcha solution and return the token (string).
*How it works?* 15 seconds timeout + (5 seconds timeout * while token is not returned )Solving a captcha via Pingbackfrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=None>, <extra_data_file_path=None>)
print two.upload(<google_key>,<page_url>,<pingback_url>)

This function will upload the captcha request and then return it via a POST request to your Pingback URL.Adding a Pingback URLfrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=None>, <extra_data_file_path=None>)
print two.add_pingback(<url>)Getting your Pingback Listfrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=None>)
print two.add_pingback(<url>)Deleting a Pingback URLfrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=None>)
print two.delete_pingback(<url=None>, <all=False>)

You must provie and URL or set <all> to *True*Complainfrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=Log Here>)
print two.complain(<request_id>)Loggerfrom twocaptcha import TwoCaptcha

two = TwoCaptcha(<api_key>, <soft_id=None>, <log=Log Here>)
print two.getbalance()ExceptionsAll methods throw up exceptions, so be sure to import them

from twocaptcha import AccessDeniedException

 - AccessDeniedException
 - CaptchaException
 - BalanceException
 - PingbackException
 - KeyException