Saravanan666/pypi-org huggingface dataset:
Package: cloud-fancyindex
Cloud FancyIndexI like NGINX fancyindex module
(https://www.nginx.com/resources/wiki/modules/fancy_index/). With a good theme
it can make your auto-indexed file trash look like solid SP500 company's Website
with a few directives in web server config.But future is coming and we are moving to cloud storages.Pros: you'll have built-in scalability, speed, and multi-zones for your files.Cons: these cloud buckets have no indexes (or they don't look so cool as old
good NGINX fancyindex themes).Of course you can make an application which gets bucket contents and displays
to to user in a nice way. But for what, if the files are static? Let's build
static indexes! And let's add fancyindex themes for them!UploadingTo upload files to Google Cloud Storage, you need to be logged in with localgcloudapp. cs-index-upload.sh actually callsgsutil rsyncTo upload to Amazon S3 or compatible, install and configures3cmdInstallationpip3 install cloud-fancyindexYou also need to installcloudindexpackage as well.Usagecloud-fancyindex-generator CLI tool - generates index.html files (by default
in ./_build/html )You must also download some fancy index theme, e.g.https://github.com/TheInsomniac/Nginx-Fancyindex-Theme. Actually it's
compatible with almost all themes you can find or create.Note: theme is placed in /fancyindex bucket directory. In case theme loads any
stuff (css/js etc.) from other directory, correct paths in its header / footer.You may download also my cs-index-upload.sh script - uploads output directory
to cloud storagetpl.html - template file for the primary table. This is jinja2 template so
you can use all functions it has. Example:https://github.com/divi255/cloud-fancyindex/blob/master/tpl.htmlsha256.tpl.html - template example with sha256 checksums. Example:https://github.com/divi255/cloud-fancyindex/blob/master/sha256.tpl.htmltemplate can include any additional object meta data.docker-compose.yml - just a test stuff, ignore itNote: you need to rebuild index (at least partial one) every time you upload new
file to bucket. Sad, but true.Example:cloud-index [options] <bucket> | cloud-fancyindex-generator -t <template> -F <themepath> -D <output>Usage in real lifeE.g. you have a cool build script which makes your project tarball and uploads
it to/releases/${VERSION}/blahblahblahpath into cloud bucket. To re-index
the path, put the following string in your script after upload command:cd /path/to/cloud-fancyindex && make prefix=/releases/${VERSION} pubNuts and boltsUnfortunately it's impossible to implement sorting, as it called a server
request with a query string only NGINX can understand. Maybe I'll do sorting
with JS, some day.But a bonus - now you can easily display sizes of folders (or directories (or
bucket paths (etc)))S3 actually has real "folders" (at least emulates them), so index generation
can be more optimal. But then we'll lose unification.
Package: cloudfeaster
Cloudfeaster is a web crawling and business process automation
infrastructure that leverages modern software engineering tools,
services and trends to create:(this repo is)a spider authoring and maintenance
environmenta service infrastructure for discovering and running spiders via a
RESTful APIThisis the story behind Cloudfeaster.What Nextthisdescribes how to author spiders
using Cloudfeasterseetheseinstructions describe how to
setup your development environment and start contributing to
Cloudfeastertake a look atcloudfeaster/samplesfor
some spiders that illustrate the core conceptsandsimonsdave/gaming-spidersis an entire repo of spiders so you can get a sense of the end-to-end
Package: cloudfile
CloudfileCloudfile can upload and download (large) files to the original position.Installationpip install cloudfileIf you only want to use cloudfile to restore you are done.To also upload you need to install Google Client Library, make an API key, and login to your google account. This means executing:python -m cloudfile enable_google_apiThis will install the Google Client Library and openhttps://developers.google.com/drive/api/v3/quickstart/pythonOn site, click onEnable the Drive APIto make an API key. Save the file in the root directory ascredentials.json.python -m cloudfile enable_google_driveThis will make you sign in to your google account.Usagepython -m cloudfile restoreThis will restore the keys with the corresponding urls incloudfile.json. Add--hard=Trueto download all file even if they already exist.python -m cloudfile restore_file fileThis will restore the specified file from the corresponding urls incloudfile.json. Add--hard=Trueto download all file even if they already exist.python -m cloudfile add folderUplouds file or the content of the folder to google drive and adds the link tocloudfile.json.python -m cloudfile add_file fileUploud the file to google drive and adds the link tocloudfile.json.  The files will be calledcloudfile_{filename}and by default will be accessible to anyone who has the link.python -m cloudfile add_link file urlAdd a file tocloudfile.jsonthe location should befileandlinkis the download location. Please ensure it's the actual file not the share page.
You can use:https://syncwithtech.blogspot.com/p/direct-download-link-generator.htmlto convert a link to the actual file.
Note when using this option enclose with "". Your shell will otherwise mess up the input if there are strainge tokens in there (e.g. ?).python -m cloudfile del_link fileDelete a link fromcloudfile.jsonpython -m cloudfile download fileDownload the file even if the file already exists.TODOmake zip of filesHandle larger files (<5MB)Make a google drive foldercloudfile
Package: cloud-filemanager
Cloud FilemanagerAboutA high-level filemanager utility for cloud services. Currently, only Dropbox
is supported.PYPI PackageTable of ContentsUsing the libraryInstalling and using the libraryExamples of usageManually install the libraryPrerequisitesInstall the requirementsRun the Unit TestsContinuous IntegrationUpdate PyPI packageLicenseUsing the libraryFor a detailed usage example seeexample.py.Installing and using the libraryFirst, you need to install the library using pip:$pipinstallcloud_filemanagerThen, import it and initialize it like so:fromcloud_filemanagerimportDropboxCloudManagercloud_conf={'type':'dropbox','config':{'api_key':'your api key'}}dbx=DropboxCloudManager(config=cloud_conf)If you want to use a yml file to load the configuration, you can use theCloudConfigclass:fromcloud_filemanagerimportCloudConfigimportosconfig_path=str(os.path.join('confs','conf.yml'))config=CloudConfig(config_src=config_path)cloud_conf=config.get_cloud_config()Two example YAML files can be found in
theconfs folder.
For more details on how to use this YAML configuration loader see
thisReadme.Examples of usageThe currently supported operations are the following:Upload, Download, Delete FilesList directoriesUploadwithopen('my_file.txt','rb')asfp:file_to_upload=fp.read()dbx.upload_file(file_bytes=file_to_upload,upload_path='/tests/my_file.txt',write_mode='overwrite')Downloaddbx.download_file(frompath='/tests/my_file.txt',tofile='my_file_downloaded.txt')Deletedbx.delete_file('/tests/my_file.txt')List Filesdbx.ls('/tests/')All of these examples can be found
inexample.py.Manually install the libraryThese instructions will get you a copy of the project up and running on your local machine for
development and testing purposes.PrerequisitesYou need to have a machine withanacondainstalled and
any Bash based shell (e.g. zsh) installed.$ conda -V
conda 4.10.1

$ echo $SHELL
/usr/bin/zshInstall the requirementsAll the installation steps are being handled by
theMakefile.First, modify the python version (min_python) and everything else you need in
thesettings.ini.Then, execute the following commands:$ make create_env
$ conda activate yaml_config_wrapper
$ make distNow you are ready to use and modify the library.Run the Unit TestsIf you want to run the unit tests, execute the following command:$ make testsContinuous IntegrationFor the continuous integration, theCircleCIservice is being used. For more information you can
check thesetup guide.For any modifications, edit
thecircleci config.Update PyPI packageThis is mainly for future reference for the developers of this project. First,
create a file called~/.pypircwith your pypi login details, as follows:[pypi]
username = your_pypi_username
password = your_pypi_passwordThen, modify the python version (min_python), project status (status), release version (version)
and everything else you need in
thesettings.ini.Finally, execute the following commands:$ make create_env
$ conda activate yaml_config_wrapper
$ make releaseFor a dev release, change thetesting_versionand instead ofmake release, runmake release_test.LicenseThis project is licensed under the MIT License - see
theLICENSEfile for details.
Package: cloudfiler
Cloud Filer is a cloud storage file management GUI client.  Cloud Filer allows you to upload and download files to cloud storage (e.g. Amazon S3) and can be used as part of a backup strategy.Cloud Filer uses pre-internet encryption and file name obfuscation making access to your cloud data useless without the right password.For more details seehttps://www.cloudfiler.org/Installing on LinuxOn Linux you need to install the following packages:apt install python-wxgtkX.Y python-wxtools wxX.Y-i18n python-pipand then install Cloud Filer using pip:pip install cloudfilerInstalling on WindowsInstall python 2.x fromhttps://www.python.orgInstall wxpython fromhttps://wxpython.orgInstall Microsoft Visual C++ Compiler for Python 2.7 fromhttp://aka.ms/vcpython27pip install cloudfilerInstalling on MacOScurlhttps://bootstrap.pypa.io/get-pip.py-o get-pip.pysudo python get-pip.pysudo pip install -U wxPythonpip install cloudfiler –userRunning Cloud Filerpython -m cloudfiler
Package: cloudfiles-light
Cloudfiles-lightLightweight helper for using rackspace cloudfiles. Has way fewer dependencies (and features) than the official sdkpyraxUsagefrom cloudfiles_light import CloudFilesSession

session = CloudFilesSession(username, apikey, region)
# list files
session.get('my-container')sessionis arequestssession that prepends the endpoint base url and handles authentication (requests and refreshes tokens and adds as headers)This is aimed at using theRackspace Cloud Files API 1.0LicenseMIT
Package: cloudflareai
Cloudflare AI Python WrapperThis Python library provides a convenient way to interact with the Cloudflare AI API asynchronously, allowing you to leverage the power of Cloudflare's AI models in your applications. With this wrapper, you can easily integrate AI-driven features into your projects without the hassle of handling API requests and responses manually.InstallationInstall from PyPI:pipinstallcloudflareaiInstall from Github:python-mpipinstall-Ugit+https://github.com/alexraskin/cloudflareai-pyOr build from source:gitclonecdcloudflareai
pythonsetup.pyinstallUsageImport the CloudflareAI class and the desired model enums. Then, create an instance of the CloudflareAI class with your Cloudflare API key and account identifier. You can then use the instance to call the desired AI model.importasynciofromcloudflareaiimport(CloudflareAI,AiTextToImageModels,AiTextGenerationModels,AiImageClassificationModels,)asyncdefmain():ai=CloudflareAI(Cloudflare_API_Key=<YourToken>,Cloudflare_Account_Identifier=<AccountID>,)text=awaitai.TextGeneration(prompt="You are helpful",system_prompt="Hello, my name is Alex",model_name=AiTextGenerationModels.CODE_LLAMA_7B,)image=awaitai.TextToImage(prompt="a Cat",model_name=AiTextToImageModels.XL_BASE)print(text.text)# returns stringprint(image.image)# returns bytes### Also get status codesprint(text.status_code)print(image.status_code)asyncio.run(main())ModelsThis wrapper also includes enums for AI models, making it easier to select the desired model for your tasks. Available enums include:AiImageClassificationModelsAiTranslationModelsAiTextGenerationModelsAiSpeechRecognitionModelsAiTextToImageModelsTranslationLanguagesContributingIf you'd like to contribute to this project, please follow these steps:Fork the repository.Create a new branch for your feature or bug fix.Submit a pull request with a clear description of your changes.LicenseMozilla Public License Version 2.0 (MPL-2.0) - See LICENSE for more information.
Package: cloudflare-bypass
Cloudflare CAPTCHA BypassDetect and bypass Cloudflare CAPTCHA challenges effortlessly with the Cloudflare Captcha Bypass package.Installationpipinstallcloudflare_bypassUsagefromcloudflare_bypassimportbypassbypassed=bypass(mode='dark',warmup_time=5,timeout=30,interval=0.5)ifbypassed:print("Cloudflare CAPTCHA bypassed successfully!")else:print("Timeout reached, CAPTCHA not bypassed.")Explanation of parameters:mode(str): Choose 'light' for a light-colored webpage or 'dark' for a dark-colored webpage.warmup_time(int): Optional warm-up time before starting detection (in seconds).timeout(int): Maximum time to wait for the CAPTCHA logo to disappear after clicking (in seconds).interval(int): Time interval between successive detections (in seconds).LimitationsThis package only works on Cloudflare turnstile.It can only run in GUI mode (not headless/background).The speed is relatively slow.DisclaimerNote: This package is provided for educational and testing purposes only. Unauthorized use of this package to circumvent security measures is strictly prohibited. The author and contributors are not responsible for any misuse or consequences arising from the use of this package.SupportIf you find this project helpful, consider buying me a coffee to support ongoing developmentContactFor inquiries or support, please contact me:Name: Tam Nguyen
Email: tamnv.work@gmail.comFeel free to open issues or contribute to the project on GitHub.
Package: cloudflare-ddns
The Python DDNS(Dynamic DNS) script for CloudFlare. It can sync your public IP address to DNS records on CloudFlare. It also provide the RESTful API to operate CloudFlare API v4.Installationpipinstallcloudflare-ddnsExamplesSync your public ip address to dns record on CloudFlareUse command in command linecloudflare-ddnsemailapi_keydomainPrint command line helpcloudflare-ddns--helpExecute python package in command linepython-mcloudflare_ddnsemailapi_keydomain--proxiedPython codefromcloudflare_ddnsimportCloudFlarecf=CloudFlare(email,api_key,domain)cf.sync_dns_from_my_ip()# Successfully updated IP address from xx.xx.xx.xx to xx.xx.xx.xxRESTful dns record operationcf.get_record('A','example.com')cf.create_record('A','sub.example.com','202.202.202.202')cf.update_record('A','another.example.com','202.202.202.202')cf.delete_record('A','another.example.com')Please note: The class will cache dns records information it gets from CloudFlare. To refresh cache, call ‘refresh’ method:cf.refresh()
Package: cloudflaredns-backup
CloudFlare DNS to RFC1035 converterSimple tool for backing up your CloudFlare hosted DNS records in format acceptable by BIND (RFC1035)Installationpipinstallcloudflaredns-backupUsageget all your CloudFlare zones to consolecf-backuproot@example.com1234567890# argsCF_EMAIL=root@example.comCF_TOKEN=1234567890cf-backup# envecho"root@example.com:1234567890">credentials.cfg&&cf-backup-ccredentials.cfg# config fileget only example.com and example2.com zones (here and other - just args examples. ENV and cred-file are same)cf-backuproot@example.com1234567890-zexample.com-zexample2.comThis example may be simplified as:cf-backuproot@example.com1234567890-z"example1.com example2.com"Get only example.com, create if not exists folder and write zone to ./zones/example.com, and write NS in zonecf-backuproot@example.com1234567890-zexample.com-ozones--nsns.example.comCHANGELOGv1.8Serial is current timestamp if problems with “modified_on”v1.7.4Real SERIAL number for zones (last modified time in format YYYYmmddHH)v1.7.3Remove “Exported date” for sensitive tracking of zone-file (for example in Git)v1.7.2Possibility to add custom name servers for simplify backup deploy of zone.v1.6Add possibility to determine credentials in args/environment/filev1.5Small bug fixesv1.4Fix for unicode support in Python3v1.3Fix for unicode support in Python2v1.2Fix for NoneType objectsv1.1Python2 supportv1.0bPyPI packagev1.0aPython2-3 cloudflare backup tool
Package: cloudflare-fuzzy-finder
CloudFlare Fuzzy Findercloudflare-fuzzy-finderaims at checking DNS record more easily. It will connect to CloudFlare's API and get all DNS records from your account, and allow to search on fuzzy finder. Once pressingEnteron highlighted record, it will popup to the CloudFlare website for you to manage the record on that domain.It is inspired bypmazurek/aws-fuzzy-finderand built on top offzfbinaries andpython-cloudflare.InstallationTo install use the following command:pip install cloudflare-fuzzy-finderThis package usescloudflare-pythonto authenticate, so if you haven't used before,
you have to get the api key fromyour profileand put into following files like:$ cat ~/.cloudflare/cloudflare.cfg
[CloudFlare]
email = user@example.com
token = 00000000000000000000000000000000
certtoken = v1.0-...
extras =More information on alternative ways of configuring yourCF_API_EMAIL,CF_API_KEYandCF_API_CERTKEYvariables can be found here:https://github.com/cloudflare/python-cloudflare#providing-cloudflare-username-and-api-keySettingsThe loading time on records list highly dependent on the API calls to CloudFlare to fetch all the DNS records across the domain belongs to you.The cache on DNS records is turn on by default and keep for 1 hour.If you want to fine tune the duration on keeping the record locally, you can update byCF_FUZZ_CACHE_EXPIRY.Or if you want to perform the search without using the cache, cau usecf-fuzzy --no-cache.Or you can append this to your~/.bashrcto make the settings permamant:exportCF_FUZZ_USE_CACHE=trueexportCF_FUZZ_CACHE_EXPIRY=3600# in terms of secondsexportCF_RECORD_TYPES=cname,aRemeber that every change to~/.bashrcrequires you to re-load it:source ~/.bashrcor restart terminal.UsageTo run, use the following command:cf-fuzzyTo search any records other than CNAME & A, use the following command:cf-fuzzy --record-types mx,txtCacheIf you are managing lots of domains and downloading the data takes too long, you can use the built in cache. To enable it set the following variables in your.bashrc:export CF_FUZZ_USE_CACHE=true
export CF_FUZZ_CACHE_EXPIRY=3600 # in terms of secondsTo invalidate cache and refresh data, run with--no-cacheparam
Cache will be stored as a file in~/.cloudflare_fuzzy_finder.cache.
Package: cloudflare-gateway-adblocking
Cloudflare Gateway AdblockingServerless adblocking via Cloudflare Zero Trust GatewayWhat is this?This is a serverless adblocking solution that uses Cloudflare's Zero Trust Gateway to block ads by parsing a hosts file and creating a firewall rule to block the domains. It can be used as an alternative to Pi-Hole or other adblocking solutions.This project was heavily inspired bythis blog postPrerequisitesPython > 3.10A Cloudflare account with Zero Trust enabledA Cloudflare API tolken with the following permissions:Zero Trust: EditAccount Firewall Access Rules: EditAccess: Apps and Policies: EditA device with the WARP client installed and configured to use a Zero Trust accountInstallationFrom PyPipip install cloudflare-gateway-adblockingUsageSetting Cloudflare credentialsEnvironment variablesThe following environment variables can be used to set the Cloudflare credentials:CLOUDFLARE_ACCOUNT_IDCLOUDFLARE_TOKENThese can either be set in the environment or in a.envfile in the current working directory.Command line flagsThe following command line flags can be used to set the Cloudflare credentials:Cloudflare Account ID:--account-id/-aCloudflare Token:--token/-tPassing blocklistsBlocklists can be passed to the program via the command line flag--blocklist/-b. This flag can either point to a hosts file or a directory containing hosts files. If this flag is not passed, the program will look for a file or directory namedblocklistsin the current working directory.Passing whitelistsWhitelists can be passed to the program via the command line flag--whitelist/-w. This flag can either point to a hosts file or a directory containing hosts files. If this flag is not passed, then if a file or directory namedwhitelistsexists in the current working directory, it will be used. Domains in this whitelist will be excluded from the blocklists.Uploading blocklists and creating a firewall policyTo upload the blocklists to Cloudflare and create a firewall policy, use theuploadsubcommand.For example:cloudflare-gateway-adblocking uploadDeleting blocklists and firewall policyTo delete the blocklists from Cloudflare and delete the firewall policy, use thedeletesubcommand.For example:cloudflare-gateway-adblocking deleteHelpFor help, use the--helpflag.
Package: cloudflarekv
cloudflarekvSuper simple access to cloudflare workers kv storeInstallpip install cloudflarekvUsagefromcloudflarekv.kvimportCloudFlareKVkv=CloudFlareKV(cloudflare_email,auth_key,account_id,namespace_id)kv.set("foo","bar")kv.get("foo")kv.set("foo-json",'{"foo":"bar"}')kv.get("foo-json",as_json=True)
Package: cloudflare-prometheus-exporter
# Prometheus Cloudflare ExporterPrometheus exporter powered by Cloudflare GraphQL API.<p align=”left”>
<a href=”https://github.com/transferwise/cloudflare-exporter/actions”><img alt=”Actions Status” src=”https://github.com/transferwise/cloudflare-exporter/workflows/Build& Test/badge.svg”></a>
</p>## QuickstartExamples:$ export CLOUDFLARE_TOKEN=’Bearer fbfa1860-410f-45d5-a9d6-c9af96cbd7d2’
$ mkdir playground
$ cp example.config.yaml playground/
# fill in the zones info in playground/example.config.yaml
$ cfexpose export playground/example.config.yaml## Example Dashboards
![Grafana 1](static/images/dashboard_1.png?raw=true “Grafana 1”)
![Grafana 2](static/images/dashboard_2.png?raw=true “Grafana 2”)# Configuration optionsRequired environment variables:
* CLOUDFLARE_TOKEN
* CLOUDFLARE_ACCOUNT_TAGOptional environment variables:
* EXPORTER_PORTRequired permissions for the token:![Analytics](static/images/APIKey.png?raw=true “Analytics: Read”)# LimitsFor up-to-date information, please refer Cloudflare [documentation](https://developers.cloudflare.com/analytics/graphql-api/limits) on APL limits.GraphQL API access restrictions by license:free:zones:browserPerf1mGroups
firewallEventsAdaptive
firewallEventsAdaptiveByTimeGroupsaccounts/zones:httpRequests1hGroups
httpRequests1dGroupspro:firewallEventsAdaptiveGroups
healthCheckEvents
healthCheckEventsGroups
httpRequests1mGroups
loadBalancingRequests
loadBalancingRequestsGroupsbusiness:enterprise:firewallRulePreviewGroups
httpRequests1mByColoGroups
httpRequests1dByColoGroups
synAvgPps1mGroups# History0.1.0 (2020-02-19)First release on PyPI.
Package: cloudflarestatus
CloudflarestatusPython package to parse Cloudflare System Status fromhttps://www.cloudflarestatus.comQuickstartInstall$ pip install cloudflarestatusCommand-line usage 1Get status for a data center:$ cloudflarestatus -d hba
{"HBA": {"code": "HBA", "name": "Hobart, Australia", "status": "partial_outage", "timestamp": 1682596723}}Command-line usage 2Pipe tojq(a separate program) to format the JSON output:$ cloudflarestatus -d hba syd | jq
{
  "HBA": {
    "code": "HBA",
    "name": "Hobart, Australia",
    "status": "partial_outage",
    "timestamp": 1682596723
  },
  "SYD": {
    "code": "SYD",
    "name": "Sydney, NSW, Australia",
    "status": "operational",
    "timestamp": 1682596723
  }
}Python usage 1Get status for all data centers.>>> import cloudflarestatus
>>> cloudflarestatus.dc()
{'ACC': {'code': 'ACC', 'name': 'Accra, Ghana', 'status': 'operational', 'timestamp': 1682596723},
..
'ZRH': {'code': 'ZRH', 'name': 'Zürich, Switzerland', 'status': 'operational', 'timestamp': 1682596723}Python usage 2Get status for a data center:>>> import cloudflarestatus
>>> cloudflarestatus.dc('HBA')
{'HBA': {'code': 'HBA', 'name': 'Hobart, Australia', 'status': 'partial_outage', 'timestamp': 1682596723}}NoteInternally,cloudflarestatuscaches response fromhttps://www.cloudflarestatus.comfor up to 60 seconds.Input for data center code is case-insensitive.Package developmentSetup~/.pyenv/versions/3.11.2/bin/python -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txtTest./test.shFormat./format.shBuild./build.sh