Saravanan666/pypi-org huggingface dataset:
Package: neterr
neterrGroupings of exceptions for working with network requests.When making network requests in python there are a number of possible exceptions to due network issues. These are often a temporarily problem that should be prioritized separately from a bug in code. As a result handling them with a bare except is not safe but knowing exactly what exceptions to handle can be difficult.InstallationpipinstallneterrError Groupsneterr provides the exception groups SocketErrors, StrictHTTPErrors, AmbiguousHTTPErrors and HTTPErrors.Usage Exampleimporturllib.requestfromneterrimportHTTPErrorstry:urllib.request.urlopen('http://127.0.0.1').read()exceptHTTPErrors:print('caught!')SocketErrorsSocketErrors contains exceptions that may be raised while working with the socket module.StrictHTTPErrorsStrictHTTPErrors contains exceptions that may be raised while working with the http module and some common modules that use it (such as urllib and requests). This grouping only contains exceptions that are clearly not the result of code. They may be caused by an infrastructure or configuration problem and are often temporary.StrictHTTPErrors is a superset of SocketErrors.AmbiguousHTTPErrorsAmbiguousHTTPErrors contains exceptions that may be raised while working with the http module and some common modules that use it (such as urllib and requests). This grouping contains exceptions that may or may not be caused by code. The most common reason for this ambiguity is that they are the result of an HTTP response with a 4xx or 5xx status. It is recommended to handle 4xx and 5xx responses separately. 4xx responses are often caused by unvalidated user input or another code issue. 5xx responses are often caused by temporarily unavailability in a dependent service.HTTPErrorsStrictHTTPErrors contains exceptions that may be raised while working with the http module and some common modules that use it (such as urllib and requests).HTTPErrors is a superset of StrictHTTPErrors and AmbiguousHTTPErrors.Combining ErrorsException groups provided by neterr can be combined with other exceptions using the add operator.fromneterrimportHTTPErrorstry:raiseMyException()exceptHTTPErrors+MyException:print('caught!')try:raiseMyException()exceptHTTPErrors+(MyException,MyOtherException):print('caught!')try:raiseMyException()exceptHTTPErrors+[MyException,MyOtherException]:print('caught!')VersioningThis package strictly followssemantic versioning.
Package: neterraproxy
NeterraProxyThis is a Python version of theneterra proxyjava app written by @sgloutnikov.What?NeterraProxy is an on-demand m3u8 playlist/playback daemon for Neterra.tv, running on Python (2.7.x).Why?Have the freedom to watch on your desired IPTV player or TV (Perfect Player, Kodi IPTV Simple, Android Live Channels, GSE Smart IPTV Player, etc). Play links issued by Neterra expire after 12 hours to prevent abuse. Traditional playlist generators need to be run again in order to generate new links. This is not the case for NeterraProxy.How?NeterraProxy generates a specialized playlist that points to itself rather than Neterra. When NeterraProxy receives a playback request it determines the context of the request and responds with a 301 redirect to a valid corresponding Neterra play link. It automatically re-authenticates if the session has expired.Electronic Program Guide (EPG)The application has a built-in scheduler that downloads an XMLTV file with the program guides for the most of the offered by Neterra.tv channels. The scheduler runs every 4 hours. Please note that the application does not perform the download on start - you need to keep it running for 4 hours. The xmltv file is downloaded in the specified data directory (see the section Instructions).InstructionsInstall the Python packagepip install neterraproxy.Start the application withpython -m neterraproxyyour_nettera_usernameyour_nettera_passwordthe_proxy_data_directoryActive subscription fornettera.tvis required for the provided above user.The script data directory is used to store the proxy log file and the xmltv epg file.Leave the proxy application running in the terminal.Ctrl + Cwill terminate NeterraProxy.Use the following URLs to connect NeterraProxy with your favorite IPTV player:Playlist URL:http://localhost:8080/playlist.m3u8EPG URL:http://localhost:8080/epg.xmlRun as Linux ServiceInstall the package as per the instruction aboveDownload the netteraproxy.service unit file fromhereEdit the file and provide your username, password and data directory in the lineEnvironment='ARGUMENTS=-m neterraproxyyour_neterra_usernameyour_neterra_passwordthe_proxy_data_directory'Copy the unit file in/lib/systemd/systemStart the service withsudo systemctl start neterraproxy.serviceCheck the status withsudo systemctl status neterraproxy.serviceand verify the proxy functions properlyEnable the service to start with the OSsudo systemctl enable neterraproxy.serviceAcknowledgements@sgloutnikov for his Java proxy and the answers during the development of the Python versionKodi Fan Forum BGfor collecting and hosting the XMLTV EPG file
Package: netext
netextNetext is a graph (network) rendering library for the terminal. It uses the awesomerichlibrary to format output and can use different layout engines to place nodes and edges. The library has a very simple API that allows to render graphs created with networkx and integrates well with applications that use rich to output to the terminal. All styling and formatting is done via attributes the nodes and edges of the networkx graph data structures using special attributes keys.The library is in its early stages and has currently no emphasis on performance, so please do not try to render large graphs with it. While it has been released expect some breaking API changes in the future. Node layout is currently provided by thegrandalflibrary.
Package: netfile
Hello World!netfile is a small .NET executable binary parser. It is capable of reading in
a .NET executable binary (like a .dll) and parsing the metadata structures
in-memory to make programmatic access to this information possible.Why?I wanted to automate the extraction of resources from "compiled" .NET assets,
and doing it from first principles was a learning exercise.Notable (Known) Bugs:Signature parsing is very rudimentary and incomplete,
so it is not done by default; you can call the stub using
Field.parse().Notable Missing Features:Only the TypeDef, Field, ClassLayout and FieldRVA tables are interpreted
into right objects right now. The remaining tables are loaded simply as
collections of raw bytes.Do you intend to support this?Not really. If you find it useful and fix minor issues, I'll happily take
pull requests. If you want to do a major refactor of my hasty first draft,
I'd recommend simply forking the project instead.
Package: net-file
Net-file ranged read file access abstraction librarynet-file allows you to access files by URL the same way for different types of storage:local filesfiles served by http(s) servers like Nginxfiles on SFTP...Second major feature of net-file is ranged access. So you can download only part of file
starting from arbitrary position.APIopen_url(url:str,# File URL. For local file use file:///absolute/file/pathstart_bytes:int=None,# For ranged access - the beginning of the rangelength:int=None# For ranged access - range length)->NetFileOpens URL returningNetFileobject. To read from file usecontext manageroropen()/close()methods pair ofNetFileobject:withopen_url(url='http://test.domain/example.mp4',start_bytes=10000,length=20000,)asopen_file:content=open_file.read()whilecontent:content=open_file.read()
Package: netfilter
python-netfilter - Python modules for manipulating netfilter rules
Copyright (C) 2007-2012 Bolloré Telecom
Copyright (C) 2013-2016 Jeremy LainéAboutpython-netfilter is a set of modules for the Python programming language which
allows you to manipulate netfilter rules.LicenseThis program 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.This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.Simple examplefrom netfilter.rule import Rule,Match
from netfilter.table import Tablerule = Rule(in_interface=’eth0’,
protocol=’tcp’,
matches=[Match(‘tcp’, ‘–dport 80’)],
jump=’ACCEPT’)))table = Table(‘filter’)
table.append_rule(‘INPUT’, rule)table.delete_rule(‘INPUT’, rule)
Package: netfleece
Hello World!netfleece is a small Microsoft .NET Remoting Binary Format (MS-NRBF) parser.
It is capable of reading in a binary stream and parsing it into a generic,
json-serializable Python-native data structure.Why?Distributed .NET projects sometimes use MS-NRBF streams for
serializing and deserializing data. netfleece allows you to
investigate that data in a convenient format that's widely supported
by a number of tools.Notable Missing Features:Not every record type is currently supported. If you find examples
of files that utilize these records, please let me know and I will
amend the tool.Arrays except for single dimensional, non-offset
arrays are unimplemented.AcknowledgementThis is very loosely based onhttps://github.com/agix/NetBinaryFormatterParser, which is a Python2
project, but also features a formatter that can perform the reverse
operation.Changelogv0.1.3.1Fix empty PyPI package. Oops.v0.1.3Misc:Switch to setuptools & setup.cfgUse a module-level logger instead of a root-level oneEnsure all 'make check' tests pass.v0.1.2New:Preliminary support for single-dimension Jagged/Rectangular ArraysExpose parse() and iterparse() helpers, joining parseloop().Bugs:Fix 2.1.1.1 Char parsingFix 2.1.1.6 LengthPrefixedString error conditionsFix 2.2.2.2 StringValueWithCode asserting erroneouslyFix 2.4.3.2 ArraySingleObject not registering ObjectIdFix 2.4.3.3 ArraySinglePrimitiveFix 2.4.3.4 ArraySingleString not registering ObjectIdv0.1.1 (2019-12-21)add streamable b64 supportadd parseloop to the public APIrefactored module naming structurev0.1.0 (2019-05-16)Initial release
Package: netflex
FaPyUI framework, high performance, easy to learn, fast to code, ready for productionDocumentation:https://github.com/ForceFledgling/fapyui/tree/main/docsSource Code:https://github.com/ForceFledgling/fapyuiFaPyUIis your gateway to effortlessly crafting sleek and dynamic user interfaces in Python. Tailored for both coding maestros and beginners alike, this lightweight library empowers you to design visually stunning and responsive UIs with unparalleled ease.Key Features:Simplicity in Design: FaPyUI embraces a minimalist approach, making UI creation straightforward and enjoyable.Interactive Elements: Bring your UIs to life with interactive components that engage and captivate users.Versatility: From basic interfaces to intricate designs, FaPyUI adapts to your creative vision, offering a versatile canvas for expression.Effortless Integration: Seamlessly integrate FaPyUI into your projects with a simple installation process.InstallationpipinstallfapyuiUsagefromfapyuiimportFapyui# Create an instancefapyui_instance=Fapyui()# To be added laterTestingYou can run tests using the following command:# To be added laterContributionIf you would like to contribute, please read thecontribution guide.LicenseThis project is licensed under the MIT License - see theLICENSE filefor details.
Package: netflix
netflixA Python client for Netflix.Installationpip install netflixDocumentationNetflix IDMovie: The InternURL:https://www.netflix.com/watch/80047616Netflix ID:80047616MoviefromnetfliximportMoviemovie=Movie("80047616")print(movie.name)# 'The Intern'Attributesname:'The Intern'genre:'Comedies'description:'Harried fashion entrepreneur Jules gets a surprise boost from Ben, a 70-year-old widower who answers an ad seeking a senior intern.'image_url:'https://occ-0-2774-2773.1.nflxso.net/dnm/api/v6/6AYY37jfdO6hpXcMjf9Yu5cnmO0/AAAABW8TwHJmfYqEjUj0YK4Y2ugq-sKIN-Gi8OBaDjOh3SbRSBdbEXlmpWEpHTbrO2CLDdo7yxRl7MTm5YtYa1-71Kg1o-7o.jpg?r=2ce'metadataTVShowfromnetfliximportTVShowtv_show=TVShow("80192098")print(tv_show.name)# 'Money Heist'Attributesname:'Money Heist'genre:'TV Thrillers'description:'Eight thieves take hostages and lock themselves in the Royal Mint of Spain as a criminal mastermind manipulates the police to carry out his plan.'image_url:'https://occ-0-2774-2773.1.nflxso.net/dnm/api/v6/6AYY37jfdO6hpXcMjf9Yu5cnmO0/AAAABRQ7vD9Tg2GJUxLlWRw85C9Ln3j_m3dMvVhpf-LAJLDg9JNVsQKRyqvwlH28uoYY_gW7ROp1CI1PYdkBIlJwxpB8_VzK.jpg?r=8f1'metadataExtraFetch InstantlyDefault isTruefromnetfliximportMoviemovie=Movie("80047616",fetch_instantly=False)# Do something.movie.fetch()MetadatafromnetfliximportMoviemovie=Movie("80047616")print(movie.metadata)"""{'@context': 'http://schema.org','@type': 'Movie','url': 'https://www.netflix.com/tr-en/title/80047616','contentRating': '16+','name': 'The Intern','description': 'Harried fashion entrepreneur Jules gets a surprise boost from Ben, a 70-year-old widower who answers an ad seeking a senior intern.','genre': 'Comedies','image': 'https://occ-0-2773-2774.1.nflxso.net/dnm/api/v6/6AYY37jfdO6hpXcMjf9Yu5cnmO0/AAAABW8TwHJmfYqEjUj0YK4Y2ugq-sKIN-Gi8OBaDjOh3SbRSBdbEXlmpWEpHTbrO2CLDdo7yxRl7MTm5YtYa1-71Kg1o-7o.jpg?r=2ce','dateCreated': '2019-8-31','actors': [{'@type': 'Person','name': 'Robert De Niro'}, {'@type': 'Person','name': 'Anne Hathaway'}, {'@type': 'Person','name': 'Rene Russo'}, {'@type': 'Person','name': 'Anders Holm'}, {'@type': 'Person','name': 'JoJo Kushner'}, {'@type': 'Person','name': 'Andrew Rannells'}, {'@type': 'Person','name': 'Adam Devine'}, {'@type': 'Person','name': 'Zack Pearlman'}, {'@type': 'Person','name': 'Jason Orley'}, {'@type': 'Person','name': 'Christina Scherer'}],'creator': [],'director': [{'@type': 'Person','name': 'Nancy Meyers'}]}"""
Package: netflix_roulette
This is a simple python wrapper for theNetflix Roulette
API.InstallationPippip install netflix_rouletteFrom Sourcegit clone git@github.com:tizz98/netflix_roulette.gitcd netflix_roulettepython setup.py installUsageSimple Query>>>importnetflix_roulette>>>media=netflix_roulette.NetflixMedia('Attack on titan')>>>media<NetflixMedia(title='Attack on titan',year='None')>>>>media.show_id70299043>>>media.summaryu'For over a century, people have been living behind barricades to block out the giant Titans that threaten to destroy the human race. When a Titan destroys his hometown, young Eren Yeager becomes determined to fight back.'>>>media.is_on_netflixTrue>>>media.get_readable_mediatype()'TV Show'Query with year>>>importnetflix_roulette>>>media=netflix_roulette.NetflixMedia('The Boondocks',year=2005)>>>media<NetflixMedia(title='The Boondocks',year='2005')>>>>media.show_id70153391>>>media.summaryu'Based on the comic strip by Aaron McGruder, this satirical animated series follows the socially conscious misadventures of Huey Freeman, a preternaturally smart 10-year-old who relocates from inner-city Chicago to the suburbs.'>>>media.is_on_netflixTrue>>>media.get_readable_mediatype()'TV Show'class NetflixMediaParameterstitle: Title of the media you are searching for.year: (Optional) Year of the media you are searching for.Attributestitle: User supplied title of the media you are searching for.year: User supplied year of the media you are searching for.rating: How high the media is rated, max is 5.poster: The poster for the media, right from the Netflix CDN.mediatype: 0 means movie, 1 means TV Show. See alsoget_readable_mediatype().release_year: The media’s release date.show_cast: The cast of a given title.category: A title’s given category.summary: A plot summary.director: The name(s) of the director(s) of a given title.show_id: The Netflix id of the title.is_on_netflix: A boolean, whether or not the show is on Netflix.Methodsget_readable_mediatype(): ReturnsTV ShoworMovieinstead of1or0.is_movie(): ReturnsTrueif the media is a Movie.is_tv_show(): ReturnsTrueif the media is a TV Show.class NetflixDirectorParametersname: Name of the director you are searching for.Attributesname: User supplied name.media: List ofNetflixMediathat the person has directed.class NetflixActorParametersname: Name of the actor you are searching for.Attributesname: User supplied name.media: List ofNetflixMediathat the person has been in.
Package: netflow2json
netflow2jsonThis is a Python-based solution for collecting and analyzing Netflow V9 traffic data.InstallationYou can installnetflow2jsonusing pip:pipinstallnetflow2jsonUsageTo usenetflow2json, you can create an instance of theNetflowProcessorclass and start processing Netflow data. See theExamplessection for detailed usage examples.ConfigurationYou can configure the package by specifying theweb_port,netflow_port, andlocal_ip_rangeswhen creating aNetflowProcessorinstance.local_ip_ranges: This section is used to define local IP address ranges. The code uses these ranges to categorize Netflow traffic as "Local," "Upload," or "Download."Example:local_ip_ranges=["192.168.0.0/24", "172.16.11.0/24", "172.16.12.0/24", "172.16.13.0/24", "172.16.14.0/24", "172.16.16.0/24"]netflow_port: Specify the port (UDP) on which the code listens for incoming Netflow v9 traffic.Example:netflow_port=2055web_port: Specify the port of web accessible json results.web_port=80Examplesfromnetflow2json.analyserimportNetflowProcessorprocessor=NetflowProcessor(web_port=8080,netflow_port=2055,local_ip_ranges=['172.16.11.0/24','172.16.12.0/24','172.16.13.0/24','172.16.14.0/24','192.168.0.0/24','192.168.1.0/24'])processor.start()LicenseThis project is licensed under the MIT LicenseProject RepositoryVisit theGitHub repositoryfor the latest updates and to contribute.Bug TrackerIf you encounter any issues or want to report a bug, please visit theBug Tracker.Contact InformationFor questions or support, you can reach out to the author ath.haghpanah@outlook.com.
Package: netfoundry
NetFoundry Python ModuleThis module has a general-purpose library for using the NetFoundry API and installs the CLInfctl.User GuidePython module guideFind the Version$python3-mnetfoundry.version
v5.2.0# or$nfctlversion
v5.2.0Play the demoThis creates a demo network with your API account file namedcredentials.jsonstored in the current directory or the XDG config directory e.g.~/.config/netfoundry/. Learn how to obtain and use an API account for your NetFoundry organization inthe Authentication GuidenfctldemoCreate network snippet from demo.py#!/usr/bin/env python3importnetfoundry# user-default path is ~/.netfoundry/organization=netfoundry.Organization(credentials="credentials.json")# use some network group, default is to use the first and there's typically only onenetwork_group=netfoundry.NetworkGroup(organization)# create a networknetwork_name="BibbidiBobbidiBoo"ifnetwork_group.network_exists(network_name):# use the networknetwork=netfoundry.Network(network_group,network_name=network_name)network.wait_for_status("PROVISIONED")else:network_id=network_group.create_network(name=network_name)['id']network=netfoundry.Network(network_group,network_id=network_id)network.wait_for_status("PROVISIONED")Publish a new version of the module00:00 Welcome Pythonistas
00:50 Determine next version number
01:30 GitFlow Release Start
02:10 Project Conventional Release Branch Name in Actions Workflow
02:30 Make a Change to Patch the Module
04:00 Git Commit the Change
04:30 GitFlow Publish Release to Git Remote
05:00 Create Pull Request
05:30 GitHub Actions Checks Triggered by Pull Request
06:00 Local testing with "editable" module and TestPyPi
09:00 Complete Pull Request
09:30 GitFlow Release Finish and Push Git Tags
10:30 GitHub Create Release
12:00 Verify Published Artifacts in PyPi and Hub
12:30 PyPi Upgrade Gets New Version
13:30 Docker Run Check Version
Package: netfshare
netfshareA flask-based local network file sharing tool.Not for production environements. Use with care.Installation and useInstall thenetfsharepython package:py -m pip install netfshareNavigate to the directory that you want to share the contents of. Runnetfshareto start the sharing service:py -m netfshareThe service cam+n be accessd at<your-local-ip>:5000.Make sure your machine is discoverable in the local network and that the required firewall rules are active.Sharing settingsVisit the service website Admin interface from the machine running the service to manage the sharing settings.netfsharesupports downloading the contents (subdirectories) of your shared folder, as well as uploading clients' content to selected directories inside the shared folder.Only downloads ofwhole subdirectoriesare supported, as.ziparchives. To make files available for downalod, they must be placed inside a subdirectory of the sharedfolder, and the appropriate sharing mode must be set for this subdirectory in the Admin web interface.Currently, the supported sharing modes are:read_only: whole subdirectories of the shared folder can be downloaded as a.ziparchive.upload_only: clients can upload their data into a selected subdirectory of the shared folder. The uploaded content is placed inside a subfolder with the user's selected name. Currently, only asingle uploadby each user is allowed.Localizationnetfshare supports localization usingflask-babel.The client-facing routes of the app are translated into English and Slovenian.