Saravanan666/pypi-org huggingface dataset:
Package: crispy-parser
crispycrispyis my take on parsing command-line arguments. It is a dead simple tool that allows you to define your own keys for systematically gathering variables.In just 5 simple steps, you can start parsing any complicated user input into a dictionary—simple and predictable. It can't get more versatile than that, can it?CapabilitiesFeatureSupportVersionString, integer, float, and boolean type arguments✅v1.0.0Custom exceptions for tracking user errors in input✅v1.0.0Custom subcommands✅v2.0.0Positional arguments✅v2.1.0Treating quoted strings as single input inparse_string()TO DO...UsageTo start usingcrispy-parserin your projects, install it fromPyPI:$pipinstallcrispy-parserImport the parser into your source code:fromcrispy.crispyimportCrispyAdd your arguments:c=Crispy()c.add_variable("name",str)c.add_variable("age",int)c.add_variable("salary",float)Throw any user-inputted string or argument list at it!result=c.parse_string("--name John -a=21 --salary=30000.45")print(result){'name': 'John', 'age': 21, 'salary': 30000.45}Or parsesys.argv:arguments=c.parse_arguments(sys.argv[1:])print(arguments){'message': 'message.txt', 'targets': 'targets.txt', 'url_format': 'api.txt'}ContributingI welcome contributions to enhance and improve this library! Whether you want to fix a bug, add a new feature, or suggest an improvement, your contributions are highly appreciated.Just so you know, by contributing to this project, you agree to license your contributions under the same license governing this library. If you're unsure or have questions about the contribution process, please get in touch with me by opening an issue.CreditsFeel free to contact me for collaboration on anything!Ferit Yiğit BALABAN, <fyb@fybx.dev>My Website•My Bento•X•LinkedIn2023
Package: crispy-tailwind
ATailwind CSStemplate pack for the wonderfuldjango-crispy-forms.WARNINGThis project is still in its early stages of development. Any contributions to
the package would be very welcomed.Currently the template pack allows the use of the|crispyfilter to style
your form. Here is an example image.How to installInstall via pip.pip install crispy-tailwindYou will need to update your project’s settings file to addcrispy_formsandcrispy_tailwindto your project’sINSTALLED_APPSsetting. Also settailwindas an allowed template pack and as the default template pack
for your project:INSTALLED_APPS = (
    ...
    "crispy_forms",
    "crispy_tailwind",
    ...
)

CRISPY_ALLOWED_TEMPLATE_PACKS = "tailwind"

CRISPY_TEMPLATE_PACK = "tailwind"How to useThis project is still in its early stages.Current functionality allows the|crispyfilter to be used to style your
form. In your template:Load the filter:{% load tailwind_filters %}Apply the crispy filter:{{ form|crispy }}We can also use the{% crispy %}tag to allow usage of crispy-forms’FormHelperandLayout. In your template:Load the crispy tag:{% load crispy_forms_tags %}AddFormHelperto your form and use crispy-forms to set-up your formUse the crispy tag{% crispy form %}in your templateDocumentationThe documentation for this project is available here:https://django-crispy-forms.github.io/crispy-tailwind/index.htmlFAQsWhat about custom widgets?The template pack includes default styles for widgets included in Django
itself.Styling of widget instancescan be done by using thewidget.attrsargument when creating the widget.For example the following form will render<inputtype="text"name="name"class="customtextwidgetcustom-css"requiredid="id_name">:class CustomTextWidget(forms.TextInput):
    pass

class CustomTextWidgetForm(forms.Form):
    name = forms.CharField(
        widget=CustomTextWidget(attrs={"class": "custom-css"})
    )
Package: crispy-templates
=============================crispy-templates=============================.. image:: https://badge.fury.io/py/crispy-templates.png:target: https://badge.fury.io/py/crispy-templatesA collection of useful templates for customizing crispy forms layouts.Documentation-------------The full documentation is at https://crispy-templates.readthedocs.io.Quickstart----------crispy-templates depends on [crispy-forms](https://github.com/django-crispy-forms/django-crispy-forms#django-crispy-forms), make sure that you have properly installed crispy forms first.Install crispy-templates::pip install crispy-templatesAdd it to your `INSTALLED_APPS`:.. code-block:: pythonINSTALLED_APPS = (...'crispy_templates.apps.CrispyTemplatesConfig',...)Define your layout template in the `crispy_forms.helper.FormHelper` object:.. code-block:: pythonfrom crispy_forms.helper import FormHelperfrom crispy_forms.layout import Field, Layoutclass BookForm(forms.ModelForm):def __init__(self, *args, **kwargs):super(BookForm, self).__init__(*args, **kwargs)self.helper = FormHelper()self.helper.template_pack = "bootstrap3"self.helper.layout = Layout(Field('publication_status', template="crispy_templates/layouts/radio_btngroup_field.html"),)Add the javascript by running `python manage.py collectstatic` and then including it in your template:.. code-block:: python{% static 'crispy_templates/js/crispy_templates.js' %}Preferably add it to the footer of your page so as to not delay the page load.**Note** - Currently only supports the `bootstrap3` template pack that comes with `crispy_forms`.Credits-------Tools used in rendering this package:*  Cookiecutter_*  `cookiecutter-djangopackage`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackageHistory-------0.2.0 (2017-01-17)++++++++++++++++++* Fixed method of rendering field so form would pull out the data* Refactored how the project templates were structured and how to include the new template override* Updated documentation0.1.0 (2017-01-14)++++++++++++++++++* First release on PyPI.
Package: crispy-winner
crispy-winnerMitigate discord phishing attacks by spamming their webhooksWhat it doesThe PirateStealer phishing malware sends its ill-gotten gains (including tokens, passwords, andcredit card info) to Discord webhooks. This project takes a list of webhooks extracted from malware payloads and spams the pig poop balls to them with an @\everyone ping. Doing this fast enough can result in hitting the webhook's rate limit, shutting that webhook down and preventing other payloads from transmitting.How to runinstall Python (preferrably >3.0)runpip install crispy-winnerin the terminalruncrispy-winnerin the terminalprofitContributingThis project is under the Fuck Around and Find Out License. It is to be used for Good, not Evil.THIS PROJECT MAY ONLY BE USED TO PING-SPAM WEBHOOKS BELONGING TO PHISHERS AND FASCISTS. DO NOT USE IT TO SPAM ANYONE ELSE.If you encounter any other phishing malware with other webhooks, please write a PR to add them towebhooks.txt. In the future I may write a tool to automatically extract the webhook from malware EXEs.If you want to help in other ways, reportthis projectto GitHub using theReport Contentform. Some versions of the payload pull the raw code from this repo in order to function, so getting it removed will shut down numerous branches.
Package: cristin
Cristin APIThis project is in no way affiliated with cristin.no.It usesapi.cristin.no.You may install it fromPyPI:pip install cristinPersonThis script can search for a person:cristin --person Firstname SurnameYou can also limit search to a specific institution with@:cristin --person Firstname Surname @ uibResultsOnce you have a person'scristin_person_id, you can query their results:cristin --results 1234You can put a limit to how many results you want by appending the limit.cristin --results 1234 3If you want to get acsvoutput, simply usecristin --csv --results 1234 3Results by personIf you want to combine the two above, usecristin --resultsby firstname surname --csv
Package: critbot
Install:pip install critbotAdd to “config.py” file:import critbot.plugins.syslog
import critbot.plugins.slack
import critbot.plugins.email
from critbot import crit_defaults
import logging

crit_defaults.subject = 'MyService host:port CRIT'

crit_defaults.plugins = [
    critbot.plugins.syslog.plugin(),
    critbot.plugins.slack.plugin(
        token='Get it from https://my.slack.com/services/new/bot',
        channel='#general', # '@private' or '#channel'
        users='', # '@user1 @user2 @userN'
    ),
    critbot.plugins.email.plugin(
        to='Name1 <user1@example.com>, Name2 <user2@example.com>',
        user='critbot@example.com', # Add more config if not GMail.
        password='pa$$word',
    ),
]

crit_defaults.crit_in_crit = logging.getLogger('critbot').criticalCheck other config options and their defaults, e.g. “seconds_per_notification=60” and “spam=False”:https://github.com/denis-ryzhkov/critbot/blob/master/critbot/core.py#L23- “crit_defaults”https://github.com/denis-ryzhkov/critbot/blob/master/critbot/core.py#L38- “crit”https://github.com/denis-ryzhkov/critbot/blob/master/critbot/plugins/syslog.py#L17https://github.com/denis-ryzhkov/critbot/blob/master/critbot/plugins/slack.py#L14https://github.com/denis-ryzhkov/critbot/blob/master/critbot/plugins/email.py#L14Use “crit” in other files of your project:from my_project import config
from critbot import crit

try:
    1/0
except Exception:
    crit()
    # More processing if needed.

try:
    1/0
except Exception:
    crit(also='test2')

if True:
    crit('test3')If you are usinghttp://supervisord.org/then you can monitor stderr, EXITED and FATAL states with:[eventlistener:critvisor]
command=critvisor /path/to/config.py
events=PROCESS_LOG_STDERR,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL

[program:my_program]
stderr_events_enabled=true

Optional "crit_defaults.skip_stderrs" list allows to avoid some "safe" crits.
Optional "crit_defaults.max_stderr_crit_length" allows to save e.g. Slack from being broken.If you want to convert stderr of your small scripts to crits:stdcrit /path/to/config.py /path/to/script.py arg...To stop spam from multiple processes on the same host:crit_defaults.stop_spam_file.enabled = True
# "crit_defaults.stop_spam_file.path" defaults to "/run/lock/critbot" - RAM, no disk IO.To stop spam from multiple hosts:apt-get install libmemcached-dev zlib1g-dev
pip install pylibmc
crit_defaults.mc.enabled = True

And either "apt-get install memcached"
or update "crit_defaults.mc.servers" list.Please forkhttps://github.com/denis-ryzhkov/critbotand create pull requests with new plugins inside.
Package: criteo-api-marketingsolutions-sdk
Criteo API SDK for PythonIMPORTANT: This Python package links to Criteo production environment. Any test applied here will thus impact real data.Installation & Usagepip installpipinstallcriteo-api-marketingsolutions-sdk==2024.01.0.240207(you may need to runpipwith root permission:sudo pip install criteo-api-marketingsolutions-sdk==2024.01.0.240207)Then import the package:importcriteo_api_marketingsolutions_v2024_01Full documentation onGithub.DisclaimerTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: criteo-api-retailmedia-sdk
Criteo API SDK for PythonIMPORTANT: This Python package links to Criteo production environment. Any test applied here will thus impact real data.Installation & Usagepip installpipinstallcriteo-api-retailmedia-sdk==2024.01.0.240207(you may need to runpipwith root permission:sudo pip install criteo-api-retailmedia-sdk==2024.01.0.240207)Then import the package:importcriteo_api_retailmedia_v2024_01Full documentation onGithub.DisclaimerTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: criteo-marketing
Criteo Marketing SDK for PythonIMPORTANT: This Python package links to Criteo production environment. Any test applied here will thus impact real campaigns.Requirements.Python 2.7 and 3.5+Installation & Usagepip installpipinstallcriteo_marketing(you may need to runpipwith root permission:sudo pip install criteo_marketing)Then import the package:importcriteo_marketingFull documentation onGithub.DisclaimerTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: criteo-marketing-transition
Criteo Marketing Transition SDK for PythonIMPORTANT: This Python package links to Criteo production environment. Any test applied here will thus impact real data.Requirements.Python 2.7 and 3.5+Installation & Usagepip installpipinstallcriteo_marketing_transition(you may need to runpipwith root permission:sudo pip install criteo_marketing_transition)Then import the package:importcriteo_marketing_transitionFull documentation onGithub.DisclaimerTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: criteria-etl
Criteria-ETLThis repository contains general tools for Extracting, Transforming and Loading data in Criteria projects.Structure of the repositorytransformersmodulecolumns_base: scikit-learn compatible classes which transformpandas.DataFrame's along the columns axis.rows_base: scikit-learn compatible classes which transformpandas.DataFrame's along the rows axis.utilsmodulecommon_func: miscellaneous functions which might be useful in any project.config: placeholder for setting-up global variables of the project, used for loading data.dataload: functions used for loading data. It imports global variables fromconfigsub-module.display: functions used for displaying tables and plotting.expansion_func: functions designed for handling statistical sources which present anexpansion factor.
Package: criticalityMaps
CriticalityMapsCriticalityMaps is aWNTR-based utility for running large sets of
fire and pipe criticality simulations and visualizing the results on interactive leaflet.js html
maps. Additionally, the mapping utilities can be used to visualize any other attributes of the
network on an interactive .html map.Please see theproject documentationfor more details
on usage and capabilities.Funding DisclaimerThe U.S. Environmental Protection Agency (EPA) through its Office of Research and Development funded and collaborated in the research described herein under Interagency Agreement (IA #92432901) with the Department of Energyâ€™s Oak Ridge Associated Universities (ORAU).
Package: criticalmaas.ta1-geopackage
CriticalMAAS TA1 geopackage libraryThis repository contains schema definitions and
a reference Python library for manipulating a GeoPackage-based data transfer format for CriticalMAAS TA1, based on
theTA1 output
schemas.  It was
created by theMacrostrat TA4
teamand will be maintained
jointly by TA1 and TA4 as the schema is updated.InstallationThis package is listed ascriticalmaas.ta1-geopackageonPyPI.
It can be installed with standard Python semantics:# PIP installationpipinstallcriticalmaas.ta1-geopackage# Poetrypoetryaddcriticalmaas.ta1-geopackageThe package can also be installed directly from GitHub, e.g.pip install git+https://github.com/DARPA-CRITICALMAAS/ta1-geopackage.git.If you are not using Python, you can load the schema directly from
thecriticalmaas/ta1_geopackage/fixturesdirectory,
and use other tools such asogr2ogrto load data into the database.ExamplesExample maps (output fromMacrostrat's CLI writer):bc_kananaskis.gpkg:Kananaskis Lakes, BC/AB, 1.5 MBgrandcanyon.gpkg:Grand Canyon, AZ, 11.7 MBAt the moment, these only show final feature datasets (e.g.polygon_feature) for digital-native maps. Examples of
TA1 output for raster-based maps will be added soon.UsageBasic usage is as follows:fromcriticalmaas.ta1_geopackageimportGeopackageDatabasedb=GeopackageDatabase("my_map.gpkg",crs="EPSG:4326"# Geographic coordinates (default)# crs="CRITICALMAAS:pixel" # Pixel coordinates)# Insert types (required for foreign key constraints)db.write_models([db.model.map(id="test",name="test",description="test"),db.model.polygon_type(id="test",name="test",description="test"),])# Write featuresfeat={"properties":{"id":"test","map_id":"test","type":"test","confidence":None,"provenance":None,},"geometry":{"type":"MultiPolygon","coordinates":[[[(0.0,0.0),(0.0,1.0),(1.0,1.0),(1.0,0.0),(0.0,0.0)]]],},}db.write_features("polygon_feature",[feat])See thetestsand theMacrostrat CLI writerfor more examples.SchemaOngoing workTests with geographic dataHelpers for working with multiple projectionsExample datasetsExample script for dumping a Macrostrat mapSchema adjustments and improvements (seetracking issue)Make the package available ascriticalmass.ta1_geopackageon PyPI.Create example of writingpage_extractions with pixel coordinatesResourcesGeoPackageOGC GeoPackage specSwitch from ShapefilePrior artFiona: A python library for working with geospatial vector data.GeoPandas: A python library for working with geospatial vector data.GeoAlchemy 2: A python library for interfacing in PostGIS, Spatialite, and GeoPackage.Fudgeo: modern Python package for working with GeoPackages. Duplicates many features of more common
packages likefionaandgeopandasbut provides low-level access to the GeoPackage spec.
Package: critical-node
1. 内置数据集1.1 Network1.1.1 数据概述1.1.2 网络简介1.1.3 快速上手API1.2 SIR2. critical_node API2.1 DATA2.1.1 Inlay2.1.1.1 All_Data_Set简介：该函数用于获取该库中所以内置数据集的名称快速上手：% 快速获取库内的所有内置的网络名称
from src.critical_node.DATA.Inlay import All_Data_Set
AllData = All_Data_Set()
print(AllData)2.1.2 Get_Data2.1.2.1 Get_Single_BuilInNetwork简介：获取某个网络的点边数据集合return: [[node1,node2],[node2,node3],......]快速上手：% 快速获取as网络的数据列表
from src.critical_node.DATA.Get_Data import Get_Single_BuilInData
print(Get_Net_Data('as'))2.1.2.2 Get_All_BuilInNetwork简介：获取内置数据库内的所有数据的字典return: {BuilInData:[[node1,node2],......],......}快速上手：% 快速获取内置所有网络的数据字典
from src.critical_node.DATA.Get_Data import Get_All_BuilInData
print(Get_All_BuilInData())**
Package: criticalpath
CriticalPathCalculates thecritical paththrough a network of tasks.Assumes the given graph is acyclic (has no loops).A task network is composed of nodes, but it's also organized within
a parent node. This allows my node/task model to support recursive nesting
of tasks. e.g. An overall "project" node containing multiple tasks can be
treated as a single task in itself, and therefore included in more abstract
task groupings.Installationpip install criticalpathUsage>>> from criticalpath import Node
>>> p = Node('project')
>>> a = p.add(Node('A', duration=3))
>>> b = p.add(Node('B', duration=3, lag=0))
>>> c = p.add(Node('C', duration=4, lag=0))
>>> d = p.add(Node('D', duration=6, lag=0))
>>> e = p.add(Node('E', duration=5, lag=0))
>>> p.link(a, b).link(a, c).link(a, d).link(b, e).link(c, e).link(d, e)
project
>>> p.update_all()
>>> p.get_critical_path()
[A, D, E]
>>> p.duration
14DevelopmentTo run unittests across multiple Python versions, install:sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python-dev python3-dev python3.3-minimal python3.3-dev python3.4-minimal python3.4-dev python3.5-minimal python3.5-dev python3.6 python3.6-devTo run alltests:export TESTNAME=; toxTo run tests for a specific environment (e.g. Python 2.7):export TESTNAME=; tox -e py27
Package: critics
Usage: critics [OPTIONS]

  Notify about new reviews in AppStore and Google Play in slack.

  Launch command using supervisor or using screen/tmux/etc. Reviews are
  fetched for multiple apps and languages in --beat=300 interval.

Options:
  --ios TEXT                   ios app id, e.g. 122434343
  --ios-channel TEXT           Slack channel for ios notifications, optional
  --android TEXT               Android app name, e.g. "com.rovio.angrybirds"
  --android-channel TEXT       Slack channel for android notifications, optional
  --language TEXT              ISO 639-1 languages of review [default: system locale]
  --slack-webhook TEXT         Slack webhook absolute URL, required
  --parse-max-entries INTEGER  Number of feed entries to look into [default: 10]
  --beat INTEGER               Number of seconds between polling feed [default: 300]
  --verbose / --short
  --notify / --no-notify
  --persist / --no-persist
  --model PATH
  --daemonize / --run-once
  --version
  --help                       Show this message and exit.ExamplesTrack English and Russian reviews for iOS and Android Angry Birds apps
and post them to separate channels:critics --ios=343200656 --android=com.rovio.angrybirds \
        --slack-webhook=YOUR_SLACK_WEBHOOK_URL \
        --language=en --language=ru \
        --ios-channel="#ios_reviews" --android-channel="#android_reviews"Previous command, but using env variables:CRITICS_IOS=343200656 CRITICS_ANDROID=com.rovio.angrybirds \
CRITICS_SLACK_WEBHOOK=YOUR_SLACK_WEBHOOK_URL CRITICS_LANGUAGE="en ru" \
CRITICS_IOS_CHANNEL="#ios_reviews" CRITICS_ANDROID_CHANNEL="#android_reviews" \
criticsFor demo purpose (does not require slack): parse ios feed for MyBook app
and print reviews in stdout:critics --ios=556540446 --run-once --no-notify --no-persist --verboseHow it looksChangelog0.2.1 (2015-03-20)Change default request timeout to 5 seconds0.2.0 (2015-03-19)Multiple languages supportEnglish and Russian translationsUsable url for iOS review0.1.0 (2015-03-09)Initial release