Saravanan666/pypi-org huggingface dataset:
Package: privacyfighter
Privacy-FighterEasy to install, privacy protection browser setup.
A collection of best browser extensions and some configurations to help you fight for your privacy.The deeper you dig, more you find that we'reloosing privacy from corporations. You might even start to believe that there's nothing you can do about it. You can!. With the right information, tools and dedication, you can do a lot to protect your privacy and stand up for your basic human right.
There are brilliant, hard working people who spend countless hours to make these privacy protecting tools. This project is a collection and setup of the best privacy protecting browser tools that exist today.
The basic setup installs the following addons and someuser.js configurationsuBlock OriginTemporary ContainersHTTPS EverywhereCanvas BlockerDecentraleyesClearURLsTerms of Service; Didn't ReadFor further details about the project seeDOCS1.0 InstallationAdvance users can check out theAdvance Options. For the basic setup just follow the following instructions.1.1 Installation Steps for Windows OSIf you don't have Firefox installed, First download and installFirefox.DownloadPrivacy-Fighter.exe.Close Firefox and run the downloaded file Privacy-Fighter.exe1.2 Installation Steps for GNU/Linux and MacOSIf you don't have Firefox installed, First download and installFirefox.Close Firefox.ON GNU/LINUX: Download and run theprivacyfighter-linux-amd64.wgethttps://github.com/jotyGill/privacy-fighter/releases/latest/download/privacyfighter-linux-amd64
chmod+x./privacyfighter-linux-amd64
./privacyfighter-linux-amd64ON MACOS: Download and run theprivacyfighter-macos-amd64.wgethttps://github.com/jotyGill/privacy-fighter/releases/latest/download/privacyfighter-macos
chmod+x./privacyfighter-macos
./privacyfighter-macos2.0 Post InstallationOpenBookmarks Manager (press Ctr+Shift+O)>"Import and Backup"(top menu item) >Import Data from Another Browser, follow wizard to import your bookmarks and history from your existing browser (Chrome/Edge/Safari).3.0 Usage And TroubleshootingAfter installing and following post installation setups. Every time you open Firefox, it will ask you to choose a profile.
Select "privacy-fighter" profile. If you ever encounter a webpage breakage simple copy the link, close Firefox then open the link in "default-release" profile.NOTE: From version 2.0 Privacy-Fighter is installed in a separate Firefox profile called "privacy-fighter". When upgrading from version 1.x to 2.x I recommend that you refresh your 'default' Firefox profile.
visitabout:supportand click "Refresh Firefox" (right corner)
Package: privacypanda
PrivacyPandaPrivacyPandais a package for detecting and removing personal, private data (such as names and addresses) frompandasdataframes.Why privacypandaThe volume of available information - personal, private information - of each and every one of us is vast and growing. This information can be used to build such a clear picture of who you are that bad actors can know you better than your partner does. In the wrong hands, this data can influence the way you shop, the way you vote, the way you think...A necessary step to protect ourselves is to anonymize data - to strip it of any identifying features like our names or addresses. While many of the people handling private data are trustworthy, honest and ethical, we can't always trust that they will successfully scrub a dataset of any information which may be used against us.privacypandaaims to make data anonymization a little bit easier by providing tools to detect identifying features inpandasdataframes and expunge them.How to installprivacypandarequires python of3.7or above andpandas >= 1.0.0.privacypandacan be installed viapypiviapip install privacypandaAlternatively, to install from source:clone the repositorynavigate to the project folderrunpip install -e .How to useSee theexample notebooksfor more extensive usage.Click this linkto run the example notebooks online.Withprivacypandayou can audit the privacy of your dataframe:importpandasaspdimportprivacypandaasppdata=pd.DataFrame({"privateData":["an@email.com","AB1 1AB","Some other data",],"nonPrivateData":[1,2,3,],})print(pp.report_privacy(data))This prints the names of any colums in the data which break privacy,
and the ways in which privacy is broken.>>>"privateData":["address","email"]ContributingAll contributions are important and welcomed.
Please see thecontributing guidefor more information.LicenseThePrivacyPandaproject is licensed with Apache 2.0.
Please refer to thelicensefor more information.
Package: privacypass
Privacy PassA Python module implementing the Privacy Pass protocol. Privacy Pass is supported by Cloudflare (and is in the process of becoming standardised by the IETF) to enable users to redeem passes instead of having to solve CAPTCHAs to visit protected websites. This can be useful when programmatically interacting with such sites, as CAPTCHAs are intentionally used to tell Computers and Humans Apart.InstallationSimply runpip install privacypass. The PyPI package is atpypi.python.org/pypi/privacypassAlternatively, clone this repository and run python setup.py install.DependenciesPython >= 3.9cryptography>= 36.0.1UsageCallprivacypass.redemption_token()to create a redemption token specific to the site/path.importrequestsimportprivacypass# See `Receiving Privacy Pass Tokens` section of doc for how to retrieve tokenscf_token={"input":[98,207,READACTED,234,181],"factor":"0x5c57a03...REDACTED..68ef47","blindedPoint":"BAV...REDACTED...dss=","unblindedPoint":"BOu0AArK..REDACTED..jdBbeqo=","signed":{"blindedPoint":"BPs6ed..REDACTED..0ZWw=","unblindedPoint":"BHtp..REDACTED..hU0="}}url='https://somewhere.with.captcha'request=requests.get(url)# A Privacy Pass compatible CF site is encountered# and a CAPTCHA challenge is presentedifrequest.status_code==403and'CF-Chl-Bypass'inrequest.headers:cf_redemption_header=privacypass.redemption_header(token=cf_token,url=url,method='GET')request=requests_session.get(url,headers=cf_redemption_header)Troubleshooting NotesTokens have a limited life span. 30 days?Note the header in token redemption response'CF-Chl-Bypass-Resp': '<error-resp>'. <error-resp> is the error value returned by the privacy pass verifier. Possible values are 5 or 6, where 5 is an edge-side connection error and 6 is a pass verification error.Receiving Privacy Pass TokensCurrently the easiest way to receive tokens is by having theBrowser Extensioninstalled, and browsing tocaptcha.website.Solve a number of CAPTCHAs oncaptcha.website. Each CAPTCHA solved grants 30 tokens.Extract the tokens from your browser:FirefoxBrowse to theExtension Debug screen- (about:debugging#/runtime/this-firefox)InspectthePrivacy PassextensionOpen Storage -> Local StorageTokens are stored as a list under thecf-tokenskey.AcknowledgementsThis module is a porting of key functions from thePrivacy Pass Extensionby @privacypass team.
Package: privacy.py
Privacy.pyA Python wrapper for thePrivacy API.InstallationTo install Privacy.py into your environment, simply run this:pip install Privacy.pyUsagePrivacy's api has 3 groups of endpoints (which are differentiated by access):
basic endpoints, premium endpoints and sandboxed endpoints.Basic endpointsThese endpoints can be access by any account.importprivacyclient=privacy.Client("api-key")# This supports `with privacy.Client("api-key") as client:`# Returns an iterator of the cards available to your account (based on optional args).iter_cards=client.cards_list(token=str,# The token of a specific card (will still return an iterator of either 1 or 0 object(s)).begin="YYYY-MM-DD",# Used to get cards that were created after the specified date.end="YYYY-MM-DD",# Used to get cards that were created before the specified date.)# Returns an iterator of the transactions related to your account (based on optional args).iter_transactions=client.transactions_list(approval_status="all",# Used to only get transactions with a specific status.# Can be `approvals`, `declines` or `all` and defaults to `all`.token=str,# Used to get a specific transaction (will still return an iterator if passed).card_token=str,# Used to get transactions related to a specific card.begin="YYYY-MM-DD",# Used to get transactions that were created after the specified date.end="YYYY-MM-DD",# Used to get transactions that were created before the specified date.)# With this being mirrored by the following function on the Card object.iter_transactions=Card.get_transactions(*,**)# Where card_token is from card this is attached to.Premium endpoints.These endpoints can only be accessed by premium accounts.# Used to create a card.card=client.cards_create(card_type=privacy.schema.cards.Type,# The card type.memo=str,# An optional card name.spend_limit=int,# An optional spend limit (in pennies).spend_limit_duration=privacy.schema.cards.SpendLimitDuration,# Optional, used to set how long the spend limit lasts.)# Used to modify a card based on it's token and optional args.card=client.cards_modify(token=str,# The token of the card being modified.state=privacy.schema.cards.States,# Used to change the state of the card (cannot be reversed when set to `CLOSED`).memo=str,# Used to change the name of the card.spend_limit=int,# Used to change spend limit for the card (in pennies).spend_limit_duration=privacy.schema.cards.SpendLimitDuration,# Used to change how long the spend limit lasts.)# With this being mirrored by the following function on the Card object.card.update(*,**)# Where the token used is from the card this is attached to.# Used to get a hosted card UI.client.hoisted_card_ui_get(embed_request=privacy.schema.embeds.EmbedRequest,# An embed request object.)Sandboxed endpontsThe endpoints can only be accessed on Privacy's separate sandboxed api
(switched to by passingsandboxed=Truethrough toprivacy.Client.__init__).Any changes made on these endpoints won't effect Privacy's actual service as these exist purely for debugging purposes.These endpoints can be accessed usingclient.[auth_simulate, void_simulate, clearing_simulate, return_simulate].
Package: privacyscanner
privacyscannerInstallationprivacyscanner needs a Python 3 runtime. Depending on your environment you
may also need the Python 3 header files in order to instal privacyscanner.
For instance, on Debian and Ubuntu Linux you should be able
to obtain all necessary files by executing:sudo apt-get install python3 python3-pip python3-devprivacyscanner is distributed via PyPI and can be easily installed using pip:python3 -m venv venv
source venv/bin/activate
pip install wheel
pip install privacyscannerBefore first use, you have to download the dependencies of privacyscanner.
These include the MaxMind GeoIP2 database and the Easylist adblock lists.
For convenience, most dependencies can be downloaded with:privacyscanner update_dependenciesThose dependencies will be stored in~/.local/share/privacyscanner. In
addition, google-chrome or chromium have to be installed and available in
your PATH. For Debian-based systems this can be done with:apt install chromiumNote: Due to changes in the licensing, GeoIP database of MaxMind cannot be
downloaded without license key anymore. You therefore have to register an
account at maxmind.com and enter your license key to your privacyscanner
configuration file at~/.config/privacyscanner/config.pyas follows:SCAN_MODULE_OPTIONS = {
    'dns': {
        'geoip_license_key': 'YOUR-LICENSE-KEY'
    }
}For more information about the new licensing of the GeoIP database see:https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/UsageScanning a single website, e.g.http://example.com/, can be done by running:privacyscanner scan http://example.com/It will output the scan result in Python object syntax and it will create a
directory for the website in your current working directory. This directory
contains the scan result as JSON file as well as associated files (e.g. the
screenshot of the site) and the corresponding log files of the scan.For more details, seeprivacyscanner --helpand dive into the source :-)DevelopmentCheck out repository, change directory into repository root. Then install
with:pip install --editable .Unfortunately, there is no development documentation currently. You have
to consult the source code.
Package: privam
Privamprivamis a Pypi package that provides a simple way to create and interact with a bot for the Privam service (https://privam.top/).InstallationYou can installprivamusing pip:pipinstallprivamUsageimportprivamdefhello_command(message):sender=message["sender"]print(message)bot.send(sender,"Hello,{}!".format(sender))# Create a new PrivamBot instance with your tokenbot=privam.PrivamBot("your-token-here")# Add the 'hello' command to the botbot.add("hello",hello_command)# Start the botbot.socket.wait()ContributingContributions are welcome! Please join vnti.top discord server if you have any suggestions or improvements.LicenseThis package is open source and available under the MIT License.Remember to replace"your-token-here"with an actual token in the usage example.
Package: privapy
privapyAnonymize your dataDocumentationVisitRead the Docsfor the full documentation, including overviews and several examples.InstallationpipinstallprivapyDisclaimerThis package provides no guarantee of anonymity. It is the user's responsibility to ensure that the data is properly anonymized. The authors of this package are not responsible for any results or misuse of this package.Usagetextfromprivapy.textimportTextCleanertext="I live in New York and work at Google. My email is john@google.com"cleaner=TextCleaner(steps="all")cleaned_text=cleaner.clean(text)# 'I live in <<ENT>> and work at <<ENT>. My email is <<EMAIL>>'imagefromprivapy.imageimportImageCleanerfromPILimportImagecleaner=ImageCleaner()img=Image.open("image.jpg")cleaned_image=cleaner.clean(img)input image (img):output image (cleaned_image):Coming in future releasestextAdd more cleaning methodsAdd Spacy integrationimageAdd more cleaning methodsblackoutpixelateAdd more detection methodsface detectiondlibmediapipe
Package: private
PrivateEncryption tool for python files and packages.FeaturesEncrypting python scripts, packages and directories so they can be used as drop-in replacements.Loading key from environment variableValidating decrypted module against SHA256 signaturePack encrypted packages into executable zip fileWorks both with python 2 and python 3UsageEncryption:$ private [--key <key>] [--output <directory>] [-z] [--predicate <expression>] file.py [<path>...]Execution:$ private --output out example-0.0-py2-none-any.whl
$ pip install out/example-0.0-py2-none-any.whl
$ export PRIVATE_KEY=$(cat out/key.txt)
# Use installed package as usualThe key must be hexadecimal string of length 32.
The file type is recognized by extension, Currently only .py and .whl files are supported.Encrypting source distributionIt is possible to encrypt source distributions (.tar.gz files), but private will first
build a wheel and then convert it, so the final output is alway a wheel.Code removalThe is an option to "tag" the source code with decorators.
Then, It is possible to pass expression to the private script that specifies
which tags to remove completely from the source.For example:# example.py
import private

@private.tag("a", "b")
def foo():
    return "foo"

@private.tag("b", "c")
def bar():
    return "bar"

@private.tag("z")
def baz():
    return "baz"Then, code parts to remove can be specified with regular python expression.
To remove only the "bar" function, the predicate is simply: "c".
To remove "foo" and "baz" the predicate is "a or z", or "not c".The private script is called like this:$ private --predicate "b and not a or z" example.pywill create encrypted file that contains only the function "foo".Packing into zip archiveIt is possible to pack multiple packages into one executable zip file.
For example:$ mkdir test
$ cd test
$ pip download poetry
$ private -z --output out *
$ cd out
$ export PRIVATE_KEY=$(cat key.txt)
$ python packed.zip poetryThe result zip file can be directly executed and can call everyconsole_scriptin the packed packages.
Currently, the -z flag can be used only if the given paths are wheels or source distributions.WARNING: the load time can beveryslow with many pacakges.TestingThe package doesn't have it's own test suit.
It is tested in python 2 with the compiledb package as a wheel, and in python 3
with the full test suit of the construct package, on the original repository.LimitationsPrivate is not fully tested and is a hobby project in alpha stage, Use it at your own risk.Future plansAdd support for parallel executionencrypt with faster crypto librariesFull coverage and functionality testingAdding documentation
Package: privatebroker
# privatebrokerPrivateBroker (beta) is a module for encapsulation.It allows you to hide methods of classes that are undesirable in the implementation of child elements. Private methods become unavailable in instances of classes and classes of heirs.Private methods are kept in the "broker", which allows you to access the private method if necessary.## InstallationUse the package manager [pip](https://pip.pypa.io/...) to install foobar.```bashpip install privatebroker```## Usagethe privateclass decorator accepts a class whose specific methods must be hidden. the decorator privatemethod accepts the method and puts it in the broker.The broker returns the necessary function (attribute of the private method) by taking two arguments: the class (from example A (!! not self !!)) and the name of the method (the string is required).To get the result of a private method, you need to refer to the attribute of the private method and pass it the arguments expected by the private method.```pythonfrom privatebroker import privateclass, privatemethod@privateclassclass A(object):def __init__(self, *args, **kwargs):self.some_one = {}@privatemethoddef a_private2(self):pass@privatemethoddef a_private(self, key, value):self.some_one[key] = valuedef test(self, x, y):private = self.broker(A, 'a_private') # call to privatereturn private(self, x, y)def a_public(self):return self.some_one#a = A()#print(a.a_private())  - >  Error@privateclassclass B(A):@privatemethoddef b_private(self):return 'Я могу быть только у объекта B'def b_public(self):self.test('a', 11)return self.some_oneb = B()print(b.b_public())```## ContributingImportant!This is the first test version and so far the expediency of using this module is questionable!Traction requests are welcome. For major changes, please first open the question to discusswhat you would like to change.Please remember to update the tests as needed.## License[MIT](https://choosealicense.com/licenses/mit/)
Package: private-django-googledrive-storage
This is aDjango Storageimplementation that usesGoogle Driveas backend for storing data.Quick startInstallationpipinstalldjango-googledrive-storageSetupINSTALLED_APPS=(...,'django.contrib.staticfiles','gdstorage')Set the environment variableGOOGLE_DRIVE_STORAGE_JSON_KEY_FILE_CONTENTSor path file in thesettings.py:GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE.Optional setGOOGLE_DRIVE_STORAGE_MEDIA_ROOTin thesettings.pyUsage examplefromgdstorage.storageimportGoogleDriveStorage# Define Google Drive Storagegd_storage=GoogleDriveStorage()...classMap(models.Model):id=models.AutoField(primary_key=True)map_name=models.CharField(max_length=200)map_data=models.FileField(upload_to='maps',storage=gd_storage)Documentation and Installation instructionsDocumentation and installation instructions can be found atRead The Docs.
Package: privatefunc
Private Function in Python"A smarter way to create private functions in python"fromFAHEEM41version:1.5.23first published in:SololearnGithub first publishing date:23rd July, 2022Last Updated:11th January, 2023Why use the code?Let's start with the concept of private functions. Private functions are functions that are only accessible inside the declared module, no other function from any other module can access it.This project mainly focuses on the security issues of a code. This enables a way to restrict code from accessing other functions from other modules that were not meant to be accessed. And thus, it ensures that only non-private functions i.e. public functions can be accessed from anywhere outside the code.Here's an example, suppose a module has two functions:add()andmain().main()function is meant to run and can be called from other modules. On the other hand, theadd()function is a function that is only called by themain()function, and we want to keep this function private, i.e. ensure that it cannot be accessed or called from any other module.Understanding the codeHere we have implemented a very naive idea to get our work done. We have used adecoratorwhich will check whether the function is a private or public function and thereby deny or grant access respectively. Thedecoratorwill run, as usual, with the function called, and before the function ran.For details understanding, have a look at theprivatefunc.pyfile; the documentation of the code, along with how the code is working is given inside the source code.How to use the code? (using pip)In terminal type the command:pip install privatefuncAdd this lines in your module:from privatefunc import PrivateFuncprivate = PrivateFunc("nameOfThisModuleHere").privateNow add@privatebefore the function you want to make privateFor better understanding have a look atmoduleWithPrivateFunc.pyEverything put together:# example.py
from privatefunc import PrivateFunc
private = PrivateFunc("example").private

@private
def hello():
    passSample CodeGo throughthe demo codeto completely understand the insights of the source.© 2021-2023 Md. Faheem Hossain fmhossain2941@gmail.com
Package: privategpt
🔥 PⒶutoBot 🔥Private AutoGPT Robot- Your private task assistant with GPT!🔥Chatto your offlineLLMs on CPU Only.100% private, no data leaves your execution environment at any point.🔥Ask questionsto your documents without an internet connection. Engine developed based onPrivateGPT.🔥Automate taskseasily withPAutoBot plugins. Easy for everyone.🔥Easy coding structurewithNext.jsandPython. Easy to understand and modify.🔥Built withLangChain,GPT4All,Chroma,SentenceTransformers,PrivateGPT.The supported extensions are:.csv: CSV,.docx: Word Document,.doc: Word Document,.enex: EverNote,.eml: Email,.epub: EPub,.html: HTML File,.md: Markdown,.msg: Outlook Message,.odt: Open Document Text,.pdf: Portable Document Format (PDF),.pptx: PowerPoint Document,.ppt: PowerPoint Document,.txt: Text file (UTF-8),I. Installation and Usage1. InstallationPython 3.8 or higher.InstallPAutoBot:pipinstallpautobot2. UsageRun the app:python-mpautobot.appor just:pautobotGo tohttp://localhost:5678/to see the user interface. You can choose one of the two modes:Chat OnlyDocuments Q&AUpload some documents to the app (see the supported extensions above). You can trydocs/python3.11.3_lite.zipfor a quick start. This zip file contains 45 files from thePython 3.11.3 documentation.Force ingesting documents withIngest Databutton.You can also run PAutoBot publicly to your network or change the port with parameters. Example:pautobot--host0.0.0.0--port8080II. Development1. Clone the source codegitclonehttps://github.com/nrl-ai/pautobotcdpautobot2. Run your backendPython 3.8 or higher.To install Pautobot from source, frompautobotsource code directory, run:pipinstall-e.Run the app:python-mpautobot.appGo tohttp://localhost:5678/to see the user interface.2. Run your frontendInstall the dependencies:cdfrontend
npminstallRun the app:npmrundevGo tohttp://localhost:3000/to see the user interface. Use this address to develop the frontend.