Skip to main content

A simple library for searching the node package manager database - Python 2 Flavour - This Library Does Not Require Npm

Project description

NpmSearch - Python 2 Edition

_Usage_

The NPMListener class was designed to continously monitor a search term on npm and react to any changes after querying at a set interval. that idea was shelved and put into the main app. so please extend this class as you see fit.

from npmsearch2.main import NPMListener

npm_search = NPMListener

-add this to the header anywhere

search_results = npm_search.search_file(“yourqueryhere”)

-returns a list of search results of package names that match the string

package_details = npm_search.lookup_project(“actual-package-name”)

-returns a large dict of all the package details of one package or http 404 error if not found. -use try and except to handle this.

__PREVIOUSE 2to3 CONVERSIONS HAVE FAILED - please the python3 flavour instead called: npmsearch3.__

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NpmSearch2-1.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file NpmSearch2-1.0.tar.gz.

File metadata

  • Download URL: NpmSearch2-1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for NpmSearch2-1.0.tar.gz
Algorithm Hash digest
SHA256 f8275990ef1dcd3511ef45aa5ba4afe15fd9273630c88ea363789ebc6dc15fae
MD5 4e943d6996ca79feea317246461a3746
BLAKE2b-256 ac39b70a956eb9d11a5822b3ee8a29bd36adc91edcf4a5c115e9a938c35202fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page