Saravanan666/pypi-org huggingface dataset:
Package: simpleTR64
This library supports the discovery of UPnP devices in the local network and let you execute actions on them if
the device supports any. Also it contains a convenient way to execute TR64 protocol actions on routers or other network
devices which supports TR64.>>>results=simpletr64.discover()>>>print(results[0])LOC:http://192.168.178.1:49000/tr64desc.xmlSRV:urn:dslforum-org:device:InternetGatewayDevice:1...>>>device=simpletr64.DeviceTR64(hostname=192.168.178.1,port=49000)...>>>device.execute("/upnp/control/hosts","urn:dslforum-org:service:Hosts:1","GetGenericHostEntry",NewIndex=1){'NewActive':'0','NewIPAddress':'192.168.0.23','NewMACAddress':'9C:20:7B:E7:FF:5F','NewInterfaceType':'Ethernet','NewHostName':'Apple-TV','NewAddressSource':'DHCP','NewLeaseTimeRemaining':'0'}or even easier, execute:>>>device=System("192.168.178.1")>>>device.setupTR64Device("fritz.box")>>>print(device.getSystemInfo().manufactureName)"AVM"On the command line:$ upnp_tools discoverFeaturesDiscovery of UPnP devices in the local networkGathering of UPnP device information’sExecuting of UPnP actionsAuthentication for username/password or password onlyHTTP(S) proxy supportUnicodeProvides shell command ‘upnp_tools’ for all aboveInstallationTo install Simple TR64, simply:$pipinstallsimpletr64DocumentationPlease, see thedocumentation hereRelease History1.0.6 (2016-01-24)Fix error in upnp_tools when no command was given1.0.5 (2016-01-15)Adding the support for DNLA devices which announce some device definitions slightly differentlyMoving all tools/ scripts into one “upnp_tools” script and move it to bin so it get installed into exe path1.0.4 (2016-01-11)Adding Fritz specific actionsFix a bug with installing the package, thanks to Raphael Sobik1.0.3 (2016-01-08)Added timeout to any TR64 actionAdded getSpecificAssociatedDeviceInfo in Wifi actionsAdded setEnable to toggle the LAN/WAN/Wifi interface on/offAdded setSSID and setChannel to set these Wifi interface parameters accordinglyAdded softwareUpdateAvailableAdded requestConnection and terminateConnection for a WAN connectionAdded AVM Fritz Box product specific capabilities in new Fritz classFix reboot actionFix all TR64 actions with bool results which were always True1.0.2 (2016-01-06)Added the ability to request the namespace for a TR64 actionAdded interface ID’s to all actions in Lan, Wan and WifiAdded a factory method to DeviceTR64 which takes an URL to the device definitionsImproved error handling on XML parsing problems of any contentChanged the declaration of getGenericAssociatedDeviceInfo for consistency reasonsChanged for all Wifi actions that the interface id is now optionalChanged all TR64 action classes to be a sub class of DeviceTR64Fix an issue with relative URL’s in the device definition1.0.1 (2016-01-04)Added better error reportingAdded timeout to any network interactionadded the possibility to discover more than one service at the same timefixed getHostDetailsByMACAddress()1.0.0 (2016-01-02)Birth!
Package: simple-tracker
simple_trackerTrack multiple objects using just x, y coordinates!simple_tracker is a simple cemtrpod object tracker and requires no external dependencies other than the Python standard library. It is originally designed to count and track objects onOpenMVMicroPython boards and will see future use with opencv-python on Raspberry Pi.In actionThis was made using an OpenMV cam and the examplehereInstallation$pipinstallgit+https://github.com/bherbruck/simple_trackeror$pipinstallsimple-trackerUsageAll you need to do is pass a list of tuples (x, y) to the Tracker.update() methodfromsimple_trackerimportTrackertracker=Tracker()whileTrue:centroids=some_detection_algorithm()tracker.update(centroids)
Package: simpletraj
Lightweight coordinate-only trajectory reader based on code from [GROMACS](http://www.gromacs.org/), [MDAnalysis](http://www.mdanalysis.org/) and [VMD](http://www.ks.uiuc.edu/Research/vmd/).Used for coordinate retrieval in [MDSrv](https://github.com/arose/mdsrv) and [nglview](https://github.com/arose/nglview).Should work with Python 2 and 3. If you experience problems, please file an [issue](https://github.com/arose/simpletraj/issues).InstallationFrom PyPI:pip install simpletrajnetCDF4For reading.netcdftrajectory files thenetCDF4package is needed. As installing it can prove difficult, it is not a required package and must be installed separately.If you usecondaas your Python package manager:conda install netcdf4To install the NetCDF libraries and its Python package on debian/ubuntu:sudo apt-get install libhdf5-serial-dev libnetcdf-dev
pip install netCDF4In case you get “ValueError: did not find HDF5 headers” try:sudo su
find / -name “libhdf5*.so*”
# use what the above ‘find’ suggests to set ‘HDF5_DIR’
export HDF5_DIR=/usr/lib/i386-linux-gnu/hdf5/serial/
pip install netCDF4ChangelogVersion 0.4 and 0.5FIX: Python 3 compatibility (iter/iteritems)Version 0.3FIX: DCD Python 2 compatibilityVersion 0.2ADD: package ready for PyPICODE: Python 3 compatibilityCODE: handle errors during offsets file reading/writingVersion 0.1initial version (no release)LicenseGenerally GPL2, see the LICENSE file for details.
Package: simple-transfer
simple-transferEasy data transfers between relational databases. Specify the source/destination connection, schema, and table and simple-transfer does the rest.Quickstartimportloggingfromsimple_transferimportMySQLConnection,Pipeline,PostgreSQLConnectionlogging.basicConfig(level=logging.INFO)source_connection=PostgreSQLConnection(host="source-database.xxx.us-east-1.rds.amazonaws.com",port=5432,username="<username>",password="<password>",db="postgres",)destination_connection=MySQLConnection(host="destination-database.xxx.us-east-1.rds.amazonaws.com",port=3306,username="<username>",password="<password>",db="my_db",)pipeline=Pipeline(source_connection=source_connection,source_schema="public",source_table="source_table",destination_connection=destination_connection,destination_schema="my_db",destination_table="destination_table",inject_mode="swap",)pipeline.execute()Supported DatabasesPostgreSQLMySQLSupported temporary storage locationsThis package utilizes thesmart_openpackage when opening a file object, this enables the intermediate storage location to be anything supported by this library:Local File SystemAWS S3Azure Blob StorageGCP Cloud StorageInjection MethodsoverwriteThis mode will drop and recreate the table if it exists before inserting the data into it.appendThis mode will create the table if it doesn't exist, and then insert the data into it.swapThis mode will create a swap table and insert the data into it. Then in a transaction it will swap the names of the swap table and existing table and then drop the now renamed existing table.
Package: simple-transforms
WARNINGProject still under active development - Expect bugsSimple TransformsBasic idea: A simple package for creating and using 4x4 transformation matrices as
numpy arrays.Other ProjectsThere are other more mature and more complete projects to use:transforms3dI wrote my own because I needed it to use a custom data type - arounded floating point interval.LicenseCopyright (c) 2023, Jef WagnerSimple-transforms is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation, either
version 3 of the License, or (at your option) any later version.Simple-transforms is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with
Simple-transforms. If not, seehttps://www.gnu.org/licenses/.
Package: simpletree3
Offers classes implementing basic tree-like
functionality, as well as iterators for walking
the trees and node search functionality. Requires Python3.4 or later.
Cython compilation is performed if cython is installed.The design goal is to provide a basic class implementing the
essential tree structure and functionality. Practical applications will
want to inherit from one of the provided classes
in order to provide custom functionality. Tree walking
algorithms are implemented as generators, in order to
minimize the use of temporary objects and focus on
speed and efficiency.ClassesTwo classes are provided:SimpleNodeandFlexibleNode.SimpleNodeThis is the base class that provides the
tree node functionality by connecting
parents to children. Additional functionality
can be added by deriving fromSimpleNode.Each node is identified by akeyparameter
of an arbitrary hashable type. Node keys must be unique
among the direct children of a node, since node
children are held in a dict using the key attribute as
dictionary keys (hence the hashable requirement).Connections with nodes up and down the tree are
accessed through the parent and children properties
(children offers an iterator for the child nodes,
sorted by node key).
The root node of a tree is the node with parent
equal to None. Setting the parent of a node
checks that no loops are inserted and adds
the current node to the parent’s children (if needed).
Deleting a parent sets it to None and removes
the node from the parent’s children.Some additional convenience properties are defined -
siblings, ancestors, depth, height - as well as
methods for adding and removing child nodes.FlexibleNodeThis is a convenience class that add hooks to
setting and deleting a parent. The motivation for
providing it is that currently Python does not
offer a simple syntax for calling a base class
property from a derived class when that property is
overriden, so by inheriting fromFlexibleNodeinstead ofSimpleNodeone only has to override
the hooks to perform any desired operations.
Adding and deleting children can be
directly overriden, since they are not implemented
as properties. The design decision of having the
hook functionality implemented in a separate class
allows one to choose the trade-off between
speed and flexibility of tree building
(important for very large trees).IteratorsThe module implements preorder, postorder, level
and leaf iterators. Each comes in two flavors - a simple
one, iterating through all nodes, and a filtered
one, where specific nodes can be selected
and/or specific subtrees can be ignored.Search functionalityThe simplest search is done using a preorder iteration
procedure that yields nodes with the specified key.
A separate find function returns the first node matching
that key.A common use case when building trees is that
subsequent nodes are added in a subtree containing the last
inserted node. To optimize for this case, a separate
search procedure is implemented, which walks up the
tree from the start node and searches for the
specified key in the subtree rooted in each ancestor.
Package: simple-ts
simple_ts package
                A simple package for analyze and check time series stationarity.

Installation

pip install simple_ts

Quick Start
import simplets
simplets.simple_ts(x, plot= True)

Parameters
x: array-like
The time series data.

plot: bool, default False
if true, plots the decomposition of the time series.

*Returns*
0riginal plot, trend plot, seasonal plot and resid plot for the time series: (optional)
Summary of Augmented Dickey-Fuller unit root test.
Summary of Kwiatkowski-Phillips-Schmidt-Shin test for stationarity.
Best ARIMA model for the time series
Package: simple-tsv
OverviewThe simple_tsv package provides a basic csv dialect for tsv files and some basic functions and classes for reading and writing.InstallationTo install simple_tsv, you can usepip. Open your terminal and run:pipinstallsimple_tsvLicenseThis project is licensed under the MIT License.LinksDownloadSourceCreditsAuthor: Johannes ProgrammingEmail:johannes-programming@posteo.orgThank you for using simple_tsv!
Package: simpletweetlib
simple tweet libraryA quite simple and easy to use twitter library.How To Installpip install simpletweetlibHow To UseSample Codefromsimpletweetlib.tweetimportTweetconsumer_key="foobar"consumer_secret="foobar"access_token="foobar"access_token_secret="foobar"t=Tweet(consumer_key,consumer_secret,access_token,access_token_secret)t.tweet("Hello World!")What is consumer_key, consumer_secret, access_token_secret and access_token?Following thetwitter document.Creating an app in the website.Getting 4 keys inKeys and Tokenpages of the website.Replacing "foobar" in sample code to the keys.
Package: simple-twitch-chat-listener
simple-twitch-chat-listenerSeeing the pure lack of twitch chat bots that are only meant for listening in and not requiring oauth tokens I decided to make my own.This package is only meant forTwitchchat and is only capable ofreceivingmessages,not sendingPros:Does not require a oauth tokenExtremely simple setupChat listener runs on a separate threadCons:Not much experience with edge case error handlingInstallationpipinstall-Usimple-twitch-chat-listenerExample usagefromsimple_twitch_chat_listenerimportTwitchChatListenerdefmy_message_handler(username,message):print(f"{username}:{message}")tc=TwitchChatListener("goldenbeaster")tc.set_client_message_handler(my_message_handler)tc.start()# Place your code hereimporttimetime.sleep(10)# endof place your code here# once you want to stop the servicetc.stop()Other examples can be foundhereStuff that still needs to be doneactual RECONNECT handlingnetwork connectivity testing
Package: simpletwitter
This package can be used to make your own twitter bot with less codeimport the package using pip installpip install simpletwitterPyPi Link :https://pypi.org/project/simpletwitter/Google Groups Link:https://groups.google.com/g/simpletwitterusage:from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
bot.like_tweet(hashtags) #like the twitte
bot.unlike_liked_tweets(5) #unlike the liked tweet
bot.tweet(tweetmessage) #put some tweetUsers Currently Using as of (03-10-2023):Total DownloadsMonthly DownloadsWeekly Downloads16,455279169Current Version 1.3.1Users GraphPackages usedTool NamePurposeSeleniumChrome AutomationFeature Update3 feature update added on 3rd October 2023Update 1Added function to retweetUpdate 2Added feature to like the top tweets of the particular hash tagsUpdate 3Added Tech News feature to post news on twitter accountUpdate 4Can able to post Linked in content into a tweet using AI summarizer tool from **Hugging Face.io**Code Usage of UpdatesUpdate 1from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
hashtags = ["#reactjs", "abipravi"]
bot.only_like_top_tweet(hashtags)Update 2from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
hashtags = ["#reactjs", "abipravi"]
bot.retweet(hashtags)Update 3Post Tech News fromNEWSAPIfrom simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
no_of_news_to_be_posted = 1
# if no of tweets to be posted ==> 1 {Post 12 news} it will post '12' news for value =>> 1 <<=
x = bot.post_tech_news(no_of_news_to_be_posted)Update 4PostLinkedInContent from URL into TwitterTweetfrom simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
bot.postLinkedIn(Url)FeaturesScrape Data for analyticsTech News post in TwitterTwitter APi also using Twitter API keysCreate a web Admin Dashboard for the Twitter AutomationLinked in to Twitter Post
Package: simple-type-checker
simple_type_checkerA small extendable python type checker libraryBasic UsageChecking a type:fromsimple_type_checkimporttype_checkasserttype_check("A string",str)As a decorator:fromsimple_type_checkimporttype_check,TypeCheckFailed@type_check.returnsdefid_(x)->int:returnx_=id_(1)# Passestry:_=id_("string")# RaisesexceptTypeCheckFailedase:passDecorators for aruments exist as well:type_check.args.
Both can be done at once withtype_check.decorate.With custom typesBasic types whereisinstanceis sufficient:fromsimple_type_checkimportTypeCheckerclassFoo:passtype_check=TypeChecker(Foo)asserttype_check(Foo(),Foo)Special type checking logic desired:fromsimple_type_checkimportTopLevelCheck,TypeCheckerBar=list[int]|list["Bar"]classBarCheck(TopLevelCheck):def__call__(self,obj,type_)->bool:returntype_=="Bar"andself._recurse(obj,Bar)type_check=TypeChecker(advanced=[BarCheck])type_check([1,[2],[[3]]],Bar)# Should passThis use case is useful for container types that take arguments, for example.
Package: simpleubjson
Simple UBJSON in Python=======================`UBJSON`_ is the universally compatible format specification for binary `JSON`_.It's pretty and simple data format and `simpleubjson`_ aims to be also the same... code-block:: python>>> import simpleubjson>>> ubjdata = simpleubjson.encode({'hello': 'world', 'тест': [1, 2, 3]})>>> ubjdatab'{Si\x08\xd1\x82\xd0\xb5\xd1\x81\xd1\x82[i\x01i\x02i\x03]SU\x05helloSi\x05world}':func:`simpleubjson.encode` function transforms Python objects into UBJSON`binary` string data. To decode it back to Python objects use:func:`simpleubjson.decode` function:.. code-block:: python>>> simpleubjson.decode(ubjdata){'hello': 'world', 'тест': [1, 2, 3]}Moreover, you may also introspect UBJSON data via :func:`simpleubjson.pprint`function:.. code-block:: python>>> simpleubjson.pprint(ubjdata)[{][S] [i] [5] [hello][S] [i] [5] [world][S] [i] [8] [тест][[][i] [1][i] [2][i] [3][]][}]This representation is a bit more human friendly than traditional hexview anddesigned specially for UBJSON format.Currently `simpleubjson` follows Draft-9 specification by default, but youmay change specification version by passing ``spec="draft-N"`` argument for:func:`~simpleubjson.decode`, :func:`~simpleubjson.encode` and:func:`~simpleubjson.pprint` functions... _UBJSON: http://ubjson.org/.. _JSON: http://json.org/.. _simpleubjson: http://code.google.com/p/simpleubjson/Changes=======0.7.0 (2014-06-21)------------------- Add support of UINT8 type for Draft-9 spec;- Add support of CHAR type for Draft-9 spec;- Optimize strings encoding with new types;- Switch to BSD 2 clause license;0.6.1 (2013-04-29)------------------- Fix compatibility with Python 3.x;- Force binary strings have utf-8 charset on encoding;- Improve UBJSON decoding performance;0.6.0 (2013-04-10)------------------- Project refactoring and code cleanup;- Raise overall performance for 100-400% times depending on test case;- Update Draft-9 support to RC state: handle new containers markers;0.5.0 (2012-07-07)------------------- Fix encoding of unsized objects;- Fix pprinting containers with NoOp markers;- Fix markers of integers values for Draft-9 spec;0.4.0 (2012-06-29)------------------- Encode `set` and `frozenset` types;- Experimental implementation of Draft-9 specification;- Fix encoding of `dict` iterators;- Support Python 3.x;0.3.0 (2012-03-03)------------------- Add `simpleubjson.pprint` function to dump UBJSON data using ``[ ]``-notation;- Allow decode standalone NoOp values;- Encode `inf` and `-inf` values as `null`;- Remove support of custom markers and handlers;- Wrap `HUGE` values with `Decimal` class and encode `Decimal` instances backto `HUGE`;0.2.0 (2011-11-30)------------------- Allow decoder produce NoOp values;- Allow to specify custom decoding/encoding handlers;- Fix float/double values handling;0.1.0 (2011-10-13)------------------- First version with support Draft-8 specification.
Package: simple-udp-proxy
Github Page:https://github.com/masoudir/simple_udp_proxyIntroduction to simple_udp_proxyThis is a python implementation of the simple_udp_proxy. This code, automatically creates a bidirectional bridge between new
udp connections to a unique udp port by creating a proxy for each new connection.
The total structure of this proxy is illustrated as below:This package could be used for every UDP nodes and also every nodes using MAVLink protocol such as MAVProxy,
MissionPlanner, Ardupilot-SITL, PX4-SITL and etc. This package will be very useful for devices that use one port number
for UDP broadcasting, so that you can use different client UDP applications for receiving their UDP packets separately.InstallationInstalling via pipJust follow these codes:pipinstall-Usimple_udp_proxyorpip3install-Usimple_udp_proxyThe -U parameter allow to update simple_udp_proxy version if it is already installed.Installing via gitJust clone the project:gitclonehttps://github.com/masoudir/simple_udp_proxyHow to useCommandspython3 simple-udp-proxy.py -h- Shows available commands for help.python3 simple-udp-proxy.py --i [INPUT_PORT]- Input UDP port (default = 14550).python3 simple-udp-proxy.py --o [OUTPUT_PORT]- Initial UDP output port (Other UDP ports start from this UDP port with the incremental of 1) (default = 1220).python3 simple-udp-proxy.py --verbose [VERBOSE]- D: Disable Verbose, 1: Enable Verbose (Make all output logs visible).python3 simple-udp-proxy.py --log [LOG]- 0: Disable Logging, 1: Enable Logging.Example:python3 simple-udp-proxy.py --i 14520 --o 4520 --log 1 -- verbose 1- Creates a proxy in 14520 UDP port and forwards to ports starting from 4520The structure would be as follow:client node with port 5678   <---> PROXY in 14520 port   <---> APPLICATION#1 host access port with 4520 port
client node with port 7852   <---> PROXY in 14520 port   <---> APPLICATION#2 host access port with 4521 port
...
...
...Python codeJust follow "test/test.py" as below:python3 test/test.pyThis code creates a new UDP port while a new incoming UDP port wants to send data to the host UDP port which is set on
14550.The code is as below:from simple_udp_proxy import simple_udp_proxy as px
px.is_verbose = True
px.is_log_enabled = True
proxy = px.UdpProxy(in_port=14550, out_port=1220, buf_size=1024)
while True:
    passLicenseThe source code generated by Masoud Iranmehr (@masoudir) is available under the permissive MIT License.
Package: simpleuid
SimpleUID (unique ID) for PythonA simple and intuitive Python package for generating unique IDs.This package helps developers by bringing them some "quality of life" features. Stop rewriting the same piece of code in every project.Table of ContentsInstallationInstall using PIPUsageSupportMaintainerContibrutingLicenseInstallationInstall using PIPpip install simpleUIDNote thatpiprefers to the Python 3 package manager. In an environment where Python 2 is also present the correct command may bepip3.UsageFor a more detailed explaination, visit thedocumentation.Import simpleUID:import simpleUIDCreate a random string:simpleUID.string()You can specify the string length and a prefix:simpleUID.string(length=20, prefix='start')All functions are:FunctionFunctionalitystringGenerates a random string.integerGenerates a random integer.passwordGenerates an alphanumeric password with at least one lowercase character, at least one uppercase character, and at least three digits.bytesGenerates a random byte string.hexGenerates a random byte string.urlsafeGenerates a random byte string.varGenerates a string based on an array of variables.databaseGenerates a random ID using thestringorintegerfunctions, then it checks it's uniqueness against database.Keep in mind that the prefix for theintegerfunction should be of typeint.CursorCurrently only SQL cursor objects are supported. If you encounter issues with other cursor objects, pleasecreate an issueon GitHub.
The cursor argument should be a dictionairy structured like the example below:#### SQL example
cursor = {
    "cursor": cursor,
    "table": "table_name",
    "column": "column_name"
}

#### MongoDB example
cursor = {
    "cursor": mongo_client["db"],
    "column": "column_name",
    "type": "mongo"
}Max LengthThe default maximum length has been set to 1000. This is to prevent unnecessary use of hardware resources. If for some reason this should be ignored, setignore_max_lengthtoTrue.SupportIf you found a problem with the software, pleasecreate an issueon GitHub.MaintainerThis project is maintained byWibo Kuipers.ContributingYour contributions are highly appreciated. Pleasecreate a pull requeston GitHub. Bigger changes need to be discussed with the development team via theissues section at GitHubfirst.LicenseMIT LICENSE