Saravanan666/pypi-org huggingface dataset:
Package: nostalgia
Ecosystem for combining personal dataNostalgia will help with gathering data from a variety of sources and enable you to combine them easily.It's much likeHome Assistant, providing a platform, but then for connecting data instead of IoT devices.Afterwards, it will help you filter and visualize the data.The architecture is as follows. You're looking at the core which contains the code for ingesting sources, installing the backend system and allows you to write scripts using Nostalgia Query Language.If you want to add your own data that is not supported, please for now contact us directly in eitherdiscordorslackand we'll help you get started. You can also look at theopen issuesto see suggestions for new sources.Available Data BindingsFull list of currentsources.Heartrate (Fitbit,Samsung Watch)Sleep (Fitbit,Samsung Watch, SleepCycle)Places (Google Timeline)Bank Payments (ING)Pictures (Google Photos)Emails (Gmail)App Usage (Android)Calendar (Google)Chat Conversations (WhatsApp,Facebook Messages)Music listening (Google Play Music)Music identification (Shazam)Posts (Reddit,Facebook)File Visits (Emacs)Annotated Screenshots (Tesseract)Web (Nostalgia Chrome Plugin)ProductsEventsVideosGoogle SearchPeopleIndoor Positioning (whereami)Public Transport (MijnOV)Getting startedIf you're a user:pip install nostalgiaor...pip install -e .if you might want to develop on NostalgiaFollow the instructions for asource of interestto ensure it is loadedUse the data in an interactive session (run Python) ORrun the timelineTo upgrade Nostalgia, as user runpip install -U nostalgiaor as developer rungit pull.Nostalgia Query Language - extending pandasGiven that you have payments, heartrate and google places set up, you could start Python and run:In[15]:fromnostalgia.sources.ing_banking.mijn_ingimportPaymentspayments=Payments.load()payments.by_card\.last_year\.in_office_days\.during_hours(7,12)\.by_me()\.heartrate_above(100)\.when_at("amsterdam")\.sum()Out[15]:7.65# in eurosThis will give the total expenses by card in the last week, but only on work days, at night, when my heart rate is above 80 and I'm in Amsterdam.
It combined the generic class functionality, together with data from:A Payments providerA Location providerA Heartrate providerContributingPlease contribute the data sources that others could use as well!
Package: nostalgia-chrome
nostalgia_chromeCross-platform Chrome History AnalysisSelf trackingThere is a movement of self tracking. Monitoring pulse, heartbeat and so on. But the most important is not being tracked: our online behavior.Making sure we can self document, we need the following things.Chrome only keeps its history fora max of 90 days, so we need tostart saving history.We need tocollectHTML data from the pages we visit.We need toextract and analyzedata from the HTML, such as code snippets, links, microdata, images, events.. anything really. This is done inNostalgia Core.Allowplugins(and make them configurable, pleasecontribute). The first example is that it will additionally track which videos you watch.What can you expect (Data overview)In~/nostalgia_data/meta.jsonlan index will be saved per visit:{
  "path":"/home/pascal/nostalgia_data/html/1576317113.7_httpsgithubcomnostalgiadevnostalgia_chrome.html.gz",
  "url": "https://github.com/nostalgia-dev/nostalgia_chrome",
  "time":"1576317113.75019"
}In~/nostalgia_data/htmlthe source HTML will be stored as.html.gz(reaching about 8x compression).In~/nostalgia_data/videos_watched.jsonlthe data for events on HTML5 video elements will be stored (on stop playing/close tab):{
  "playingSince": 1576273573.08,
  "seekTime": 0,
  "playingUntil": 1576273599.977,
  "duration": 26.8970000744,
  "totalClipDuration": 3510.301,
  "pageLoadTime": 1576266470.316,
  "loc": "https://www.youtube.com/watch?v=Zz-bhLjVS5o",
  "title": "Lost Frequencies | Tomorrowland Mainstage 2019 (Full Set) - YouTube",
  "likes": 24137,
  "dislikes": 946
}InstallationClone this repository:git clone git@github.com:nostalgia-dev/nostalgia_chrome.gitIn Chrome click the settings button and click "More tools" and navigate to "Extensions". Click "Load unpacked". Navigate to thechromePluginfolder and click "Open".pip install nostalgia_chromeTo test it out, runnostalgia_chrome run_server. This will run the web server in the foreground so you can see that it works.Visit a (non-file / localhost) URL so that you can verify it works. The data will be stored in~/nostalgia_data/meta.jsonl,~/nostalgia_data/html.To make surenostalgia_chromegets automatically run on boot:On Linux (systemctl based):pip install sysdm
sysdm create "nostalgia_chrome run_server" --extensions ""On Windows awaiting contribution for how to do thishttps://github.com/nostalgia-dev/nostalgia_chrome/issues/2On OSX awaiting contribution for how to do thishttps://github.com/nostalgia-dev/nostalgia_chrome/issues/1
Package: nostalgia-fitbit
# MyFitbitBecause“Your data belongs to you!”…and fitbit’s own data export sucks.![Python version](https://img.shields.io/pypi/pyversions/nostalgia_fitbit.svg?style=flat)
[![Build status](https://img.shields.io/travis/Knio/nostalgia_fitbit/master.svg?style=flat)](https://travis-ci.org/Knio/nostalgia_fitbit)
[![Coverage status](https://img.shields.io/coveralls/github/Knio/nostalgia_fitbit/master.svg?style=flat)](https://coveralls.io/r/Knio/nostalgia_fitbit?branch=master)
[![PyPI version](https://img.shields.io/pypi/v/nostalgia_fitbit.svg?style=flat)](https://pypi.org/project/nostalgia_fitbit/)
[![PyPI downloads](https://img.shields.io/pypi/dm/nostalgia_fitbit.svg?style=flat)](https://pypi.org/project/nostalgia_fitbit/)## Installationpip install nostalgia_fitbit## Setupnostalgia_fitbitassumes a registered app.To get started, follow the prompts after running (will open a browser):nostalgia_fitbitThe app should look like this:The Callback URL must be exactlyhttp://localhost:8189/auth_code<img src=”docs/fitbit_app.png” width=”271” height=”606”>Note that the fitbit API is rate limited to 150 calls/hour, and you can query only 1 day of heartrate data at a time. If you many days of data, you will be rate limited and see an HTTP 429 error. Simply re-run the command an hour later and it will resume downloading where it left off.## Generate reportNote: This is not officially supported by nostalgia` python3-mnostalgia_fitbit.report--user123ABC `Use the user id seen in the output from step 2This will generatereport.htmlin your current working directory.![Fitbit Report](docs/fitbit.png)
Package: nostocalean
Custom utility functions.This package contains a collection of utility functions for empirical work in Python.
It’s in progress and the API may change often. In addition to custom utility methods,
the package includes wrappers forfixestanddid.Example: Given a dataframedfwith columnsx, y, group_a, group_brun a regression ofyonxwith group fixed effects, and double cluster:fromnostocaleanimportestsummary=est.reg("y ~ x | group_a + group_b",data=df,cluster="~group_a+group_b")print(summary)Example: Given a dataframedfwith columnsy, first_treat, group, timereport event study (aggregated group-time) estimates:fromnostocaleanimportestsummary=est.es(y="y",d="first_treat",g="group",t="time",data=df)print(summary)Nostocalean also includes several utility functions, including CES and HARAExample: To sample a utility function, run:fromnostocaleanimportutility_functionsutility_functions.get_utility_function()
Package: nostr-bot
nostr botA Python nostr bot frameworkTo install:pip installnostr-botTo run:nostr-botrunFor instance:PUBLIC_KEY=84dee6e676e5bb67b4ad4e042cf70cbd8681155db535942fcc6a0533858a7240 KINDS=1,4,5,7nostr-botrun-cnostr_bot.examples.gotmail.GotMailBotSee theexamplesfor more ideas of what you can do!Free software: BSD licenseDocumentation:https://nostr-bot.readthedocs.io.FeaturesRPC using ephemeral eventsautomatic reconnectsimple APICreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.3.0 (2023-02-02)Added a bot for mirroring.0.1.0 (2023-01-26)First release on PyPI.
Package: nostream-exporter
Prometheus openmetrics for NostreamA devops component for directly monitoring yournostream relay, which can be integrated with your self-hosted SRE stack. If you don't have a monitoring system set up already, this won't be useful to you. It's basically a python script that runs Postregsql queries to compile basic metrics.Installation and Usagepipinstallnostream-exporterDefine the connection parameters to your Nostream via environment variables. There are multiple ways you can set it up. One example is to create an.envfile with the following contents:exportDB_HOST=/var/run/postgresqlexportDB_PORT=5432exportDB_NAME=nostreamexportDB_USER=nostreamexportDB_PASSWORD='hunter2'exportMETRICS_PORT=9101exportMETRICS_BIND=127.0.0.1Both theMETRICS_PORTandMETRICS_BINDoptions are optional, the defaults are shown.I would recommend running this as an unprivileged user via systemd (or anything comparable):useradd-mb/opt-k/dev/null-s$(whichnologin)nostream_exporterCreate/etc/systemd/system/nostream_exporter.service:[Unit]Description=Basic openmetrics for Nostream nostr relay[Service]User=nostream_exporterGroup=nostream_exporterEnvironmentFile=/opt/nostream_exporter/.envExecStart=nostream_exporterRestart=on-failureRestartSec=2m[Install]WantedBy=multi-user.targetConfirm that it is serving metrics:curlhttp://127.0.0.1:9101/metrics
...# HELP events Count of events by kind# TYPE events gaugeevents{kind="7"}48184.0
events{kind="1"}24659.0
events{kind="6"}3737.0
events{kind="1984"}3236.0
events{kind="4"}2265.0
events{kind="other"}762.0DevelopmentClone the repo and install dependencies into a local virtual environment:gitclonegit@github.com/bleetube/nostream_exportercdnostream_exporter
python-mvenv.venvsource.venv/bin/activate
pipinstall--upgradepip
pipinstall--editable.source.env
nostream_exporterNote that there is a difference betweensource .envand systemd EnvironmentFile which is that you'll need to have the export keyword. i.e.export DB_NAME=nostreamRoadmapInclude testsChangeprint()messages into sensible logging with configuration debug levels.Review events table to possibly discover more metrics.Dockerfile
Package: nostril
DescriptionThis is a Nose Wrapper to make it easy to test Python Packages from within Python.This is done using the module instance or the module name with the following command:importnostrilnostril.run('mypackage')# Package name, you must be able to import mypackagenostril.run(mypackage)# Or, if mypackage is already imported...OptionsAlongside with the package name a serie of keyworded arguments can be passed, such as:cover=Truein order to include cover coverage to the tests.html=Truein order to include coverage and output it to html.xml=Truein orer to include coverage and output it to a xml file.open_html=Truein order to include html and open the index.html in the end.How to installAs easy aspip install nostril
Package: no-string-hints
no-string-hintsA pre-commit hook to automatically remove string literals as type hints from argument, return, and class variable type annotations. Will only make the replacement if your file containsfrom __future__ import annotations.Installationpip install no-string-hintsAs a pre-commit hookSeepre-commitfor instructionsSample.pre-commit-config.yaml:-repo:https://github.com/MarcoGorelli/no-string-hintsrev:v0.2.0hooks:-id:no-string-hintsCommand-line example$catmyfile.pymyvar: 'str'$no_string_hintsmyfile.py$catmyfile.pymyvar: strSee alsoCheck outpyupgrade, which I learned a lot from when writing this.
Package: nostr-protocol
Nostr - Python PackageDescriptionPython bindings ofnostrlibrary.If you're writing a typical Nostr client or bot, you may be interested innostr-sdk.Getting startedpipinstallnostr-protocolfromnostr_protocolimportKeys,EventBuilderkeys=Keys.generate()print(keys.secret_key().to_bech32())print(keys.public_key().to_bech32())print("Mining a POW text note...")event=EventBuilder.text_note("Hello from Rust Nostr Python bindings!",[]).to_pow_event(keys,20)print(event.as_json())More examples can be found in theexamples/directory.Supported NIPsLook athttps://github.com/rust-nostr/nostr/tree/master/crates/nostr#supported-nipsStateThis library is in an ALPHA state, things that are implemented generally work but the API will change in breaking ways.Donationsrust-nostris free and open-source. This means we do not earn any revenue by selling it. Instead, we rely on your financial support. If you actively use any of therust-nostrlibs/software/services, then pleasedonate.LicenseThis project is distributed under the MIT software license - see theLICENSEfile for details
Package: nostrpy
nostrpyCI/CDCLI forNostrInstallation❯pipinstallnostrpyUsageShow nostr version❯nostr--version
nostr,version0.6.0Generate a key pair❯nostrkeynew{"Private key":"nsec1w54...edu3","Public key":"npub1s92...7ckp"}Transform a public key to hex format, or from hex format to public key format❯nostrkeyconvert-i1a60c40a7...b472{"npub":"npub1rfs...c9tg","hex":"1a60c40a7...b472"}Publish a message❯nostrmessagepublish-s<thesendernseckey>-m"Hello, publishing a message through nostr CLI."{"Message":"Hello, publishing a message through nostr CLI."}Send an encryped direct message❯nostrmessagesend-s<thesendernseckey>-m"Hello, sending an encryped direct message"-p<thereceivernpubkey>{"Message":"Hello, sending an encryped direct message"}Receive message(s)❯ nostr message receive -p <the npub key to receive the messages>
{
  "Public key": "npub1rfs...c9tg",
  "Events": [
    "Hello, publishing a message through nostr CLI.",
    "Hello, sending an encryped direct message"
  ],
  "Notices": []
}Simplify the CLI with a config file:config.hcl:nostr {
    relays = [
        "wss://nostr-pub.wellorder.net",
        "wss://relay.damus.io",
    ]

    self {
        name = "Ali Kiten"

        nsec = "nsec1jqa...fcjd"
    }

    receiver "Ray" {
        name = "Ray Nostr"

        npub = "npub1q75...c62u"
    }

    listen "jon" {
        name = "Jonathon Gate"

        npub = "npub1s9c...a9je"
    }

    listen "jack" {
        name = "Jack Hoose"

        npub = "npub1s9c...a9je"
    }
}By default, nostr will search the current pathconfig.hclfirst, then${HOME}/.nostr/config.hcl.You can also manually specify the config file by:❯ nostr message -c <path/to/the/config.hcl> receive -i jackOnce setting up the config file, the above message commands could be much simpler:Publish a message with config file❯nostrmessagepublish-m"Hello, publishing a message through nostr CLI."{"Message":"Hello, publishing a message through nostr CLI."}Send an encryped direct message❯nostrmessagesend-m"Hello, sending an encryped direct message"-i<thereceiveridentifier,like"Ray"intheabovesample>{"Message":"Hello, sending an encryped direct message"}Receive message(s)❯ nostr message receive -i <the listen indentifier in the above sample config file>
{
  "Public key": "npub1rfs...c9tg",
  "Events": [
    "Hello, publishing a message through nostr CLI.",
    "Hello, sending an encryped direct message"
  ],
  "Notices": []
}Development & TestSee theTest Suite READMEFeel free to add issues, add PRs, or provide any feedback!CreditsRepositories:https://github.com/jeffthibault/python-nostrhttps://github.com/BrightonBTC/bijahttps://github.com/holgern/pynostr
Package: nostr-relay
This is a Python 3.9+ implementation of anostrrelay.FeaturesStores data in LMDB, SQLite or Postgresql. SeeStorageScalableto thousands of concurrent clientsDynamic allow/deny listsConfigurable garbage collectorConfigurableevent validatorsFull-text indexingCan serve as a NIP-05identity providerSupport for NIP-42authenticationSupport forrate-limitingSupports more NIPs than any other relay implementation:NIP-01– basic protocolNIP-02– contact listsNIP-05– verifying identityNIP-09– deletion eventsNIP-11– relay metadataNIP-12– generic tagsNIP-15– EOSENIP-20– command resultsNIP-26– delegated eventsNIP-33– parameterized replaceable eventsNIP-40– expiration eventsNIP-42–authenticationNIP-50–full-text searchNIP-65– Relay listsPluggable features, allowing you to use nostr_relay as a library for your own custom implementationInstallationpip install nostr-relayTo run:nostr-relay serveto change the location of the database and other settings, create a yaml config file that lookslike this:and run withnostr-relay -c /path/to/config.yaml serveThen addws://127.0.0.1:6969to your relay list.(obviously, in production you should use a TLS certificate)Visitthe nostr-relay fossil repositoryfor more information.
Package: nostr-sdk
Nostr SDK - Python PackageDescriptionA high-level,Nostrclient library.If you're writing a typical Nostr client or bot, this is likely the crate you need.However, the crate is designed in a modular way and depends on several other lower-level libraries. If you're attempting something more custom, you might be interested in these:nostr-protocol: Implementation of Nostr protocolGetting startedpipinstallnostr-sdkfromnostr_sdkimportKeys,Client,NostrSigner,EventBuilder,Filter,Metadata,Nip46Signer,init_logger,LogLevelfromdatetimeimporttimedeltaimporttime# Init loggerinit_logger(LogLevel.INFO)# Initialize client without signer# client = Client(None)# Or, initialize with Keys signerkeys=Keys.generate()signer=NostrSigner.keys(keys)client=Client(signer)# Or, initialize with NIP46 signer# app_keys = Keys.generate()# nip46 = Nip46Signer("wss://relay.damus.io", app_keys, None)#signer = NostrSigner.nip46(nip46)# client = Client(signer)# Add a single relayclient.add_relay("wss://relay.damus.io")# Add multiple relaysclient.add_relays(["wss://relay.damus.io","wss://nos.lol"])# Connectclient.connect()# Send an event using the Nostr Signerbuilder=EventBuilder.text_note("Test from Rust Nostr Python!",[])client.send_event_builder(builder)client.set_metadata(Metadata().set_name("Testing Rust Nostr"))# Mine a POW event and sign it with custom keyscustom_keys=Keys.generate()print("Mining a POW text note...")event=EventBuilder.text_note("Hello from Rust Nostr Python bindings!",[]).to_pow_event(custom_keys,20)event_id=client.send_event(event)print("Event sent:")print(f" hex:{event_id.to_hex()}")print(f" bech32:{event_id.to_bech32()}")time.sleep(2.0)# Get events from relaysprint("Getting events from relays...")filter=Filter().authors([keys.public_key(),custom_keys.public_key()])events=client.get_events_of([filter],timedelta(seconds=10))foreventinevents:print(event.as_json())More examples can be found at:https://github.com/rust-nostr/nostr/tree/master/bindings/nostr-ffi/bindings-python/exampleshttps://github.com/rust-nostr/nostr/tree/master/bindings/nostr-sdk-ffi/bindings-python/examplesSupported NIPsLook athttps://github.com/rust-nostr/nostr/tree/master/crates/nostr#supported-nipsStateThis library is in an ALPHA state, things that are implemented generally work but the API will change in breaking ways.Donationsrust-nostris free and open-source. This means we do not earn any revenue by selling it. Instead, we rely on your financial support. If you actively use any of therust-nostrlibs/software/services, then pleasedonate.LicenseThis project is distributed under the MIT software license - see theLICENSEfile for details
Package: nosuplodapi
python封装nos上传文件逻辑，支持大文件(>100M)分片上传安装pip install nosuplodapi初始化实例from uploadapi import UploadClient

# 初始化nos上传实例
uploadClient = UploadClient(access_key="******",
                            secret_key="******",
                            bucket="******",
                            end_point="******")注: 所需对象存储请到网易云开发者平台申请上传文件result = uploadClient.upload(path="******")返回数据{
  'url': 'nos下载地址',
  'fileByteSize': 文件大小,
  'md5': '文件md5值',
  'fileName': '源文件名'
}参考文档nos python sdk 手册
Package: nota
notais an open-source application for organizing textual notes and
associated meta-information that may be used for later retrieval.  Seehttp://dankelley.github.io/notafor documentation on installing and usingnota.Version history0.8.12: permit empty lines in output.0.8.11: default pager to 'none'.  (I was seeing problems in macos. Perhaps
the arguments to 'less' have changed.)0.8.10: add -p argument (for piping output of single notes)0.8.9: only show hints if --hints arg is given0.8.8: only mention trash if nothing in main0.8.7: improve time formatting0.8.6: remove string-decode bug (from python3 switch); try pypi description0.8.1: switch from python2 to python30.8.0: attachments0.7.9: aesthetic improvements0.7.8: aesthetic improvements0.7.7: --recent improved0.7.6: --markdown improvements; --recent added0.7.5: indicate ages in relative manner0.7.4: fix bug in note age0.7.3: improve note age format0.7.2: do not store empty notes0.7.1: add --pager argument (helps with long output)0.7.0: notes may be organized into books0.6.0: improve command arguments, esp. relating to searching and trash0.5.x: first releases tohttps://pypi.python.org/pypi/nota
Package: notabene-cli
Bring best practices from software engineering to your jupyter notebooks usingNotaBene.Knowledge is best transfered when its presentation is familiar. Notabene enables you to standardize and simplify knowledge transfer on data insights.Homepage:https://notabene.cloud/Source Code:https://github.com/JeroenPeterBos/notabene-cliDocumentation:https://notabene-cli.readthedocs.ioPyPI:https://pypi.org/project/notabene-cli/FeaturesNotebook TemplatesCreate and use your own library of notebook templatesGetting StartedThe project's documentation contains a section to help youget started.InstallationInstallNotaBeneusing:pip install notabene-cliUsageEnsure you have apyproject.tomlfile in the root of your project (can be empty).
Run on of the following commands to interact with the templates in your project.notabene template create
notabene template list
notabene template useFor more information on how to get startedvisit the documentation.Development PrerequisitesIf you're going to be working in the code (rather than just using the library), you'll want a few utilities.GNU MakeCondaAuthorsJeroen Peter Bos-Initial work-githubSee also the list ofcontributorswho participated in this project.LicenseCopyright (c) Jeroen Peter BosAll rights reserved.
Package: notagain
Not again!Memoize any function with this lightweight decorator, even across runs. It stores results in memory and disk.The decorator makes use of the Pickle module to store (and retrieve) function results in a local cache folder.Memoization is sensible to the functioninput argumentsandsource code, if any of these change
the function gets executed and its output cached.Get itpip install notagainUse itfromnotagainimportmemoize@memoize()defexpensive_function(arg,kwarg=None):# i.e. some boring queryreturnargControl itYou can change the pickles path. You can deactivate memory and/or disk cache.@memoize(cache_dir='tmp',memory_cache=True,disk_cache=True)If you would like to disable this library info messages.logging.getLogger('notagain').setLevel('WARNING')About the namehttps://www.youtube.com/watch?v=SOBNO4gl_yM
Package: notario
notarioA flexible and succinct Python dictionary validator with the ability to
validate against both keysandvalues. Schemas are smaller and readable
representations of data being validated.Fully documented and thoroughly tested.Documentation:http://notario.cafepais.comTested against:Python 2.7Python 3.3Python 3.4PyPy 1.5PyPy 1.6PyPy 1.7PyPy 1.8PyPy 1.9With coverage hovering at around99%
Package: notarius
NotariusNotarius submits a macOS application package to Apple to be notarized.RequirementsPython3Xcode 10+Installationpip install notariusUsage$ notarius -h
Usage: notarius [options]

Options:
  -h, --help      show this help message and exit
  -f FILENAME     DMG to use (required for all actions)
  --mock          Use mock answers

  Notarize app:
    --notarize
    -b BUNDLE_ID  App's bundle ID
    -p PASSWORD   Apple developer account's password
    -u USERNAME   Apple developer account

  Validate app after notarization:
    --validate