Saravanan666/pypi-org huggingface dataset:
Package: nsstools
nsstoolsThis python tools has two methods that applies on nss_two_body_orbitGaia DR3solutionscovmat: for all kind of nss_solution_type, converts the correlation matrix+uncertainties to the covariance matrix of the solutioncampbell: for a NSS solution that is either astrometric Orbital* or AstroSpectroSB1, converts the Thiele-Innes orbital elements to the Campbell elements and propagates the uncertainties.
Ref: Halbwachs et al., 2022, Gaia Data Release 3. Astrometric binary star processing, Astronomy and Astrophysics, Appendix A
input: dataframe
output: dataframeA R version is availablehere.Installationwith pippip3 install --user nsstoolswith setuppython3 setup.py installUsageSee thenotebookimportpandasaspdfromnsstoolsimportNssSourcenss=pd.read_csv("tests/data/nss_two_body_orbit_sample.csv.gz")source_index=0# position of the source in the csv filesource=NssSource(nss,indice=source_index)print(source.covmat())print(source.campbell())Authors and acknowledgmentAuthors:  Nicolas Leclerc from a code by Jean-Louis Halbwachs and Carine Babusiaux.
Reference: Halbwachs et al., 2022, Gaia Data Release 3. Astrometric binary star processing, Astronomy and Astrophysics, Appendix A and B.
R version:https://gricad-gitlab.univ-grenoble-alpes.fr/ipag-public/gaia/nsstools
Package: nssurge-api
NSSurge Python API ClientPython implementation of theSurge HTTP API specclient usingaiohttp.You can use it to get/set Surge rules / policies / proxy groups, get recent requests / events and much more.This projects fully implements theSurge HTTP API spec.If you're looking for a command line tool to interact with your running Surge app, check outNSSurge CLI.NSSurge Python API ClientInstallationpipUsageDevelopSee alsoInstallationpip$ pip install nssurge-apiUsage# source: https://github.com/tddschn/nssurge-cli/blob/master/nssurge_cli/cap_commands.pyfromnssurge_cli.typesimportOnOffToggleEnumfromnssurge_apiimportSurgeAPIClientfromnssurge_api.typesimportCapabilityimportasyncioasyncdefget_set_cap(capability:Capability,on_off:OnOffToggleEnum|None=None)->bool|tuple[bool,bool]:"""Get or set a capability"""asyncwithSurgeAPIClient(*get_config())asclient:state_orig=awaitget_cap_state(client,capability)matchon_off:caseOnOffToggleEnum.on|OnOffToggleEnum.off:awaitclient.set_cap(capability,s2b(on_off))caseOnOffToggleEnum.toggle:awaitclient.set_cap(capability,notstate_orig)case_:returnstate_origstate_new=awaitget_cap_state(client,capability)returnstate_orig,state_newDevelop$ git clone https://github.com/tddschn/nssurge-api.git
$ cd nssurge-api
$ poetry installSee alsoNSSurge CLI: Command line Surge HTTP API Client built with this librarySurge HTTP API spec
Package: nssurge-cli
NSSurge CLICommand lineSurge HTTP APIClientYou can use it to get/set Surge rules / policies / proxy groups, get recent requests / events and much more.This projects fully implements theSurge HTTP API spec.NSSurge CLIInstallationpipxpipUsageScreenshotsDevelopSee alsoInstallationpipxThis is the recommended installation method.$ pipx install nssurge-clipip$ pip install nssurge-cliUsagenssurge-cli --helpScreenshotsnssurge-cli capDevelop$ git clone https://github.com/tddschn/nssurge-cli.git
$ cd nssurge-cli
$ poetry installSee alsonssurge-api: Python implementation of theSurge HTTP API specclient usingaiohttp, used by this projectSurge HTTP API spec
Package: nssvie
A python package for computing a numerical solution of stochastic Volterra
integral equations of the second kindwhereis an unknown process,is a continuous function,are continuous and square integrable functions,is the Brownian motion (seeWiener process) andis the Itô-integral (seeItô calculus)by a stochastic operational matrix based on block
pulse functions as suggested inMaleknejad et. al (2012)[1].DocumentationAPI ReferenceSource CodeBug reportsnssvieis distributed under the terms of theGNU GPLv3license.InstallInstall using either of the following two methods.1. Install from PyPiThenssviepackage is available onPyPiand can be installed usingpippipinstallnssvie2. Install from SourceInstall directly from the source code bygitclonehttps://github.com/dsagolla/nssvie.gitcdnssviepipinstall.DependenciesnssvieusesNumPyfor many calculations,SciPyfor computing the block pulse coefficients andstochasticfor sampling the Brownian MotionUsageConsider the following example of a stochastic Volterra integral equationso,and.>>>fromnssvieimportStochasticVolterraIntegralEquations>>># Define the function and the kernels of the stochastic Volterra>>># integral equation>>>deff(t):>>>return1.0>>>defk1(s,t):>>>returns**2>>>defk2(s,t):>>>returns>>># Generate the stochastic Volterra integral equation>>>svie=StochasticVolterraIntegralEquations(>>>f=f,kernel_2=k1,kernel_1=k2,T=0.5>>>)>>># Calculate numerical solution with m=20 intervals>>>svie_solution=svie.solve_method(m=20,solve_method="bpf")The parameters aref: the function.kernel_1,kernel_2: the kernels.T: the right hand side of\([0,T)\). Default is1.0.m: the number of intervals to divide\([0,T)\). Default is50.solve_method: the choosen method based on orthogonal functions. Default isbpf.for the stochastic Volterra integral equation above.Citation[1]Maleknejad, K., Khodabin, M., & Rostami, M. (2012). Numerical solution of stochastic Volterra integral equations by a stochastic operational matrix based on block pulse functions. Mathematical and computer Modelling, 55(3-4), 791-800.
Package: nsta-assistant
goitneo-python-hw-3-group-3DescriptionA CLI organizer that can help store contacts' phone numbers and birthday dates.Get StartedRunpip install nsta_assistantto install the package and thenget-startedto get started. The list of available commands is as follows:hiorhelloorgreeting- to say hi to your favorite PA!add name phone- to add a acontact and its phone number;all- to list all the contacts and their phone numbers;phone name- to list all the phone numbers associated with the contact;change name old phone new phone- to change the phone number;remove-phone name phone- to remove the phone number;add-birthday name DD.MM.YYYY- to add birthday;show-birthday name- to show birthday associate with the contact;birthdays- to show the list of contacts who have a birthday within the following 7 days;delete nameorremove name- to delete the contact;entries- to show the number of contactscloseorexit- to exit the personal assistant;Notes:Currently, it is not possible to add a contact with a name only. Both name and a phone number must be provided;The PA saves the progress upon exiting; this does not apply to the cases when it is forcefully shut down (e.g. keyboard interrupt)
Package: nstimes
nstimesFind your next train home while you are in CLI. I used the Dutch Railway Services (Nederlandse Spoorwegen) API to make myself this tool.Usage:$nstimes[OPTIONS]COMMAND[ARGS]...Options:--version: Print version info--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:journey: Provide train type, platform and departure...update-stations-json: Generate stations lookupnstimes journeyProvide train type, platform and departure times of an A -> B journeyUsage:$nstimesjourney[OPTIONS]Options:--start TEXT: Start station  [required]--end TEXT: Stop station  [required]--token TEXT: Token to talk with the NS API  [env var: NS_API_TOKEN; required]--time TEXT: Time to departure (%H:%M)  [default: 12:19]--date TEXT: Date to departure (%d-%m-%Y)  [default: 15-10-2023]--printer-choice [table|ascii]: [default: ascii]--help: Show this message and exit.nstimes update-stations-jsonGenerate stations lookup, should not be neccesaryUsage:$nstimesupdate-stations-json[OPTIONS]Options:--token TEXT: Token to talk with the NS API  [env var: NS_API_TOKEN; required]--path TEXT: Token to talk with the NS API  [env var: NS_API_TOKEN; default: /home/erik/dev/ns_cli/nstimes/stations.json]--help: Show this message and exit.InstallationTo install, run the following:pipinstallnstimesTo verify, run:nstimes--versionTo install auto-completion, run:nstimes--install-completionIn order for autocomplete to work, one might need to add this to their.zshrc:echo-e"\ncompinit -D\n"|tee-a~/.zshrcsource~/.zshrc# Reload shellObtaining NS tokenCreate an account at theNS API portal.
Then create a tokenhere.Add the token to your shell, for zsh:echo-e"\nexport NS_API_TOKEN=****\n"|tee-a~/.zshrcsource~/.zshrc# Reload shellPrintersBy default, this tool prints in ASCII, e.g.:ICp.12in4min(21:37)->(21:50)ICp.12in16min(21:49)->(22:02)SPRp.4in17min(21:50)->(22:10)ICp.12in34min(22:07)->(22:20)ICp.12in46min(22:19)->(22:32)SPRp.4in47min(22:20)->(22:40)If you use the--printer-choice tableoption it prints like:JourneysfromUtrechtCentraal->AmersfoortCentraalat24-01-202421:32
┏━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃Train┃Platform┃Leavesin┃Departuretime┃Arrivaltime┃
┡━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│IC│12│4min│(21:37)│(21:50)│
│IC│12│16min│(21:49)│(22:02)│
│SPR│4│17min│(21:50)│(22:10)│
│IC│12│34min│(22:07)│(22:20)│
│IC│12│46min│(22:19)│(22:32)│
│SPR│4│47min│(22:20)│(22:40)│
└───────┴──────────┴───────────┴────────────────┴──────────────┘
Package: nsupdate
About nsupdate.infohttps://nsupdate.infois a free dynamic DNS service.nsupdate.info is also the name of the software used to implement it.
If you like, you can use it to host the service on your own server.Documentation:https://nsupdateinfo.readthedocs.io/Software project:https://github.com/nsupdate-info/nsupdate.info(build and coverage are for latest repo code, package and downloads are for PyPI release)FeaturesFrontend: Dynamic DNS updates via dyndns2 protocol (like supported
by many DSL/cable routers and client software).Backends:Uses Dynamic DNS UPDATE protocol (RFC 2136) to update compatible
nameservers like BIND, PowerDNS and others (the nameserver itself isnotincluded).Optionally uses the dyndns2 protocol to update other services - we can
send updates to configurable third-party services when we receive an
update from the router / update client.Prominently shows visitor’s IP addresses (v4 and v6) on main view,
shows reverse DNS lookup results (on host overview view).Multiple Hosts per user (using separate secrets for security)Add own domains / nameservers (public or only for yourself)Related Hosts: support updating DNS records of other hosts in same LAN by
a single updater (e.g. for IPv6 with changing prefix, IPv4 also works)Login with local or remote accounts (Google, GitHub, Bitbucket, …
accounts - everything supported by the python-social-auth package)Manual IP updates via web interfaceBrowser-based update client for temporary/adhoc usageShows time since last update via API, whether it used TLS or notShows IP v4 and v6 addresses (from master nameserver records)Shows client / server fault counters, available and abuse flagsSupports IP v4 and v6, TLS.Easy and simple web interface, it tries to actively help to configure
routers / update clients / nameservers.Made with security and privacy in mindNo nagging, no spamming, no ads - trying not to annoy usersFree and open source software, made with Python and Django
Package: nswairquality
Retrieves current data from theNSW Air Quality Monitoring Networkand returns a consumable object, or JSON.Exampleimportnswairqualityif__name__=="__main__":x=nswairquality.NSWAirQuality()print(x.toJSON(True))NoteThis is not an authorised or approved method of access the data.© State Government of NSW and Department of Planning, Industry and Environment 1994
Package: nswcovid
NSW Health does not provide an API for accessing current Covid cases,
vaccinations and related information. This is a screen scaper to
facilitate programmatic access.Look how easy it is to use:import logging
import asyncio
from nswcovid import NSWCovid

_logger = logging.getLogger(__name__)

loop = asyncio.get_event_loop()
covid = NSWCovid(loop=loop)

def event_receiver(event_type=None, statistic_id=None, statistic=None, ts=None):
    _logger.debug(event_type)
    _logger.debug(statistic_id)
    _logger.debug(statistic)
    _logger.debug(ts)

async def get_data():
    await covid.refresh()
    covid.track(event_receiver=event_receiver)

loop.run_until_complete(get_data())Home AssistantThese library is primarily for the Home Assistant integrationhttps://github.com/troykelly/homeassistant-au-nsw-covidFeaturesEasy access to Covid dataEvent push on changeInstallationInstall NSWCovid by running:install nswcovidContributeIssue Tracker:https://github.com/troykelly/python-nswcovid/issuesSource Code:https://github.com/troykelly/python-nswcovidSupportIf you are having issues, please create an issue.
Package: nswdesignsystem.plone6
nswdesignsystem.plone6Plone backend package for the NSW Design systemFeaturesOut-the-box backend configuration for the Digital NSW Design System.ExamplesThis add-on can be seen in action at the following sites:Digital NSW Plone Starter Kit DemoInstallationInstall nswdesignsystem.plone6 by adding it to your buildout:[buildout]

...

eggs =
    nswdesignsystem.plone6and then runningbin/buildout. The addon should then be available to install in the site addons.ContributorsThis product was developed byPretaGov.ContributeIssue Tracker:https://github.com/collective/nswdesignsystem.plone6/issuesSource Code:https://github.com/collective/nswdesignsystem.plone6LicenseThe project is licensed under the GPLv2.ContributorsPretaGov,jeff.bledsoe@pretagov.com.au0.4.3 (2023-12-13)No significant changes.0.4.2 (2023-11-28)Bug fixes:Fixed exception handling when@nswSiteSettingsserialization is a dictionary not a JSON string
[@JeffersonBledsoe] (#19)0.4.1 (2023-11-27)Internal:Remove circular checker in CI
[@JeffersonBledsoe] (#17)Changelog0.4.1 (unreleased)Nothing changed yet.0.4.0 (2023-11-27)Nothing changed yet.0.3.0 (2022-11-21)Added NSW Design System Control Panel
[JeffersonBledsoe] (#4)Fixed Recaptcha for forms
[JeffersonBledsoe] (#5)Added spacing to control panel title
[JeffersonBledsoe] (#6)Added option to customise acknowledgement of country
[JeffersonBledsoe] (#7)Added cusy.restapi.info view permission to all users
[JeffersonBledsoe] (#8)0.2.0 (2022-09-30)Added collective.volto.formsupport
[JeffersonBledsoe] (#2)Added collective.volto.subfooter
[JeffersonBledsoe] (#3)0.1.0 (2022-09-21)Initial release.
[PretaGov]
Package: nswi177-jinja-templater
Jinja templaterRunning templater with arguments--template example.j2 --input example.txtwill load data from example.txt and format them according to
template in example.j2, producingVolume is 42 l (9 imperial gallons).

The number is 21 (XXI).

The colors are: red, white, blue.

This is the content.
Package: nsxez
NSXEZNSXEZ is a Python library to remotely manage/automate NSX-T platforms. The user is NOT required to be a Software Programmer, or have sophisticated knowledge of NSX-T environments, or have a complex understanding of the NSX-T REST API. It does however expect that someone has built a functional NSX-T environment which includes a functional Tier-0 router and potentially edge gatway services and VNI pool for VRF examples...if you expect to have any decent functionality. This is very much a work in progress and being updated daily at this stage.The module will aim to provide functions of SET, DEL and GET for various API calls into the NSX-T manager, using common industry terminology. For example to read the routing table would be get_route_table() while creating an EVPN instance would be set_routing_instance(). As these are created an ongoing list of commands would/should be maintained.InstallationInstallation requires Python 2.7 or 3.X and the associated python pip tool. The only other requirements currently as the requests and uuid libraries which are installed automatically through pip. To install NSXEZ simply use the following command from your shell, provided pip is installed and operational.pip install nsxezUpgradeUpgrading has the same requirements as installation and has the same format for install with the addition of -Upip install -U nsxezInital usageTeh library operates on a preexisting Tier0 router and when initiated it expects you to pass a valid NSX-T manager IP address, username, password and Tier0 router name. All ongoing operations are performed against this Tier0 router enviornment.fromnsxezimportoperationsasnsxdev=nsx.device("192.168.0.22","admin","VMware1!VMware1!","Peering")Example creating a new VRF called "Blue". Values to be passed are the name of the VRF, the Route Target (used for import and export) as well as the unique route distinguisher and the VNI for VXLAN overlay from the edge node to the peer.fromnsxezimportoperationsasnsxdev=nsx.device("192.168.0.22","admin","VMware1!VMware1!","Peering")dev.set_routing_instance("Blue","65000:7001","7001","79423")Example output creating a new network segment called "Blue_Web_Servers" and attaching to existing VRF "Blue"fromnsxezimportoperationsasnsxdev=nsx.device("192.168.0.22","admin","VMware1!VMware1!","Peering")dev.set_network("Blue_Web_Servers","192.168.123.1","24","Blue","Overlay_TZ")Example of assigning a routing distribution policy to an existing VRF instance. Currently only supports the concept of "all routes".fromnsxezimportoperationsasnsxdev=nsx.device("192.168.0.22","admin","VMware1!VMware1!","Peering")dev.set_route_policy("ALL","Blue","all")Example output gathering EVPN routing instance details (VRF attached to a Tier0) for VRF "Blue"fromnsxezimportoperationsasnsxdev=nsx.device("192.168.0.22","admin","VMware1!VMware1!","Peering")dev.get_routing_instance("Blue")
Package: nsystems
nsystemsInfoThis Python package is used for converting any number from any numeral system (ex. binary), to whatever numeral system you want (if it's not greater than base64).Python offers this function, but it is very limited (you can only convert bases: 2, 8, 16).
With our user-friendly package, you'll be able to convert between any numeral systems (> base64).InstallationIt's dead easy.You just run:pipinstall nsystemsin your terminal.UsageWe made our package pretty easy to use.Common functionsconvert()base2()base8()base10()base16()base32()base64()convert()This function is used to convert a number from, to whatever numeral system you want.Arguments takenTypeDefault valuevaluestr(no default value)to_baseint16from_baseint10Example:fromnsystemsimportconvertconverted=convert('123',2)print(converted)# output: 1111011base2(), base8(), base16(), base32(), base64()These functions are very similar to each other, so we've put them in one explanation. These are also similar to the convert() function, but have like the to_base argument fixed to the base they are.Arguments takenTypeDefault valuevaluestr(no default value)from_baseint10Example:fromnsystemsimportbase64converted=base64('123')print(converted)# output: 1xbase10()This function converts to base10 (decimal) from any other numeral system.Arguments takenTypeDefault valuevaluestr(no default value)from_baseint16Example:fromnsystemsimportbase10converted=base10('1111011',2)print(converted)# output: 123PRO functionscharacters()characters()If you want to change the character list, this function is for that.The default character list are these characters (0-9, A-Z, a-z, +, =).With this function you can choose whether you want to get large or small letters first, and the two special characters at the end (the numbers are always at the beginning).Arguments takenTypeDefault valueAZ_or_azstr (options: 'AZ' or 'az')(no default value)az_or_AZstr (options: 'AZ' or 'az')(no default value)special_character_1str(no default value)special_character_2str(no default value)Example:fromnsystemsimportcharacterscharacters('az','AZ','+','/')# now the character list is: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/
Package: nt2dc
nt2dcThere should be one—and preferably only one—obvious way to do it.The zen of PythonPython objectsCurrently, python offers different ways of modelling a dead-simple objects. The most complex way is simply a plain old python object:classComplex:def__init__(self,real:float=0.0,imaginary:float=0.0)->None:self.__real=realself.__imaginary=imaginarydef__set_real(self,value:float)->None:self.__real=valuedef__get_real(self)->float:returnself.__realreal=property(__get_real,__set_real)def__set_imaginary(self,value:float)->None:self.__imaginary=valuedef__get_imaginary(self)->float:returnself.__imaginaryimaginary=property(__get_imaginary,__set_imaginary)def__repr__(self)->str:return"{}+{}i".format(self.__real,self.__imaginary)DataclassesWith newer versions of python 3, the dataclasses have been introduced, that can be created in two ways:Complex=make_dataclass('Complex',[('real',float),('imaginary',float)])or@dataclassclassComplex:real:float=field()imaginary:float=field()Dataclasses are a great way of handling python data in a dead-simple way. Constructor,__repr__function, getters, setters and introspection is possible and make it more easy to create a serialization and deserialization engine. They hence can easily be combined with multiple frameworks like sqlalchemy, marshmallow and entire web frameworks like bottle, flask etc. to create rest-ful APIs.Named tuplesOn the other hand, there are legacy modelling ways like named tuples, that can be create using two ways:Complex=namedtuple('Complex',['real','imaginary'])orclassComplex(NamedTuple):real:floatimaginary:floatPlease note, that the latter has type hints while the former does not support type hinting yet.NamedTuples are like tuples: A read-only combination of multiple values, just like regular tuples, but each value has a unique name.ConversionWhat if, one API provides or requests NamedTuples but you need a dataclass for further processing or vice versa?This package provides a set of functions for the conversion from one notation (NamedTuple) to the other (Dataclass) and back.Please note, the type hinted variant should be used.LicensingThis library is published under BSD-3-Clause license.VersioningThis library follows semantic versioning 2.0. Any breaking change will produce a new major release. Versions below 1.0 are considered to have a unstable interface.
Package: nt2py
nt2Python package for visualization and post-processing of theEntitysimulation data. For usage, please refer to thedocumentation. The package is distributed viaPyPI:pipinstallnt2pyFeaturesLazy loading and parallel processing of the simulation data withdask.Context-aware data manipulation withxarray.Parellel plotting and movie generation withmultiprocessingandffmpeg.TODOUnit testsPlugins for other simulation data formatsUsage examples
Package: ntai
ntaintaistands for nucleotide (nt) artificial intelligence (A.I.). ntai is a small
python library for using fasta sequences with artificial intelligence (A.I.).Currently there are two main modules that will be of useCodex, andbedtoolsRead the documentation:https://sumneuron.gitlab.io/ntai/CodexCodexis a class for hot-encoding fasta sequences into channels and back.Codexis useful because a character in a fasta sequences can encode multiple
nucleotides or even random repeats.bedtoolsbedtoolsis a function exposing thebedtoolslibrary to python. This allows
users to extract fasta sequences from a reference genome with writing to /
reading from files.fetchfetchis a module for fetching the necessary data for usingntai.
Currentlyfetch.utilssupports the requests for:fetch_hg38acquires the fasta for hg38 gzippedfetch_exonsacquires Gencode Comprehensive v28 exons in bed formatfetch_intronsacquires Gencode Comprehensive v28 introns in bed formatfetch_hg38_chrom_sizesacquires the chromosome sizes for hg38 in tsv formatdecompresswill decompress a.gzfileThe functionfetch.fetch_fileswill get all of these files and decompress hg38 in a specified directory.
Package: ntarp
NTarpA Scikit-Learn implementation of the NTarp clustering algorithm, originally introducedhereand developed furtherhere.The objective function of NTarp is the minimum normalized within-ss, and so this also necessarily includes an efficient way of computing this. The method used here is comparable toCKmeans.1d.dpin terms of algorithmic efficiency, but roughly twice as fast in practice (at least in my testing).Installationpip install ntarpUsageThe main interface is thentarp.NTarpobject, which uses the sklearn cluster interface, through thefitandpredictmethods. In addition the withinss function is available asntarp.separability.w.