Saravanan666/pypi-org huggingface dataset:
Package: nationalparks-v1
Author: Bengusu Ozcannationalparks_v1An API package using US National Park Services API to gather data about US National Parks, such as which parks to go for certain activities, how far a park from a location or the latest alerts in that park. May require user to obatin a free API key from US National Parks website.Some functions and testing will depend on US National Parks API key. You may obtain one for free viahttps://www.nps.gov/subjects/developer/get-started.htmTestingDataInstallation$pipinstallnationalparks_v1UsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensenationalparks_v1was created by Bengusu Ozcan. It is licensed under the terms of the MIT license.Creditsnationalparks_v1was created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: nations-glory
NationsGlory.pyA python library that retrieves information from nationsglory.fr, just for you!Authors@galitan-devFeaturesGET player informationsGET country informationsInstallationInstall nations-glory with pippipinstallnations-gloryUsage/Examplesfromnations_gloryimportServersfromnations_glory.playersimportPlayerfromnations_glory.countriesimportCountryplayer=Player('Just_Steel',Servers.PINK)print("\nPlayer:",player.name)print("Country:",player.country.name)print("Power:",player.power)print("Time Played:",str(player.time_played)+'ms')country=Country('EmpireBulgare',Servers.PINK)# country = player.country.fetch()print("\nCountry:",country.name)print("Leader:",country.leader)print("Claims",country.claims)print("Power:",player.power)# OUTPUT:## Player: Just_Steel# Country: EmpireBulgare# Power: 61# Time Played: 7334691000ms## Country: EmpireBulgare# Leader: Firzonyx# Claims 521# Power: 61DependenciesLicenseMIT
Package: nationstatescards
🚧 This is still a work in progress 🚧InstallationTODO : PyPI package
You'll need the S1 and S2 card dumps.
You'll have to place them inres.Developement1. Create a virtualenvironment and activate it
2. `pip install -r requirements.txt`
3. `python3 -m pip install --upgrade build` to install the build tool
4. `python3 -m build` to build the package
Package: native-builder
NativeBuilderNativeBuilder is an easy-to-use and cross-platform tool for building native applications leveraging the power of VCPkg and CMake.Currently, NativeBuilder is internal only and not ready for production use. It is made public for reproducing native binaries referenced in our Julia+C/C++ projects and creating templates for technical tests.Usagenbinit# init projectnbinstallyoga# install dependenciesnbremoveraylib# remove dependenciesnbbuild--main# create the executable under build/nbbuild# create the library under build/Note that NativeBuilder is still in development, and is not responsible for dependency management.TroubleshootingWhen changingalways_mingw, later build might get failed. This is due to your IDE (such as VSCode with C/CPP extensions) is usingvcpkg/buildtreeswhich prevents NativeBuilder from rebuilding the dependencies. To fix this, you might close your IDE, callnb buildagain and reopen your C/C++ IDE.To support C/C++ intellisense in VSCode, install CMake Tools, and create ac_cpp_properties.jsonin the.vscodedirectory:{"configurations":[{"compileCommands":"${workspaceFolder}/build/compile_commands.json","configurationProvider":"ms-vscode.cmake-tools"}],"version":4}
Package: nativecap
nativecapTake a screenshot with Python, natively, using a method based onthat answer.Setuppip install nativecapUsageimportnativecap# outputs an array containing pixel colors in the BGRA formatbuffer=nativecap.capture(top_left_x,top_left_y,width,height)Exampleimportcv2importnumpyasnpimportnativecapimportplatformx=0y=0width=640height=480buffer=nativecap.capture(x,y,width,height)image=np.ctypeslib.as_array(buffer)image=image.reshape(width,height,4)cv2.imshow("image",image)cv2.waitKey(0)
Package: nativecommon
nativecommonCommon code of projects with native partsInstallThese are generic installation instructions.To use, permanentlyThe quickest way to get started is to install the current release from PyPI:pip2 install --user nativecommonTo use, temporarilyIf you prefer to keep .local clean, install to a virtualenv:python2 -m venv venvname
venvname/bin/pip install nativecommon
. venvname/bin/activateTo developFirst clone the repo using HTTP or SSH:git clone https://github.com/combatopera/nativecommon.git
git clone git@github.com:combatopera/nativecommon.gitNow use pyven's pipify to create a setup.py, which pip can then use to install the project editably:python2 -m venv pyvenvenv
pyvenvenv/bin/pip install pyven
pyvenvenv/bin/pipify nativecommon

python2 -m venv venvname
venvname/bin/pip install -e nativecommon
. venvname/bin/activate
Package: native-web-app
native-web-appA drop-in replacement for Python'swebbrowser.open()that opens a native browser window without browser controls. Build Electron-style apps without shipping Electron!importnative_web_appurl="http://localhost:8000/"try:native_web_app.open(url)exceptException:print(f"No web browser found. Please open a browser and point it to{url}.")DemoThere is anexample appin the repository.API DocumentationThis module exposes a singleopenfunction:defopen(url:str,try_app_mode:bool=True)->None:"""Open a URL in a modern browser.In contrast to webbrowser.open, this method gracefully degradesto a no-op on headless servers, where webbrowser.open would otherwise open lynx.Args:url:The URL to open, e.g. http://localhost:1234.try_app_mode:If True, try to open the URL in "app mode", i.e. without browser controls.This allows for Electron-like apps without having to deal with Electron.If no suitable browser is found, it gracefully falls back to a regular browser instance.Raises:RuntimeError, if no suitable browser is found.OSError, if the browser executable could not be executed.For robustness, implementors should catch any Exception and take that as a signal that opening the URL failed."""CompatibilityOSBrowserStatus (✅ app mode, ☑️ regular browser)Windows 10 (2004)Google Chrome 84✅Windows 10 (2004)Microsoft Edge 84✅Windows 10 (2004)Windows Subsystem for Linux☑️Windows 10 (2004)Default Browser☑️Ubuntu 20.04Google Chrome 84✅Ubuntu 20.04Default Browser☑️macOS CatalinaGoogle Chrome 84✅macOS CatalinaDefault Browser☑️Firefox implemented app mode ("site-specific browser functionality") in 2020,
but enabled it only forhttps://URLs. This means itdoes not work withhttp://localhost:1234orfile://URLs.
This makes it unsuitable for inclusion in native_web_app.ChangelogThis project follows semantic versioning.native_web_app 1.0.2 (2020-08-12)Add support for Python 3.5 and 3.6.native_web_app 1.0.1 (2020-08-12)Enforce browsers to start in background. This fixes
compatibility with Microsoft Edge on Windows 10.Extend documentation on compatibility.native_web_app 1.0.0 (2020-08-11)Initial ReleaseFAQHow do I detect when the browser window is closed?Monitoring the spawned browser process does not work reliably across platforms.
We recommend you use JavaScript to notify your backend:window.addEventListener('unload',function(){navigator.sendBeacon("/shutdown");},false);
Package: natlas-libnmap
natlas-libnmapCode statusSummaryThis repo originated as a fork ofpython-libnmapafter several months of unresponsiveness regarding fixing an XML parsing vulnerability. It has been simplified to focus purely on parsing nmap results and doing diffs on pairs of scans. The backend functionality has been removed, as has the nmap process management functionality. By removing this extraneous functionality, we can focus on making the parsing functionality the best at what it does without worrying about updating support for various backends.Use caseslibnmap is a python library enabling python developers to manipulate nmap data.libnmap is what you were looking for if you need to implement the following:manipulate nmap scans results to do reportingcompare and diff nmap scans to generate graphsbatch process scan reportsThe above uses cases will be easy to implement with the help of the libnmap modules.libnmap modulesThe lib currently offers the following modules:parse: enables you to parse nmap XML reports from a file, a string,...report: enables you to manipulate a parsed scan result and de/serialize scan results in a json formatdiff: enables you to see what changed between two scanscommon: contains basic nmap objects like NmapHost and NmapService. It is to note that each object can be "diff()ed" with another similar object.DocumentationAll the documentation is available onread the docs. This documentation contains small code samples that you directly reuse.Dependencieslibnmap dependencies are captured inPipfile.Python SupportThe old version of libnmap supported many versions of python going back to 2.7. Since python 2.7 is no longer supported, this library will only support Python >= 3.6.Python 3.6Python 3.7Python 3.8InstallThis version of libnmap has not been packaged for distribution on pypi as of yet. In the meantime, you can install it with pip directly from the git repo like so:pipinstallgit+https://github.com/natlas/natlas-libnmapor via git:gitclonehttps://github.com/natlas/natlas-libnmap.gitcdnatlas-libnmap
pythonsetup.pyinstallExamplesSome codes samples are available in the examples directory or in thedocumentation.ContributorsRonald "savon-noir" Bister for the original work on python-libnmap.
Package: natlibpy
natlibpyLinksPyPIGitHubDevelopmentSet up a virtual environment in PyCharm so you aren't using the global Python env. This will allow you to avoid
conflicts of dependencies.pip install twine wheelDeploymentUpdate version number insetup.pypython setup.py sdist bdist_wheelCheck that expected files are included:tar tzf dist/pyminder-{ version }.tar.gztwine check dist/*Test publish:twine upload --repository-url https://test.pypi.org/legacy/ dist/*Publish:twine upload dist/*InformationHow to Publish an Open-Source Python Package to PyPIBuilding and Distributing Packages with Setuptools
Package: natlinkcore
NatlinkcoreMore InformationPlease refer to the README file in the project repositoryhttps://github.com/dictation-toolbox/natlinkfor more information about natlink.Installing from PyPiYou can install fromThe Python Package Index (PyPI)withpy -m pip install natlinkcoreNote that natlinkcore will not install if you have not installed Natlink first.  Natlink is installed through running an installer.Test FrameworkTests use thepytestframework.For developers, if you are developing on the project, please add tests for any new features or bug
fixes.Mandy Python IDEs such asVisual Studio Codehave build in support for test frameworks and make it easy to run and debug pytest.   seeVisual Studio Code for testing.Building the Python Package Locallypy -m buildto build the Python package locally.Publishing to PyPi is done through thetrusted publisher mechanismwhen a release is created on github using github actions.Publishing checklistBefore you bump the version number ininit.py and publish:Check the pyroject.toml file for package dependancies.  Do you need a specfic or newer version of
a dependancy such as dtactions?  Then add or update the version # requirement in dtactions.Debugging InstructionsRead the detailed developer instructions for setting up the debugger.  You can look in this projects tree until
documentation/developers.rst.
Package: nato
One letter variables thoughtlessly strewed about a codebase annoyed a colleague and an idle thought became this poorly named project.Uses the AST (and some cool projects likeAstorandcodegen.py) to quickly mangle / transform your code.Why not just rename the variable and be done with it?Excellent question!  It’s fun to play at the A.S.T.!Example usage..:$ python -m nato somefile.py > one_letter_variable_free.py
Package: nato-cli
nato-cliAllows quick translation of a string to its letters in NATO form.Installationpip install nato-cliUsage> nato Sampath
s       Sierra
a       Alpha
m       Mike
p       Papa
a       Alpha
t       Tango
h       HotelAlternatively, with no arguments:> nato
Enter a String to be converted into the NATO Alphabet, or type exit:
Sampath
s       Sierra
a       Alpha
m       Mike
p       Papa
a       Alpha
t       Tango
h       Hotel
Enter a String to be converted into the NATO Alphabet, or type exit:
exitBy default, running the program will prompt for a value (in console), which will then be spelled out in NATO letters. You can also pass an argument and it will spell it out automatically, then resume prompting for values. Typeexitto exit.I made this package because I wanted a quick way to convert something to the NATO alphabet when I was on the phone, and time was of the essence. If you're on Windows, the quickest way to run this is by opening the Run Dialog, (Win+R) and typing innato phrase, where it will display your phrase in a new window. That's also the reason why it constantly prompts for a new string - unless the program is waiting for user input, anything launched from the Run dialog will close as soon as execution is finished.
Package: nato-spell
nato-spellnato-spellis a Python package that can be used to spell a string / file with the well-known NATO phonetic alphabet.InstallationSystem requirements:aplay(ALSA command line player - it may already be installed on your computer)python >= 3Usepipor pipx to installnato-spell.pipinstallnato-spellUsageMinimal examplenato-spell SPELLMESpelling from stdinecho SPELLME | nato-spell -Increase the delay between characters (unit is seconds, default is 0)nato-spell SPELLME --char-delay=1Use a different sound directorynato-spell SPELLME --sound-dir=/home/me/my-sound-dirAnd finally, an example, where we use them all together.echo SPELLME | nato-spell - --sound-dir=/home/me/my-sound-dir --char-delay=1Sound assetsThese sounds were published by Tim Kahn and hosted on freesound.orgTim Kahn (https://freesound.org/people/tim.kahn/)Thank you Amy Gedgaudas and Tim Kahn for all these sounds.They're licensed under:http://creativecommons.org/licenses/by/3.0/ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: natsort-rs
natsort-rs🚀 A blazing fast natural sorting library for Python written in Rust 🦀Installationpip install natsort-rsUsagefromnatsort_rsimportnatsortSort a list of stringsitems=['item 1','item 10','item 3']print(natsort(items))# ['item 1', 'item 3', 'item 10']Sort case insensitivelyitems=['Item 1','Item 3','item 2']print(natsort(items,ignore_case=True))# ['Item 1', 'item 2', 'Item 3']Sort complex objects based on propertyitems=[{'name':'item 1','id':1},{'name':'item 3','id':3},{'name':'item 2','id':2}]print(natsort(items,key=lambdad:d['name']))# [{'name': 'item 1', 'id': 1}, {'name': 'item 2', 'id': 2}, {'name': 'item 3', 'id': 3}]Return the sorting indicesThis can be helpful if you only want to get the sorted indices returned, that makes the performance-critical part
useful for custom sorting use cases:items=['item 1','item 10','item 3']print(natsort(items,return_indices=True))# [0, 2, 1]BenchmarkNo. of itemsDuration natsort [s]Duration natsort-rs [s]Relative speedup100.000060.0000016.81000.000940.0000244.310000.002810.0002212.7100000.028350.0026210.81000000.297120.033348.910000003.312070.453337.3Executebenchmark.pyto reproduce the results.CreditsThis Python module is build on top of thenatordcrate and inspired bynatsort.LicenseMIT License
Package: natspy-lock
natspy-locknatspy-lockis a distributed lock library using nats.Table of ContentsInstallationExampleLicenseInstallationpip install natspy-lockExampleimportnatsfromnatspy_lockimportNatsLockasyncdefmain():nc=awaitnats.connect("nats://127.0.0.1:4222")awaitNatsLock.init(nc.jetstream(),"test_lock",60)asyncwithNatsLock.get_lock("test_lock",1):#     do somethingpassawaitnc.drain()Licensenatspy-lockis distributed under the terms of theMITlicense.
Package: nats-python
nats-pythonPython client for NATS messaging system.This project is a replacement for abandonedpynats.nats-pythonsupports only Python 3.6+ and fully covered with typings.Go to theasyncio-natsproject, if you're looking forasyncioimplementation.Installation$pipinstallnats-pythonUsagefrompynatsimportNATSClientwithNATSClient()asclient:client.publish("test-subject",payload=b"test-payload")ContributingTo work on thenats-pythoncodebase, you'll want to clone the project locally and install the required dependencies viapoetry:$gitclonegit@github.com:Gr1N/nats-python.git
$makeinstallTo run tests and linters use command below:$makelint&&maketestIf you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:$makelint-blackLicensenats-pythonis licensed under the MIT license. See the license file for details.
Package: nats-py-worker
NATS WorkerAn opinionated utility for usingNATSas a worker queue with NATS.py.Example# pip install nats-py-workerfromnats_workerimportWorkerfromnats.js.apiimportStreamConfig,KeyValueConfigworker=Worker(name="demo")asyncdefinit_nats(connection):connection.jetstream().add_stream(newStreamConfig(name="events",subjects=["inbox.*","outbox.*"]))connection.jetstream().create_key_value(config=KeyValueConfig(bucket="state"))@worker.background_consumer(subject="inbox.*")asyncdefwatch_incoming(msg):...@worker.background_state_machine(subject="inbox.*",bucket="state")asyncdefnext_state(kv,msg):...awaitworker.publish_msg(subject=outbox,payload=side_effect)...returnnew_stateif__name__=='__main__':worker.start_as_app()Installingpipinstallnats-py-workerDevelopmentpython3-mvenv.venvsource.venv/bin/activate
pipinstall-rrequirements.txtThe gitlab-ci.yml is currently setup to push to PyPi when merged to main. Make sure you have updated the version other wise it will fail.LicenseUnless otherwise noted, the NATS Worker source files are distributed under
the MIT license found in the LICENSE file.
Package: nats-request-asap
nats_request_asapPython function to return one or multiple responses to a NATS request as soon as possible.Documentationnats-request-asap.readthedocs.ioInstallationpip install nats_request_asapUsageOne responseReturn a single NATSMsg.>>> import nats_request_asap
>>> nats_request_asap.req_asap(z, b'{"nodes": ["af9c"]}', timeout=5)
<Msg: subject='_INBOX.tdSY0nNLoa9bYPqw9moCwC' reply='' data='{"initial_...'>Multiple responsesReturn a list of NATSMsgs.>>> nats_request_asap.req_asap(z, b'{"nodes": "all"}', expected=3, timeout=5)
[<Msg: subject='_INBOX.tdSY0nNLoa9bmNqw9moCwC' reply='' data='{"error": ...'>,
 <Msg: subject='_INBOX.tdSY0nNLoa9bmNqw9moCwC' reply='' data='{"initial_...'>,
 <Msg: subject='_INBOX.tdSY0nNLoa9bmNqw9moCwC' reply='' data='{"initial_...'>]LicenseThis project is under the MIT License. SeeLICENSE.txt.
Package: nats-scan-wrapper
from scanner_api.wrappers import scanner_wrapperDefine the worker function which takes two argumentw (source, data).source - infromation about publisher (e.g. nmap.reporter.masscan - this can catch only in ‘nmap.**’)
data - dict with JSON data for scanner, which NATS scheduler sendworker returns a list with data to be sent to next scanner or reporter. (each element of list will be sent as separate message)You can redefine log format according logging module.def worker(source, data, meta):result = []
result = processing…(data)
logging.info(“i do work”)
logging.warning(“i warn you”)
logging.error(“i made a mistake”)
return resultMake a wrapper with define scanner name. The data will be collected from NATS by this name. (e.g. name.***.*** or name).
Also name its a queue name.Define NATS host addr.wrapper = scanner_wrapper(nats=[“nats://127.0.0.1:4222”],
name=”reporter”)Run by passing an argument worker function. This is blocking call!wrapper.run(worker)LOG FORMAT:
Connected to nats.
Started module named ‘{name}’
Received from ‘{subject}’: {data}
Starting ‘{name}’
Result: {result} n Was sent to ‘{pipeline}’Here:{name} - scanner name
{subject} - queue name
{data} - json from NATS
{result} - out data from worker function
{pipeline} - new addr in NATS queue
Package: natsulang
Natsulang text processing languageThis is a small text processing language based on Python 3. It is now being used in a software called CJCMCG.ExampleRecently, a Chinese book called <平安经> is hot on the Internet. All sentences in this book is in the format of**平安. The most famous paragraph translated in English is like this:Born safe. One month safe. 100 days safe. 1 year old safe. 2 years old safe. 3 years old safe. 4 years old safe. 5 years
old safe. 6 years old safe. 7 years old safe. 8 years old safe. 9 years old safe. 10 years old safe...In Chinese, the paragraph is:初生平安，满月平安，百天平安，1岁平安，2岁平安，3岁平安，4岁平安，5岁平安，6岁平安，7岁平安，8岁平安，9岁平安，10岁平安...This paragraph is so tidy, that it can be generated with programs. Using natsulang, you can generate this paragraph like below:初生平安，满月平安，百天平安{s="";for(i:range(1,121))(s+="，"+str(i)+"岁平安");s}。Maybe you are headache with your math proofs. This is not a problem in Natsulang. Just use the following program:Input what you want to proof: {name=input();}
Proof:

Proposition A: {name}
Proposition B: Proposition C is false.
Proposition C: At lease one proposition between A and B is true.

Lemma 1: Proposition C is true

Proof: If C is false, then A and B is both false, and B is false, then C is true. This contradicts.

Now start proof:

If A is false, since C is true, B is true, and C is false. This contradicts. So A is true, i.e., {name}

Q.E.DCan you find how this program works?Run NatsulangFirst, you need to download Python 3 and install. If you're using Windows, you need to add Python 3 to Path.Then, typepip install natsulangin the terminal, and wait for it complete.Finally, typenatsulangin the terminal. If no error occurs, the installation is success.If you need to upgrade natsulang, please usepip install --upgrade natsulang.LearnYou can learn Natsulanghere.English tutorials are preparing, please wait for some time.
Package: natto
Intended as a debug tool, natto returns a representation of python data structures as pretty HTML tables.Author:Thomas Schüßler <vindolin@gmail.com>AboutTake a look athttp://natto.idontblog.de/to get an idea what the output looks like.ScreenshotRequirementspython >= 2.5modern webbrowser (IE works but is ugly)UsageUsage example:from natto import natto
natto_html = natto(some_data_structure, with_css=True)TODOlots of things… this is alphaBazaar Repohttps://launchpad.net/pynatto