Saravanan666/pypi-org huggingface dataset:
Package: private-insta-api-package
Fast and effective Instagram Private API wrapper (public+private requests and challenge resolver).Use the most recent version of the API from Instagram.Features:Performs Public API (web, anonymous) or Private API (mobile app, authorized)
requests depending on the situation (to avoid Instagram limits)Challenge Resolver have Email (as well as recipes for automating receive a code from email) and SMS handlersSupport upload a Photo, Video, IGTV, Clips (Reels), Albums and StoriesSupport work with User, Media, Insights, Collections, Location (Place), Hashtag and Direct objectsLike, Follow, Edit account (Bio) and much more elseInsights by account, posts and storiesBuild stories with custom background, font animation, swipe up link and mention usersIn the next release, account registration and captcha passing will appear
Package: privatejet
DescriptionThis is a python backend framework for building REST applications. It is built on top of the ASGI specification and uses the uvicorn server.Installationpoetryinstall
poetryshell
pythonsetup.pybdist_wheel
pipinstalldist/privatejet-0.0.3-py3-none-any.whlUsage"""This is an example of how to use PrivateJet."""fromtypingimportCallablefromprivatejet.mainimportPrivateJetfromprivatejet.middlewaresimportCORSMiddlewarefromprivatejet.routerimportJetRouterprivate_jet=PrivateJet()asyncdefapp(scope:dict[str,str],receive:Callable,send:Callable)->None:"""This function is called by the ASGI server."""awaitprivate_jet.add_middleware(CORSMiddleware)awaitprivate_jet.add_router(router={"prefix":"/users","router":UserRouter})awaitprivate_jet.start(scope=scope,receive=receive,send=send)classUserRouter(JetRouter):"""User Router"""asyncdefget(self,request:dict[str])->None:"""When request method is GET and the path is like this:- /users"""awaitself.send_message([{"name":"alex","age":20},{"name":"john","age":30},])asyncdefget_one(self,request:dict[str])->None:"""When request method is GET and the path is like this:- /users/1"""awaitself.send_message({"name":"alex","age":20})asyncdefpost(self,request:dict[str])->None:"""When request method is POST and the path is like this:- /users"""awaitself.send_message({"message":"User created successfully","user":{"name":request["body"]["name"],"age":request["body"]["age"],},})asyncdefput(self,request:dict[str])->None:"""When request method is PUT and the path is like this:- /users/1"""awaitself.send_message({"message":"User updated successfully","user":{"name":request["body"]["name"],"age":request["body"]["age"],},})asyncdefpatch(self,request:dict[str])->None:"""When request method is PATCH and the path is like this:- /users/1"""awaitself.send_message({"message":"User patched successfully","user":{"name":request["body"]["name"],"age":request["body"]["age"],},})asyncdefdelete(self,request:dict[str])->None:"""When request method is DELETE and the path is like this:- /users/1"""awaitself.send_message({"message":"User deleted successfully",})LicenseThis project is licensed under the terms of the MIT license.
Package: private-join-and-compute
This library contains a python wrapper over OpenSSL/BoringSSL elliptic curves.Example Usage:from private_join_and_compute.py.ciphers import ec_cipher
from private_join_and_compute.py.crypto_util import supported_curves
from private_join_and_compute.py.crypto_util import supported_hashes

client_cipher = ec_cipher.EcCipher(
  curve_id=supported_curves.SupportedCurve.SECP256R1.id,
  hash_type=supported_hashes.HashType.SHA256,
  private_key_bytes=None) # "None" generates a new key
encrypted_point = client_cipher.Encrypt(b"id_bytes")
Package: privat-exchange-rates
Official Repo:https://github.com/ValentynKhoroshchak/privat-exchange-ratesIt uses the following libraries:Requestsfor requests to exchange ratesQuick Install / Usagepipinstallprivat_exchange_ratesfromdatetimeimportdatetimefromprivat_exchange_ratesimportget_exchange_ratesdefmain():exchange_rates=get_exchange_rates(datetime(day=21,month=4,year=2022))print(exchange_rates)# Output:# {#     'date': '21.04.2022',#     'bank': 'PB',#     'baseCurrency': 980,#     'baseCurrencyLit': 'UAH',#     'exchangeRate': [{#         "baseCurrency": "UAH",#         "currency": "AUD",#         "saleRateNB": 12.8319250,#         "purchaseRateNB": 12.8319250#     }]# }
Package: privex-aioipfs
info:AsynchronousIPFSclient libraryaioipfsis a python3 library providing an asynchronous API forIPFS.
Supported python versions:3.6,3.7,3.8,3.9NOTE:This is a separate fork of theOriginalcreated by @pinnaculum (formerlycipres).
This fork is maintained byPrivex Inc.(primarily by @someguy123) - a Belizean server hosting + technology company.Installationpip3installprivex-aioipfs# Or if you use pipenvpipenvinstallprivex-aioipfsUsage examplesGet an IPFS resourceimportsysimportasyncioimportaioipfsasyncdefget(ipfshash):client=aioipfs.AsyncIPFS()awaitclient.get(ipfshash,dstdir='.')awaitclient.close()loop=asyncio.get_event_loop()loop.run_until_complete(get(sys.argv[1]))loop.close()Add some filesThis example will import all files and directories specified on the command
line. Note that theaddAPI function is an asynchronous generator and
therefore needs to be used with theasync forsyntax.importsysimportasyncioimportaioipfsasyncdefadd_files(files):client=aioipfs.AsyncIPFS()asyncforadded_fileinclient.add(*files,recursive=True):print('Imported file{0}, CID:{1}'.format(added_file['Name'],added_file['Hash']))awaitclient.close()loop=asyncio.get_event_loop()loop.run_until_complete(add_files(sys.argv[1:]))loop.close()Pubsub serviceasyncdefpubsub_serve(topic):asyncwithaioipfs.AsyncIPFS()ascli:asyncformessageincli.pubsub.sub(topic):print('Received message from',message['from'])awaitcli.pubsub.pub(topic,message['data'])FeaturesAsync file writing on get operationsTheaiofileslibrary is used to asynchronously write data retrieved from
the IPFS daemon when using the/api/v0/getAPI call, to avoid blocking the
event loop. TAR extraction is done in asyncio’s threadpool.RequirementsPython >= 3.6, <= 3.9aiohttpaiofilesyarlLicenseaioipfsis offered under the GNU Lesser GPL3 (LGPL3) license.
Package: privex-iota
Privex's Random IOTA ToolsIOTA library and command line tools for interacting with IOTA Hornet server APIWARNING: Still under construction+===================================================+
|                 © 2020 Privex Inc.                |
|               https://www.privex.io               |
+===================================================+
|                                                   |
|        Privex's Random IOTA Tools                 |
|        License: X11/MIT                           |
|                                                   |
|        Core Developer(s):                         |
|                                                   |
|          (+)  Chris (@someguy123) [Privex]        |
|                                                   |
+===================================================+

Privex's Random IOTA Tools
Copyright (c) 2020    Privex Inc. ( https://www.privex.io )Install# Install/Upgrade privex-iota using pip3 as rootsudo-Hpython3.8-mpipinstall-Uprivex-iotaUsage# Show status information for local IOTA node at http://localhost:14265
iota-status

# Show status information for a remote IOTA node
iota-status https://iota.se1.privex.cc

# Show status information as raw JSON instead of colourful human output
iota-status --raw
iota-status --raw https://iota.se1.privex.cc

# Show help
iota-status --help
iota-status -h

####
# Alternatively invoke as a python module (works the same as iota-status executable)
####

# Show status information for local IOTA node at http://localhost:14265
python3.8 -m privex.iota
# Show status information for a remote IOTA node
python3.8 -m privex.iota https://iota.se1.privex.cc
Package: privex-mail-queue
Django Mail QueueThis is a fork ofhttp://github.com/dstegelman/django-mail-queuemaintained byPrivex Inc.Privex publishes the fork under the PyPi packageprivex-mail-queue(since v3.2.0) to avoid conflicts
with the original version.This fork is considered to be actively maintained by Privex for both bug fixes and feature additions since
December 2018.If our fork has helped you, considergrabbing a VPS or Dedicated Server from Privex- prices start at as little
as US$0.99/mo (yes that's 99 cents a month, and we take cryptocurrency!)Mail Queue provides an easy and simple way to send email.  Each email is saved and queued up either in
real time or with Celery.  As always, feedback, bugs, and suggestions are welcome.Documentationhttp://readthedocs.org/docs/django-mail-queue/en/latest/Mail Queue provides an admin interface to view all attempted emails and actions for resending failed messages.Support/Help/Spam/Hate MailIf you have questions/problems/suggestions the quickest way to reach me to is simply add a GitHub issue to this project.Running the Tests Locallypip install django
pip install -r requirements.txt

py.test mailqueue
Package: privGan
This repository contains the source code for PrivGan - a novel approach     for deterring membership inference attacks on GAN generated synthetic medical data.Currently,     the repository contains the jupyter notebooks for various datasets. We will be converting     the code into a library in the future. Please visit our paper     "PrivGAN: Protecting GANs from membership inference attacks at low cost"ArXiv Linksubmitted at PETS 2021.
Package: privibot
privibotThis library provides decorators to restrict access to your Telegram bot handlers based on privileges given to users.
The privileges are stored in a database through SQLAlchemy (SQLite, Postgres, etc.).Requirementsprivibot requires Python 3.6 or above.To install Python 3.6, I recommend usingpyenv.# install pyenvgitclonehttps://github.com/pyenv/pyenv~/.pyenv# setup pyenv (you should also put these three lines in .bashrc or similar)exportPATH="${HOME}/.pyenv/bin:${PATH}"exportPYENV_ROOT="${HOME}/.pyenv"eval"$(pyenvinit-)"# install Python 3.6pyenvinstall3.6.8# make it available globallypyenvglobalsystem3.6.8InstallationWithpip:python3.6-mpipinstallprivibotWithpipx:python3.6-mpipinstall--userpipx

pipxinstall--pythonpython3.6privibotUsageTo restrict access to a handler, decorate your callback functions like following:fromprivibotimportrequire_access,require_admin@require_accessdefcallback_for_registered_users(update,context):pass@require_admindefcallback_for_admins_only(update,context):passTo use custom privileges, define them like so:# privileges.pyfromprivibotimportPrivilege,PrivilegesasPsclassPrivileges(Ps):MEDIA_MANAGER=Privilege(name="media_manager",verbose_name="Media Manager",description="This privilege allows users to act (accept or reject) on media-related requests.",)USER_MANAGER=Privilege("user_manager","User Manager","This privilege allows users to manage access of other users to the bot.")TESTER=Privilege("tester","Tester","This privilege allows users to test new things.")Now simply use these privileges with the decorator:fromprivibotimportrequire_privilegesfrom.privilegesimportPrivileges@require_privileges([Privileges.USER_MANAGER])defcallback_for_user_managers_only(update,context):passYou can also manually check for privileges like so:fromprivibotimportUserfrom.privilegesimportPrivilegesdefsome_callback(update,context):telegram_user=update.effective_userdb_user=User.get_with_id(telegram_user.id)ifdb_user.has_privilege(Privileges.TESTER):# do somethingelifdb_user.has_privileges([Privileges.MEDIA_MANAGER,Privileges.USER_MANAGER]):# do something elseUsers who do not pass the privilege test will receive a message saying they have been denied access.Built-in handlersThis library also provides handlers and their callbacks for the following commands:/start/help/requestAccess/myPrivileges/grant/revoke
Package: privileged-residues
Privileged ResiduesPrivileged Residues contains methods for placing residues on the surface of a target protein that can be added to a RIF.Free software: Apache Software License 2.0Documentation:https://privileged-residues.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-02-05)First release on PyPI.This package is used to position amino acid residues at a protein interface in a “privileged” position.
Package: privileges
privilegesmakes segmenting authenticated users easy and extensible.Unlike Django permissions,privilegesis not tied to operations on
individual models. It operates at a higher level of abstraction and is instead
concerned more with providing the site developer complete freedom in determining
who can do what. There certainly is some overlap with the built in permissions
system, and while you could useprivilegesto replace it, at least large
parts of it, that is not the aim of this app.Instead, think ofprivilegesallowing the site developer to control
access to certain features. Operating at the template and view layers the site
developer can paint as broad or as fine of strokes to suit their needs.It is extensible in the sense that the site developer can define and register
their own privilege validation handlers. In fact they must define at least one
handler. There is a template tag for checking privileges in templates and a
decorator for checking privileges when a view is called.There is a model that stores the named privileges which are nothing more than
named slugs. The records carry no special meeting toprivilegesin isolation
but depend on the site developer to impart meaning through reference in his
site.Sponsorshipdevelopment sponsored byMidwest Communications
Package: privlib
SoBigData Privacy LibraryLicenseThis project is licensed under the terms of the BSD 3-Clause "New" or "Revised" License.DocumentationThe full documentation is available here:DocumentationQuickinstallpip install privlibAcknowledgementsThis repository was developed within theSoBigData++H2020 project training activities (WP4) to support "Social Mining and Big Data resources Integration" (WP8).Contact(s)Roberto Pellungrini
Package: priv-masker
PrivMaskerPrivMasker, to narzędzie do anonimizacji danych osobowych i wrażliwych w dokumentach. Biblioteka umożliwia automatyczną detekcję oraz szybkie i skuteczne maskowanie danych osobowych i wrażliwychw różnego typu dokumentach. W zależności od rodzaju tekstu i preferencji użytkownika możliwy jest opcjonalny wybór maskowanych komponentów:imię i nazwiskodane kontaktowe (nr. telefonów, adresy e-mail)adresy fizycznedatynumery identyfikacyjnekwotyInstalacja1. Zainstaluj PrivMaskerapip install priv_masker2. Pobierz i zainstaluj model Spacypobierzpl_nask 0.0.5zainstaluj:python -m pip install <PATH_TO_MODEL/pl_nask-0.0.5.tar.gz>Użycieimportspacyfrompriv_maskerimportadd_pipeline,analyse_text,AnalyseOut# dostępne maski (False - wyłączone)masked_components={'date_mask':True,'persname_mask':True,'contact_mask':True,'address_mask':True,'id_numbers_mask':True,'cash_mask':True,'orgname_mask':True}nlp=spacy.load('pl_nask')nlp=add_pipeline(nlp)text="Halina Kowalska (tel. 228595959, adres e-mail: halina.kowalska@xyz.com), reprezentująca Stowarzyszenie Przedsiębiorców Polskich, zamieszkała w Warszawie przy ulicy Juliusza Słowackiego 13/13, identyfikująca się numerem PESEL 76121305873, złożyła w dniu 12 sierpnia 2022 oświadczenie wyjaśniające i uiściła karę grzywny w wysokości 500 złotych."masked_text=analyse_text(text,nlp,masked_components,out=AnalyseOut.TEXT)# [XXX] [XXX] (tel. [XXX], adres e-mail: [XXX]), reprezentująca [XXX] [XXX] [XXX], zamieszkała w [XXX] przy [XXX] [XXX] [XXX] [XXX], identyfikująca się numerem PESEL [XXX], złożyła w dniu [XXX] [XXX] [XXX] oświadczenie wyjaśniające i uiściła karę grzywny w wysokości [XXX] złotych.doc=analyse_text(text,nlp,masked_components,out=AnalyseOut.DOC)# obiekt SpacyWersjav0.0.4Dodanie kodu PrivMaskeraDodanie dokumentacjiDodanie licencjiPoprzednie wersjeImplementacjaSzczegółowe informacje na temat biblioteki umieszczone są w dokumentacji.KontaktAdam Nowakowskiadam.nowakowski@nask.pl|Inez Okulskainez.okulska@nask.plCopyright (C) 2022 NASK PIB
Package: privtext
privtext-pythonA command line utility to create private text messages on privtext.com. A must have utility for sys admins.InstallpipinstallprivtextUseExample shell command:privtext"Hello world"Will encrypt the text "Hello world" and save on server, a one-time URL will be displayed:https://privtext.com/hJwMs9#RPQxSwqPaaR4tJEXOpen the link, the text "hello world" will be decrypted and displayed, the record on the server will be deleted immedately.Why?Safely share your secrets in chats, emails, and social networks. Never send your passwords in plain text, the logs are left on servers, your desktop. Make sure your chat logs do not compromise your secrets.LinksPrivText.com - privtext on the WebPyPIGithubIssuesCode of ConductEveryone interacting in the privtext project's codebases, issue trackers, chat rooms, and mailing lists is expected to
follow thePSF Code of Conduct.
Package: privugger
Privugger: Data Privacy DebuggerDocs and tutorials:https://itu-square.github.io/privugger/Privugger (/prɪvʌɡə(r)/) is a privacy risk analysis library for python
programs.  Privugger, takes as input a python program and a
specification of the adversary's knowledge about the input of the
program (theprior knowledge), and it returns a wide variety of
privacy risk analyses, including the following leakage measures:Knowledge-based probability queriesEntropyMutual InformationKL-divergencemin-entropyBayes risk...Furthermore, Privugger is equipped with a module to performautomatic
attacker synthesis. That is, given a program and a leakage measure,
it finds the adversary's prior knowledge that maximizes the
leakage. In other words, it tells us what is the minimum amount of
information that the adversary must know in order for the program to
exhibit privacy risks. If this knowledge is publicly available, then
the program does not effectively protect users' privacy.InstallationPrivugger is a tool written entirely in Python and can be installed using the pip packet manager.To install write following in command line:pip install privuggerUsage:import privugger as pvx = pv.Normal(...)ds = pv.Dataset(...)program = pv.Program(...)trace = pv.infer(...)
Package: privy-python-sdk
Privy Python SDKPython SDK for Privy Digital Signaturehttps://console.privy.id/API DocumentationPlease checkPrivy Api Reference.RequirementsPython 3.7 or laterInstallationpipinstallprivy-python-sdkUsageInitializationfromprivy_python_sdk.privyimportPrivyprv=Privy(privy_enterprise_token="key-123",privy_merchant_key="xxxxxxxxxxxxx",privy_username="foo",privy_password="bar",privy_id='TE1111',production=False)Privy User RegistrationArgs:emailstring- User's emailphonestring- User's phone (e.g: 08233324223)selfiestring- Close up photo of registrant (.png, .jpg, or .jpeg)ktpstring- KTP Photo of the user (.png, .jpg, or .jpeg)nikstring- NIK must be 16 digits and the sixteenth digit can't be 0namestring- name of the userdate_of_birthstring- date of birth of the user (1983-01-02)Returns:Return referencehttps://console.privy.id/documentation#registrationprv.register_user(date_of_birth="1983-01-02",email="foo@bar.com",ktp="/upload/ktp.jpg",selfie="/upload/selfie.jpg",name="foo bar",nik="1234567891234567",phone="08233324223")Get User's Registration StatusCheck registration status of user.Args:tokenstring- User's token from Registration APIReturns:Return referencehttps://console.privy.id/documentation#check-registration-statusprv.register_status(token="b3lkdfaoir0294058klkadfk45qeorlkldakfgh")Upload DocumentArgs:titlestring- title of the documentdocument_pathstring- path of the documentrecipientstring- recipient of the documentownerstring- owner of the documentReturns:Return referencehttps://console.privy.id/documentation#upload-documentprv.upload_document(document_path="/upload/document.jpg",title="foo bar",recipient="LA1234")Get Document StatusArgs:doc_Tokenstring- Document's tokenReturns:Return referencehttps://console.privy.id/documentation#check-document-statusprv.document_status(doc_token="b3lkdfaoir0294058klkadfk45qeorlkldakfgh")Update Datafor invalid or rejected user who wants to update their data and reregisterUpdate Data KTPprv.reregister_ktp(ktp="/upload/ktp.jpg",user_token="b3lkdfaoir0294058klkadfk45qeorlkldakfgh")Update Data Selfieprv.reregister_selfie(selfie="/upload/selfie.jpg",user_token="b3lkdfaoir0294058klkadfk45qeorlkldakfgh")Update Data File Supportprv.reregister_file_support(file_support="/upload/KK.jpg",file_support_category="KK",user_token="b3lkdfaoir0294058klkadfk45qeorlkldakfgh")Licenseprivy-python-sdkis released under the MIT License. Check License file for detail.
Package: priwo
What is this?priwois a library that allows you to read in and write out
pulsar data from the following data formats:SIGPROCheaders,PRESTOFFT (*.fft) files,PRESTOinfodata (*.inf) files,PRESTOfolded data (*.pfd) files,PRESTOtime series (*.dat) files,SIGPROCfilterbank (*.fil) files,SIGPROCtime series (*.tim) files,PRESTObest pulse profile (*.bestprof) files,TEMPOpolynomial ephemerides (*.polycos) files.priwo's API is deliberatelylow-level: each function inpriwodeals with a
single file format and takes/returns a Python dictionary. This allows users to
design arbitrary high-level APIs on top ofpriwo's functionality. This is
unlike most other contemporary libraries, such asyour.your(to
which this library has been frequently compared to) provides a high-level API
for reading in pulsar data, while also providing modules to help process and
analyze it. This is makes the number of dependencies it uses is a bit high (as
of 05/10/22, that is a total of 9 dependencies). On the other hand,priwohas
just a single dependency:pabo[^1]. This makes
it an ideal choice to drop into your projects, without worrying aboutdependency hell.priwois well-tested (viaward) and actively maintained. No
major changes to the API are expected beforev0.1.0. Support for many more
formats, such asPSRFITS, is on the way. If you would like to
contribute, have a look atCONTRIBUTING.md, and get in
touch! If you find a bug, feel free to open anissue. If you would
like to suggest support for any data format(s) I have missed, suggest a feature,
or just chat, feel free to jump into thediscussions.InstallingInstallingpriwois as easy as:pipinstallpriwo[^1]:pabois a package I made to make parsing binary data easier,
and it has just two dependencies :attrsandnumpy.
Package: priyanshlog
to install logover use
pip install logover
once you install the package goto logover package and cut config.json file and put it into your folders main directory and change the "END_POINT" to wherever you want to dump your data and change "END_POINT_TO_SIMULATE_DB" to endpoint from where you will fetch includes and levels.
config.json
{
"buffer_size":"5",
"timer":"10",
"END_POINT":"https://httpdump.io/bpmpg",
"END_POINT_TO_SIMULATE_DB":"http://127.0.0.1:9000/",
"time_to_refresh_cofg_file" : "30"
}in place of "END_POINT" put your own end point where you want to dumb the data. in include array you need to pass the route which you allow to log. If you put "*" it means you want to allow all the route. Do same configuration for levels.
once you done with config file just put the code below to the end of all your route so that it will process all your route. (REMEMBER:- put this at the end of all your route. )
@app.before_request
def start_timer():
print('before every request')
g.start = time.time()@app.after_request
def fun(response):
myRouteLog.log_request(response)
return responsenow in the last step :-
if you want to use logger for specific task like INFO,ERROR,WARNING use like :-
logover.info('your message')
logover.error('your message')
logover.warn('your message')by default buffersize is 5 and time out is 30sec, if you want to change it just change in config.json file and restart the server.
Package: prize
A tool to generate user cards and pickup a winner for prize randomly.一个抽奖工具，支持输入内容，然后随机抽取一个幸运个体。Support scheduling prize picker and for multiple prizes, it can be achieved by click on right button to random winner picking支持定时随机抽奖，多个奖项可以点击多次。Support the adaptive UI rendering per resizing .支持窗口自适应，动态根据抽奖人数自动调节组件大小。Support multiple inputs like (line-by-line, lines[id:comment] string etc)支持多种格式生成抽奖个体卡片, 比如按行号，id:comment行格式提取id生成个体卡片。Package hosted on [pypi] and powered by [pypi-seed]Installation / 安装pip install prizeMore InfoAuthor levin （雷学委）