Saravanan666/pypi-org huggingface dataset:
Package: nym
nymNim extension for Python using nimporter, example project.Free software: MIT licenseDocumentation:https://nym.readthedocs.io.UsageTo install nym, run this command in your terminal:$pipinstallnymTo install from source:$gitclonegit@github.com:gmagno/nym.git&&cdnym$python-mvenv.venv$source.venv/bin/activate$pipinstall-Upip&&pipinstall-rrequirements_dev.txt$python-mnym.cliTo build:$makedistTo use nym:fromnymimportfast,slowstart=time.time()python_ret=slow.fib(33)python_time=time.time()-startrestart=time.time()nim_ret=fast.fib(33)nim_time=time.time()-restartprint(f"python ret:{python_ret}")print(f"python elapsed time:{python_time}")print(f"nim ret:{nim_ret}")print(f"nim elapsed time:{nim_time}")History0.1.1 (2022-05-14)First release on PyPI.
Package: nymbus
NymbusDeploy any code anywhereUsageRunYou can runnymbus run [--step STEP] <component> <env>To execute the steps specified in./<component>/<env>.nymbus.ymlFolder and file structureComplete example inhttps://github.com/nymbus-tools/nymbus/src/nymbus/tests/data/simple_projectEach folderMUSThave adefault.nymbus.ymlto be explored (even the root one of your components).Nymbus files will be merged (firstdefault.nymbus.yml, then<env>.nymbus.yml)# Optional: environment variables for all the steps
env:
  PROJECT: project-dev
  SECRET: ${DEV_SECRET}  # This will be taken at runtime

# Optional: path to context, i.e. folder that will be visible to command
context: ../../

# Step definitions
steps:

  # Name of step
  build:
    env:
      STANDARD: low
      CLOUDSDK_CONFIG: /gcloud
      
    # Command to execute
    # (if not specified and image is specified, will be /mnt/.nymbus/template/nymbus.sh)
    command: ls -la /mnt/.nymbus/template
    
    # Optional: an image where to run the command
    # !!!MUST HAVE DOCKER INSTALLED!!!
    image: 
      name: google/cloud-sdk:159.0.0
      # Optional extra volumes to mount
      volumes:
        ~/AppData/Roaming/gcloud:
            bind: /gcloud
            mode: ro
    
    # Optional: a git repo containing scripts to run
    # mounted in /mnt/.nymbus/template
    # !!!MUST HAVE GIT INSTALLED!!!
    # !!!WORKING JUST IN CASE OF DOCKER!!!
    template:
      repository: git@github.com:nymbus-tools/nymbus.git  # or https://
      tag: feat/init  # or branch (default: master)
    
  # Name of step
  other:
    command: echo ok
Package: nymms
You can find the latest docs (there aren’t enough!) atReadTheDocs.NYMMS is a monitoring framework that takes inspiration from a lot of different
places.It’s goals are:Independently scalable componentsFault tolerantEasily useable in a cloud environmentEasy to add new monitorsThere are many other goals, but that’s a good start.Here’s a somewhat hard to understand diagram (at least without some
explanation):RequirementsCurrently the main requirements are:Python (2.7 - may work on older versions, haven’t tested)botoPyYAML (used in a few backends, will eventually not be a requirement unless
you need to use those backends)Jinja2 (needed for templating)Validictory (0.9.1https://pypi.python.org/pypi/validictory/0.9.1)Optionally:pagerduty (0.2.1https://pypi.python.org/pypi/pagerduty/0.2.1) if you use the
pagerduty reactor handler
Package: nymp
# nymp## Aboutnymp is a graphical command line client for xmms2. It is library focused andprovides a tree view on your collection.## StatusThe project is already usable but there is still some missing functionality. Theauthor uses it on a daily basis. See the 'TODO' file for a (probably incompleteand outdatet) list of planned additional features.## Dependencies* XMMS2* Python 2.X (developed with Python 2.6, tested on Python 2.5)* urwid (python-urwid in Debian)* Python bindings for XMMS2 (python-xmmsclient in Debian)## Usage### XMMS2nymp is a frontend for XMMS2. It doesn't play any files by itself but forwardsthese tasks to XMMS2. The library is handled by XMMS2 as well.XMMS2 follows a philosophy related to the Unix principle 'Make each program doone thing well.'. It offers a client/server infrastructure where multipleclients are able to manipulate the state of the music playback. You thereforeshould use other clients to achieve the best user experience.The most important task nymp doesn't handle is media library management. Youshould install `xmms2-mlib-updater` to automatically import your media filesinto the media library and scan for changes. It is part of most distributions.### StartupUse `launch.py` in `./src/` to start the program. You can also add a link to it inyour `bin` directory. If nymp is not able to connect to the XMMS2 server,`xmms2-launcher` is called to start one.### Key BindingsThe key bindings are subject to change in the near future. They are looselyvim-oriented. Configuration and a command line will be implemented later.Incomplete overview:* x - play/pause* c - stop* z/v - previous/next* d - delete from playlist (and put into buffer)* a - append to playlist* p - paste from buffer* y - save to buffer* j/k/arrow keys - navigate* h/l/tab - change column (library/playlist)* enter - collapse tree node/jump to playlist item* space - mark/unmark item* alt+space - unmark all* 9/0 - change volumeYou can use the mouse, too.## Todo and ideas- second xmms connection for heavy operations (library ...)- playlist update (sort, shuffle, update)- library update- library browser root?- collections- collection management?- search?- search- find and/or filter?- adding a command line?- hotkeys -> commands?- auto completion- playlists- playback status- seek
Package: nymphemeral
nymphemeralnymphemeral is a tool made for users searching for secure and
anonymous communication on the internet.It is a GUI client that relies on a pseudonym remailer that
communicates to its users by posting messages to a shared mailbox,
aZax-typenym server. Both the server and the client apply an
ephemeral encryption layer on their messages based on theAxolotl
Ratchet protocol, providing forward and future secrecy to the
conversation.FeaturesManages pseudonym actions: creation, configuration and deletion,
as well as message dispatch and retrievalCommunicates with thenew nymserv, aZax-typenym server with
forward and future secrecyUsespython-gnupgandpyaxofor encryptionUsesaampyto retrieve messages fromalt.anonymous.messagesSends messages throughMixmaster,sendmail, or outputs the
resulting ciphertexts to be sent manuallySupports End-to-End EncryptionCurrent ReleaseThe current version of nymphemeral is 1.4.2, a beta, released
2016-03-21.Quick InstallMake sure that you have the following:sudo apt-get install python-dev python-tk # If using Debian/Ubuntu
sudo yum install python-devel tkinter # If using FedoraIf you usepipandsetuptools(probably installed automatically
withpip), you can easily install nymphemeral with:sudo pip install nymphemeralYou should at least readnews serverto make sure you have one
running and configured so that your nyms can receive messages.UpdatingIf you installed nymphemeral withpip, you can also use it for
updates:sudo pip install --upgrade nymphemeralDocumentationYou can findinstallationandusageinstructions (with
screenshots) on thedocumentation, as well as nymphemeral’slimitations.Protocol Updatenymphemeral 1.3.3was updated to usepyaxo 0.4that follows
the latest (Oct 1, 2014) version of the protocol, which changed the
order of the ratcheting. For that reason, old conversations (created
withnymphemeral < 1.3.3) might not work properly after the
update. We suggest that users update nymphemeral and restart their
conversations by changing their nyms’ephemeral keys. TheConfiguring the Nymsection explains how that can be done.Feedback and ContactPlease use theGitHub issue trackerto leave suggestions, feature
requests, bug reports, complaints or any contribution to nymphemeral.
If you feel the need to talk about something else, send messages tonymphemeral@nym.now.im. You can also use itspublic keyfor
end-to-end encryption.AcknowledgementsThanks torxcommfor the new nymserv, nym.now.im, pyaxo, aampy
and for assisting on the development of this clientThanks tocrooks(Zax) for the original nymserv softwareThanks totych0for assisting on fixes and improvementsThanks toHulaHoopWhonix(from theWhonixteam) for testing
and providing awesome feedback, such as bug reports, feature
requests and suggestions
Package: nymstr
nymstrDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-nnymstr--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallnymstrnbdev# activate conda environment$condaactivatenymstr# make sure the nymstr package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the nymstr package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/nymstr.gitor fromconda$condainstall-cdsm-72nymstror frompypi$pipinstallnymstrDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.apple=nymstr('Apple',icase=False,ispace=False,iunder=False,cutoff=1)grape=nymstr('Grape',icase=True,ispace=True,iunder=True,cutoff=1)mango=nymstr('Mango')fruits=(apple,grape,mango)print(f'fruit / pruit:',' == ','tosame','tosame','tocls',sep='\t')fori,fruitinenumerate(fruits):rstr=fruit.raw.lower()pidx=i-1orlen(fruits)-1pruit=fruits[pidx]print(f'{fruit}/{pruit}:',fruit==nymstr(rstr),fruit==fruit.makesame(rstr),fruit==pruit.makesame(rstr),fruit==nymstr(rstr),sep='\t')fruit / pruit:   ==     tosame  tosame  tocls
Apple / Mango:  False   False   False   False
Grape / Mango:  True    True    True    True
Mango / Grape:  True    True    True    Trueapple.prep(apple),apple.prep(mango),mango.prep(apple),mango.prep(mango),issubclass(type(mango),fuzstr)(Apple, Mango, 'apple', 'mango', True)
Package: nynoflow
NynoFlowNynoflow was built out of frustration with current tooling to build LLM applications. Some focus too much on UI building, which is limited at best. Some over-abstract on certain areas to the point that you can't understand what's the prompt being sent to the LLM. So here at nyno-ai, we set to build the best framework and tooling to build LLM applications for developers.FeaturesTODORequirementsTODOInstallationYou can installNynoFlowvia [pip] from [PyPI]:$pipinstallnynoflowUsageTODODefaultsHere are all the default configuations you should make sure to review when creating an app with nynoflow:ConfigDescriptionDefaultflow.completion.token_offsetThis is used for the historical message cutoff (removing old messages when the token limit is exceeded). This number is the number of tokens you may require for the answer. This is deliberetly different then the token_limit because you may get more token space since messages are cut as a whole.16ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theGPL 3.0 license,NynoFlowis free and open source software.IssuesIf you encounter any problems,
please [file an issue] along with a detailed description.
Package: nyoibo
Nyoibo is an easy way to avoid repetitive code with “private” attributes in
Python.See full documentationInstallationYou can install nyoibo with pip. Nyoibo requires python 3.9 or higher.pip install nyoiboWhat does “nyoibo” mean?Nyoibo is a mystical staff given to Son Goku by his grandfather Son Gohan.UsageInstead of doing this:classExample:def__init__(self,value=None,other_value=None,default='hello')self._value=valueself._other_value=other_valueself._default=defaultdefget_value(self):returnself._valuevalue=property(get_value)defget_other_value(self):returnself._other_valuedefset_other_value(self,value):self._other_value=valueother_value=property(get_other_value,set_other_value)defdo_something(self):returnf'{self._default}world'You can do this:fromnyoiboimportEntity,fieldsclassExample(Entity):_value=fields.StrField()_other_value=fields.IntField(mutable=True)_default=fields.StrField(private=True,default_value='hello')defdo_something(self):returnf'{self._default}world'In both cases you could use this code like this:example=Example(value='some value',other_value=10)assertexample.value=='some value'assertexample.get_value()=='some value'assertexample.get_other_value()==10example.other_value=15assertexample.get_other_value()==15assertexample.do_something()=='hello world'Why not use dataclass decorator?@dataclassdecorator helps to avoid to write the__init__method but if you
want to use this approach (information hiding and encapsulation), you need to
write getters and setters anyway. Furthermore, withnyoiboyou get extra
features like casting to right value (due to static typing), validations, override__init__method and so on.Above example withdataclassdecorator:fromdataclassesimportdataclass@dataclassclassExample:_value:str_other_value:int_default:str='hello'defget_value(self):returnself._valuevalue=property(get_value)defget_other_value(self):returnself._other_valuedefset_other_value(self,value):self._other_value=valueother_value=property(get_other_value,set_other_value)defdo_something(self):returnf'{self._default}world'Even this code doesn’t work because__init__method has_value,_other_valueand_defaultarguments. Therefore the instantiation will be:example=Example(_value='some value',_other_value=10)LicenseDistributed under the terms of the LGPLv3 license.Seelicense.
Package: nysdotapi
New York State Department of Transportation APIInstallationpipinstallnysdotapiAuthenticationVisit the 511 NYwebsiteand create a new accountLogin to your account and request an API keyhereExampleThe following code cycles through live feeds of various traffic cameras at random.fromtrafficimportAPIimportrandomimportcv2api=API("<insert-api-key>")cameras=api.get_cameras()print("Cameras:",len(cameras))whileTrue:camera=random.choice(cameras)try:withcamera.get_stream()asstream:title="LIVE: "+camera.roadwayifcamera.roadwayelse"LIVE"foriinrange(100):frame=next(stream)cv2.imshow(title,frame)cv2.waitKey(1)cv2.destroyAllWindows()exceptKeyboardInterrupt:raiseexceptStopIteration:pass
Package: nysiis
Convert a name to a phonetic coding of up to six characters.Robert L. Taft, Name Search Techniques, New York State Identification and Intelligence System, Special Report No. 1, Albany, New York, 1970.
Author: Paul E. Blackpaul.black@nist.govhttp://hissa.nist.gov/~black/Note: This is my first attempt in contributing code. I used this algorithem in learning python.
Package: nysol
NYSOL (read as nee-sol) is a generic name of software tools and project activities designed for supporting big data analysis. The tools are developed from various large-scale data analysis and university research projects. NYSOL consists of two packages so far, namely MCMD and TAKE.MCMD is a set of methods that are developed for the purpose of high-speed processing of large-scale structured tabular data in Python Lists or CSV file. Each method reads the tabular data from standard input, and carry out a very simple processing method (like sort, sum-up, join, merge, etc.) and write the results to standard output. It achieves a variety of processing functions by connecting individual methods with an inter-thread stream called “pipe”, thus the output of each process feeds directly as input to the next one. It is possible to efficiently process a large scale of data with hundred millions row of records on a standard PC.TAKE (pronunciation is “ta-ke”, not common “take”, stand for the name of developer) is a library for data mining consisting of a varaety of methods, like itemset mining, sequecial pattern mining, clique enumeration, graph polishing, etc. This package developed at the center led by Professor Takeaki Uno (National Institute of Informatics in Japan). TAKE wrapped his original software in Python.NYSOL runs in UNIX environment (Linux and Mac OS X, not Windows).
Package: nystromformer
NystromformerAn implementation of theNyströmformer: A Nyström-Based Algorithm for Approximating Self-Attentionpaper by Xiong et al. The self-attention mechanism that encodes the influence or dependence of other tokens on each specific token is a key component of the performance of Transformers. This uses the Nyström method to approximate standard self-attention with O(n) complexity allowing to exhibit scalability as a function of sequence length.InstallationRun the following to install:pipinstallnystromformerDeveloping nystromformerTo installnystromformer, along with tools you need to develop and test, run the following in your virtualenv:gitclonehttps://github.com/Rishit-dagli/Nystromformer.git# or clone your own forkcdNystromformer
pipinstall-e.[dev]To run rank and shape tests run the following:pytest -v --disable-warnings --covUsageNystrom AttentionimporttensorflowastffromnystromformerimportNystromAttentionattn=NystromAttention(dim=512,dim_head=64,heads=8,num_landmarks=256,# number of landmarkspinv_iterations=6,# number of moore-penrose iterations for approximating pinverse. 6 was recommended by the paperresidual=True# whether to do an extra residual with the value or not. supposedly faster convergence if turned on)x=tf.random.normal((1,16384,512))mask=tf.ones((1,16384),dtype=tf.bool)attn(x,mask=mask)# (1, 16384, 512)NystromformerimporttensorflowastffromnystromformerimportNystromformermodel=Nystromformer(dim=512,dim_head=64,heads=8,depth=6,num_landmarks=256,pinv_iterations=6)x=tf.random.normal((1,16384,512))mask=tf.ones((1,16384),dtype=tf.bool)model(x,mask=mask)# (1, 16384, 512)Want to Contribute 🙋‍♂️?Awesome! If you want to contribute to this project, you're always welcome! SeeContributing Guidelines. You can also take a look atopen issuesfor getting more information about current or upcoming tasks.Want to discuss? 💬Have any questions, doubts or want to present your opinions, views? You're always welcome. You canstart discussions.Citation@misc{xiong2021nystromformer,title={Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention},author={Yunyang Xiong and Zhanpeng Zeng and Rudrasis Chakraborty and Mingxing Tan and Glenn Fung and Yin Li and Vikas Singh},year={2021},eprint={2102.03902},archivePrefix={arXiv},primaryClass={cs.CL}}Yannic Kilcher's VideoPyTorch ImplementationPyTorch ImplementationLicenseCopyright 2020 Rishit Dagli

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: nytcampfin
A very basic Python client for the New York Times [Campaign Finance API](http://developer.nytimes.com/docs/campaign_finance_api). You’ll need an API key, which should be set as an environment variable to run the tests. The client returns JSON only, not full Python objects, and attempts to implement each response in The Times’ API.Install$ pip install nytcampfinOr download and run$ python setup.py installRequirementsNYT Campfin uses the [Kenneth Reitz’s Requests library](https://github.com/kennethreitz/requests) for retrieving API endpoints and [Roman Haritonov’s requests-cache library](https://github.com/reclosedev/requests-cache) for local caching. The cache is preconfigured to use a local sqlite database and set to expire after 5 minutes.TestsTo run the tests, set your API key as an environment variable NYT_CAMPFIN_API_KEY:$ export NYT_CAMPFIN_API_KEY=YOUR-API-KEYand then run the tests:$ python test.pyThe use of caching is disabled in the tests.Usage>>> from nytcampfin import NytCampfin
>>> finance = NytCampfin(YOUR_NYT_CAMPAIGN_FINANCE_API_KEY)# retrieve today’s filings
>>> today = finance.filings.today()
>>> today[0][‘filing_id’]
793150# retrieve a committee’s details
>>> cmte = finance.committees.get(‘C00490219’,2012)
>>> cmte[‘id’]
u’C00490219’# retrieve a candidate’s details
>>> cand = finance.candidates.get(‘H4NY11138’)
>>> cand[‘name’]
u’CLARKE, YVETTE D’See the tests for plenty more examples.Note on Patches/Pull RequestsFork the project.Make your feature addition or bug fix.Add tests for it.Send a pull request. Bonus points for topic branches.AuthorsDerek Willis,dwillis@nytimes.comCopyrightCopyright (c) 2012 The New York Times Company. See LICENSE for details.
Package: nyt-clerk
Usagepip install -e git@github.com:newsdev/nyt-clerk.git#egg=clerk
clerk justicesDataclerk cases: SCDB fields about decided merits
cases, excluding the justice and vote details.clerk votes: SCDB fields about a single justice’s
vote in a single case.clerk courts: Data about the ideology for
each Court term.clerk justices: Data about the ideology and
qualifications for each Justice before they were confirmed.clerk terms: Data about the ideology of
each individual Justice during each Court term.SCDB DataSCDB data includes cases from 1791 term to the 2015 term. Many fields
need to be mapped to their full values. The SCDBmaintains an online
codebookwith these maps.Ideology / Qualification ScoresMartin-Quinn scores measure the relative ideology of a Justice or a
Supreme Court term to the median Justice. Andrew Martin and Kevin Quinnwrote an excellent
paperabout the method.Segal-Cover scores measure the ideology and qualification of an
individual Justicebeforetheir appointment to the Court. Jeffrey
Segalwrote a
summaryand shows the raw data as a table (warning: PDF).