Saravanan666/pypi-org huggingface dataset:
Package: nopip
nopipA simple module to install Python packages programmatically, without needing to usepipto installnopip. Useful for quick scripts, testing, or when you want to embed all the requirements of your app into your code.UsageEmbed all the requirements of your app into your code for simplicity. You can even try importing packages and install them in case of an error:fromnopipimportinstalltry:fromflaskimportFlaskexcept:install.module('Flask==2.2.3')Other examplesinstall.from_requirements('./requirements.txt')install.module('requests')install.modules(['requests==2.5.1','beautifulsoup4==4.10.0'])InstallationThere is no need to installnopipviapip. Simply copy thenopipdirectory to your project, and you're good to go.If you find it challenging to copy the entire nopip directory, there's an even simpler solution. You can just copy the contents of the__init__.pyfile and save it asnopip.pyin your project directory. This way, you can still access and use the nopip functionality with minimal setup.NoteI'd like to clarify that I don't hatepipor intend to undermine its value in the Python ecosystem.pipis an essential tool for managing Python packages and their dependencies. However, I have observed that some people, particularly beginners or those working on very simple applications, might face issues withpipwhen trying to set up their environment or resolve dependencies. Thenopipmodule aims to provide an alternative way to install packages for those specific scenarios where ease of use is a priority. It's important to note that usingnopipis not a substitute for proper dependency management, and it's always recommended to usepip,pipenv, orpoetryfor production code.CollaborationWe welcome and appreciate any contributions to improve the nopip module. If you have ideas, suggestions, or bug fixes, feel free to collaborate by following these steps:Fork the repository on GitHub (assuming the project is hosted on GitHub).Clone your fork locally.Create a new branch for your proposed changes. For example, use git checkout -b feature/my-new-feature to create and switch to a new branch called feature/my-new-feature.Make your changes in the new branch, and commit them with meaningful commit messages.Push your changes to your fork on GitHub.Open a pull request on the original repository, describing your proposed changes and why they would be beneficial.We will review pull requests on a regular basis and provide feedback. If your changes are accepted, they will be merged into the main repository.If you encounter any issues or have questions, feel free to open an issue on the GitHub repository, and we'll do our best to address it.Let's work together to makenopipeven better!
Package: no-ppap-milter
no-ppap-milterThis Milter rejects the email which has encrypted zip file.If the MTA receives such email, this will respond550 5.7.1 We do not accpet encrypted zip.on the DATA command to reject it.RequirementsCentOS7yum install -y python3 gcc python3-devel sendmail-develUbuntu 20.04apt-get install -y python3-pip libmilter-devInstallpip install no-ppap-milterRunThis will listen on port 9201 by default.no-ppap-milterIf you want to use another port,no-ppap-milter --socket-name inet:1234will listen on port 1234.If you want to use UNIX domain socket, invoke like this.no-ppap-milter --socket-name unix:/var/run/milter.sock
Package: noqlite
noqlitesimple nosql over sqliteinstallpip install noqliteusagefromnoqliteimportNoQLite,Querydb=NoQLite('bicycles-per-capita.db')db.insert({'rate':0.6,'country':'Japan'})db.insert({'rate':0.8,'country':'Denmark'})db.insert({'rate':1.3,'country':'Netherlands'})db.search(Query().rate>1)# [{'id': 3, 'country': 'Netherlands', 'rate': 1.3}]
Package: noraise
noraiseDescriptionLightweight utility package, that provides a function decorator to easily catch and print exceptionsSupported Argsnametypedefault valuedescriptionprint_excboolTrueIf True, prints stacktracereturn_exceptionboolFalseIf True, returns caught exceptiondefault_return_valueOptional[any]NoneWhat to return upon caught exception if'return_exception' is Falseignored_error_typesOptional[List[Exception]]NoneIn which cases should the stacktrace printbe skipped if 'print_exc' is TrueInstallpipinstallnoraise# orpip3installnoraiseUsagefromnoraiseimportnoraise@noraise(print_exc=True,return_exception=True,ignored_error_types=[ZeroDivisionError])deff2():return1/0res=f2()print(type(res),res)# This will not catch the crash, and print### < ------------------------------------- Caught with @noraise ------------------------------------ >## Traceback (most recent call last):#   File "/Users/kristofk/github/py_noraise/noraise/noraise.py", line 32, in wrapper#     return function(*args, **kwargs)#   File "demo.py", line 5, in f2#     return 1/0# ZeroDivisionError: division by zero## < ----------------------------------------------------------------------------------------------- >### <class 'ZeroDivisionError'> division by zeroDependencies
Package: norbert
NorbertNorbert is an implementation of multichannel Wiener filter, that is a very popular way of filtering multichannel audio for several applications, notably speech enhancement and source separation.This filtering method assumes you have some way of estimating power or magnitude spectrograms for all the audio sources (non-negative) composing a mixture. If you only have a model for sometargetsources, and not for the rest, you may usenorbert.residual_modelto let Norbert create a residual model for you.Given all source spectrograms and the mixture Time-Frequency representation, this repository can build and apply the filter that is appropriate for separation, by optimally exploiting multichannel information (like in stereo signals). This is done in an iterative procedure calledExpectation Maximization, where filtering and re-estimation of the parameters are iterated.From a beginner's perspective, all you need to do is often to callnorbert.wienerwith the mix and your spectrogram estimates. This should handle the rest.From a more expert perspective, you will find the different ingredients from the EM algorithm as functions in the module as described in theAPI documentationInstallationpip install norbertUsageAsssuming a complex spectrogramX, and a (magnitude) estimate of a target to be extracted from the spectrogram, performing the multichannel wiener filter is as simple as this:X=stft(audio)V=model(X)Y=norbert.wiener(V,X)estimate=istft(Y)How to contributenorbertis a community focused project, we therefore encourage the community to submit bug-fixes and requests for technical support throughgithub issues. For more details of how to contribute, please follow ourCONTRIBUTING.md.AuthorsAntoine Liutkus, Fabian-Robert StöterCitationIf you want to cite theNorbertsoftware package, please use the DOI from Zenodo:LicenseMIT
Package: norconnect
norconnectUnder construction! Not ready for use yet! Currently experimenting and planning!Developed by Rayasam Sanjeev Rao for Cloud services (c) 2022Services included1.SQS2.SNS3.SECRETS MANAGER4.SQSExamples of How To Use (AWS Service)Testing on Python filefromnorconnect.classesimportAWSfromnorconnect.constantsimportAWSServicessqs_url='https://sqs.ap-southeast-1.amazonaws.com/....../sqs.fifo'saws=AWS(services=[AWSServices.SQS],region="**************",aws_access_key="*********",aws_secret_key="************",secrets_name='stage/repo')defprint_data(data):print(data)returnTruesaws.create_sqs_loop(sqs_url=sqs_url,callback=print_data,name='Print_Loop')saws.run_sqs_loops()time.sleep(10)Flask Examplefromappimportappif__name__=="__main__":app.run(host="0.0.0.0",port=5000,debug=True)init.pyfromflaskimportFlaskfromnorconnect.classesimportAWSfromnorconnect.constantsimportAWSServicesapp=Flask("test-ms")saws=AWS(services=[AWSServices.SQS],region="**************",aws_access_key="*********",aws_secret_key="************",secrets_name='stage/repo')print(saws.get_secrets())# from .test import start_testing# start_testing(saws)test.pyimporttimefromnorconnect.classesimportAWSfromnorconnect.constantsimportAWSServicesdefstart_testing():sqs_url='https://sqs.ap-southeast-1.amazonaws.com/....../sqs.fifo'defprint_data(data):print(data)returnTruesaws.create_sqs_loop(sqs_url=sqs_url,callback=print_data,name='Print_Loop')saws.run_sqs_loops()
Package: nord
OverviewNord is a client for interacting with theNordVPNservice.At its core is a high-level Python API for interacting both with the web service
provided by NordVPN, and for connecting to VPN servers using OpenVPN.Nord also contains components that expose this API as a command line tool,
and (soon) as a web service and frontend.LicenceNord is licensed under the terms of the GNU GPLv3.
See theLICENSEfile for details.Installationpip install nordUsageRunnord--helpfor the full usage instructions.Connect to a specific NordVPN server:nord connect -u my_user -p my_password us893Connect to any NordVPN server in a given country:nord connect -u my_user -p my_password USYou can also supply your password from a file using the-fflag.
The special value-means “read from stdin”. This is particularly
useful when your password is stored in a utility such aspass:pass nordvpn_password | nord connect -u my_user -f - us893PrerequesitesGNU/Linux systemPython 3.6openvpnsudonord contains many Linux-isms (e.g. using thesudoprogram to obtain root
access) so it will certainly not work on Windows, it may possibly work
on OSX and *BSD, but support for these platforms is not a goal.Most recent versions of popular GNU/Linux distributions (with the
exception of Debian) have both an OpenVPN client and Python 3.6
in their official repositories. Debian users will have to takeadditional stepsto get a Python 3.6 installation.Ubuntu 16.10 and newerUbuntu comes withsudoalready installed, so we just need
to install Python and openVPN:sudo apt-get install python3.6 openvpnFedora 26 and newerFedora comes withsudoalready installed, so we just need
to install Python and openVPN:sudo dnf install python36 openvpnArch LinuxRun the following as root:pacman -S sudo python openvpnThen configuresudoby following theArch wikito give privileges to the user that nord will be running as.DebianFirst run the following as root to install the openVPN client andsudofrom the Debian repositories:apt install sudo openvpnThen configuresudoby following theDebian wikito give privileges to the user that nord will be running as.There are a couple of options for installing Python3.6 on Debian:Installing from theunstablerepositoriesInstalling from source (easier than you might thinkBoth of these methods are explained in top-rated answers to thisstackexchange question.Developinggit clone https://github.com/jbweston/nord
cd nord
virtualenv -p python3.6
source venv/bin/activate
pip install -e .[dev]Building the API documentationmake -C docs html
xdg-open docs/build/html/index.html
Package: nordea-analytics
Nordea AnalyticsThis is the Nordea Analytics python library, which gives you direct access to the best key figures for our Nordic products. To use the library, you will need access to the underlying API. For further information please reach out toE-advisorySupport@nordea.comDocumentationLatest documentation is available here:https://nordea-analytics.readthedocs.io/en/latest/LicenseGPLv3 - GNU General Public License v3.0AuthorsNordea Desk Quants and Markets Advisory Tools
Package: nordigen
Nordigen PythonThis is official Python client library forGoCardless Bank Account DataAPIFor a full list of endpoints and arguments, see thedocs.Before starting to use API you will need to create a new secret and get yourSECRET_IDandSECRET_KEYfrom theGoCardless Bank Account Data Portal.RequirementsPython >= 3.8InstallationInstall library via pip package manager:pip install nordigenExample applicationExample code can be found inmain.pyfile and Flask application can be found in theexampledirectoryQuickstartfromuuidimportuuid4fromnordigenimportNordigenClient# initialize Nordigen client and pass SECRET_ID and SECRET_KEYclient=NordigenClient(secret_id="SECRET_ID",secret_key="SECRET_KEY")# Create new access and refresh token# Parameters can be loaded from .env or passed as a string# Note: access_token is automatically injected to other requests after you successfully obtain ittoken_data=client.generate_token()# Use existing tokenclient.token="YOUR_TOKEN"# Exchange refresh token for new access tokennew_token=client.exchange_token(token_data["refresh"])# Get institution id by bank name and countryinstitution_id=client.institution.get_institution_id_by_name(country="LV",institution="Revolut")# Get all institution by providing country code in ISO 3166 formatinstitutions=client.institution.get_institutions("LV")# Initialize bank sessioninit=client.initialize_session(# institution idinstitution_id=institution_id,# redirect url after successful authenticationredirect_uri="https://gocardless.com",# additional layer of unique ID defined by youreference_id=str(uuid4()))# Get requisition_id and link to initiate authorization process with a banklink=init.link# bank authorization linkrequisition_id=init.requisition_idAfter successful authorization with a bank you can fetch your data (details, balances, transactions)Fetching account metadata, balances, details and transactions# Get account id after you have completed authorization with a bank# requisition_id can be gathered from initialize_session responseaccounts=client.requisition.get_requisition_by_id(requisition_id=init.requisition_id)# Get account id from the list.account_id=accounts["accounts"][0]# Create account instance and provide your account id from previous stepaccount=client.account_api(id=account_id)# Fetch account metadatameta_data=account.get_metadata()# Fetch detailsdetails=account.get_details()# Fetch balancesbalances=account.get_balances()# Fetch transactionstransactions=account.get_transactions()# Filter transactions by specific date rangetransactions=account.get_transactions(date_from="2021-12-01",date_to="2022-01-21")Premium endpoints# Get premium transactions. Country and date parameters are optionalpremium_transactions=account.get_premium_transactions(country="LV",date_from="2021-12-01",date_to="2022-01-21")# Get premium detailspremium_details=account.get_premium_details()SupportFor any inquiries please contact support atbank-account-data-support@gocardless.comor create an issue in repository.
Package: nordigen-ha-lib
Nordigen Home Assistant Integration LibNordigen is a (always*) free banking API that takes advantage of the EU PSD2
regulations. They connect to banks in over 30 countries using real banking
API's (no screen scraping).This lib uses the genericNordigen client libto
provide all the logic required for the Home Assistant integration.This lib was created to make unit testing easy whilst following the layout formats
required for HACS to function correctly.
Package: nordigen-python
Nordigen API ClientNordigen is a (always*) free banking API that takes advantage of the EU PSD2
regulations. They connect to banks in over 30 countries using real banking
API's (no screen scraping).Nordigen's API is an abstraction over the usual bank API's so that all data
is in a consistent format. They also handle all the regulations required to
get access to the data.The client is built using the pythonapi-clientlib.I found this info thanks to this site:https://www.bankapi.se/* According to Nordigen's own website :)Nordigen InfoSales pitch:https://nordigen.com/en/products/account-information/Docs:https://nordigen.com/en/account_information_documenation/api-documention/overview/API Spec:https://ob.nordigen.com/api/docsInstallationpip install nordigen-pythonUsageSome more indepth working examples can be found in./examples. Also check out the test cases for usage examples.Create a client instancefrom nordigen import Client

client = Client(token="super-secret-token")Listing available banksbanks = client.aspsps.by_country('SE')
print(banks)

# [
#   {
#     "id": "ABNAMRO_FTSBDEFAXXX",
#     "name": "ABN AMRO Bank Commercial",
#     "bic": "FTSBDEFAXXX",
#     "transaction_total_days": "558",
#     "countries": [
#       "DE"
#     ]
#   },
#   {
#     "id": "AACHENER_BANK_GENODED1AAC",
#     "name": "Aachener Bank",
#     "bic": "GENODED1AAC",
#     "transaction_total_days": "400",
#     "countries": [
#       "DE"
#     ]
#   },
#   ...
# ]Fetching the balance of your account:balance = client.account.balances("account-id")
print(balance)

# {
#   "balances": [
#     {
#       "balanceAmount": {
#         "amount": "-207.41",
#         "currency": "GBP"
#       },
#       "balanceType": "string",
#       "referenceDate": "2021-06-24"
#     },
#     {
#       "balanceAmount": {
#         "amount": "-649.63",
#         "currency": "GBP"
#       },
#       "balanceType": "string",
#       "referenceDate": "2021-06-21"
#     }
#   ]
# }
Package: nordvpn-connect
NordVPN-connectThis repo has been forked fromhttps://github.com/kboghe/NordVPN-switcherby Kristof Boghe.Thank you for your work.DescriptionThis lib allows you to connect to a NordVPN server. Works on Windows and Linux.Installpip install nordvpn-connectSimple Usagefromnordvpn_connectimportinitialize_vpn,rotate_VPN,close_vpn_connection# optional, use this on Linux and if you are not logged in when using nordvpn commandsettings=initialize_vpn("France")# starts nordvpn and stuffrotate_VPN(settings)# actually connect to server# YOUR STUFFclose_vpn_connection(settings)Usage with credentials (Only Linux)If when you usenordvpncommand it asks you for credentials, you'll need to provide them to theinitialize_vpnfunction.fromnordvpn_connectimportinitialize_vpn,rotate_VPN,close_vpn_connection# optional, use this on Linux and if you are not logged in when using nordvpn commandsettings=initialize_vpn("France","USERNAME","PASSWORD")# starts nordvpn and stuffrotate_VPN(settings)# actually connect to server# YOUR STUFFclose_vpn_connection(settings)
Package: nordvpn-converter
NordVPN Configuration ConverterPurposeThe main goal of this small script is to convert the OpenVPN configuration files (provided by theNordVPNservice) into
NetworkManager compatible files.Free software: GNU General Public License v3Documentation:https://nordvpn-converter.readthedocs.io.Requires python3FeaturesBulk conversion done in a matter of secondsHow to installSystem-widepip3 install nordvpn_converterVirtual environmentvirtualenv --python=python3 nordvpn_converter
cd nordvpn_converter
pip install nordvpn_converterFrom sourcesThe sources for NordVPN Configuration Converter can be downloaded from theGithub repo.You can either clone the public repository:$gitclonegit://github.com/cnavalici/nordvpn_converterOnce you have a copy of the source, you can install it with:$pythonsetup.pyinstallHow to useGrab the required filesIn order to generate the compatible NetworkManager files, you have to login to your NordVPN account, go forMy Accountsection,Download Area,Linuxand download.OVPN configuration filesandCA & TLS certificates.After this, you’re gonna end up with 2 archives,config.zipandca_and_tls_auth_certificates.zip.Create a new folder and unpack them there:mkdir ~/NordVPN_Data
unzip -d ~/NordVPN_Data ~/Downloads/config.zip
unzip -d ~/NordVPN_Data ~/Downloads/ca_and_tls_auth_certificates.zipLet’s assume that you have now the following structure:~/NordVPN_Data/CA\ and\ TLS\ auth\ certificates/*key
~/NordVPN_Data/CA\ and\ TLS\ auth\ certificates/*crt
~/NordVPN_Data/*.ovpnRun the conversionThe regular help information is available:usage: nordvpn_converter [-h] [--source SOURCE] [--destination DESTINATION]
                     [--certs CERTS] [--user USER] [-v] [--version]

This is a simple conversion tool.

optional arguments:
  -h, --help            show this help message and exit
  --source SOURCE       Source folder for ovpn config files
  --destination DESTINATION
                    Destination folder for output files
  --certs CERTS         Source folder for certificates
  --user USER           Username used for the NordVPN connection
  -v, --verbose         Verbose mode
  --version             show program's version number and exitAnd based on our example:nordvpn_converter --source ~/NordVPN_Data --certs ~/NordVPN_Data/CA\ and\ TLS\ auth\ certificates --destination /tmp/output --user jbravoJust note that theuseris not the local one, but the NordVPN one. The files will be automatically generated with the current local username.Theouputfolder will contain now a lot of NetworkManager compatible files.Install the NetworkManager filesMove the output files into NetworkManager connections folder and then process them.cp /tmp/output/* /etc/NetworkManager/system-connections
chmod 600 *
nmcli conn reloadNow you should be able to see those connections also in the NetworkManager applet from your graphical environment.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1 (2016-11-28)First release on PyPI.
Package: nordvpn-exporter
nordvpnPrometheus ExporterThis is not official NordVPN exporter.A simple exporter fetch info fromnordvpncli.Why?To monitor remote devices VPN connection. In my case, I use RaspberryPi4 and runnordvpnindockerDependencynordvpncli.Installation guidehereInstall$ pip3 install nordvpn_exporterUsage$ nordvpn_exporter --help
usage: nordvpn_exporter [-h] [-d] [-p PORT] [-v]

Simple NordVPN exporter

optional arguments:
  -h, --help  show this help message and exit
  -d          Run as daemon
  -p PORT     Port
  -v          show program's version number and exitRun exporter directly andcurl http://localhost:8082/metricsin another terminal$ nordvpn_exporter 
Starting NordVPN Exporter on http://localhost:8082I created a simple "daemonize" option to run exporter background$ nordvpn_exporter -d
Starting NordVPN Exporter on http://localhost:8082
[*] Running in background

$ curl http://localhost:8082/metrics | head
#=#=-#     #                                                                                                                                     
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 264.0
python_gc_objects_collected_total{generation="1"} 33.0
python_gc_objects_collected_total{generation="2"} 0.0
# HELP python_gc_objects_uncollectable_total Uncollectable object found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0