Saravanan666/pypi-org huggingface dataset:
Package: cartoonista
Cartoonista - A python cartoon libraryA library to get a random cartoon image url from ~20000 cartoons.
It also contains the scrapers for many cartoon websites.:tada: :satisfied: :man_facepalming:A product of the finest german overengineering to solve a non existing problem with a complicated solution.:man_facepalming: :satisfied: :tada:SitesEnglish:https://xkcd.comhttps://explosm.nethttps://loadingartist.com/https://www.smbc-comics.comhttps://www.commitstrip.comhttps://jamesofnotrades.comGerman:https://joscha.com/nichtlustighttps://ruthe.dehttps://martin-perscheid.dehttps://islieb.dehttps://www.schoenescheisse.deThis lib includes all scrapers for these sites, but it ships with all data, so these are only needed for manual updating.Installpip install cartoonistaExamples / Documentationfrom cartoons import Cartoons

Cartoons.get_random_cartoon(
    include=["xkcd_com", "ruthe_de"],  # optional
    exclude=["loadingartist_com", "commitstrip_com"],  # optional
    languages=["en"],  # optional
    exclude_tags=["offensive"],  # optional
    weighted=False  # optional
)This is the main function to get a random cartoon. There are optional filter parameters:cartoonists: Get only from these cartoonists. You can get the names and all infos withCartoons.get_all_cartoonists()language: Get only in this languages. There are currently only "en" and "de" cartoons.exclude_tags: Exclude cartoonists by tags. Possible values: "offensive", "nsfw"weighted: Default is to give cartoonists a weight by the amount of there cartoons, to prevent double cartoons for cartoonists with small amounts. This can be disabled, to randomize even over all cartoonists.
The cartoons have to match all filters.It returns something like this:{
    'img': 'https://imgs.xkcd.com/comics/standard_model_changes.png', 
    'title': 'Standard Model Changes', 
    'txt': "Bugs are spin 1/2 particles, unless it's particularly windy.", 
    'credits': 'Randall Munroe', 
    'website': 'https://xkcd.com',
    'tags': []
}Title/txt could be placed over/under the image and it would be fair to give credit and link to website.Manual updatingManual updating isn't strictly needed, cause the lib ships with all data, but it's possible.Install the requirements withpip install pip install cartoonista[scraping]or manually install requests and beautifulsoup4.Run thescrape.pyfrom the repo (that gives you some logging output) or start scraping by runningpython -c "exec(\"from cartoons import Cartoons\nCartoons.start_scraping()\")". It's also possible to update only some cartoonist withCartoons.start_scraping(cartoonists=["islieb.de", "xkcd.com"]).
Package: cartoreader-lite
CARTOreader - liteThis repository is an inofficial reader to easily process exportedCARTO3 datain Python.
It does not provide the more extensive capabilities to analyze the signals, such asOpenEP, but is rather meant as a simple reader to import CARTO data.
The loaded time data is imported inpandasand the meshes inVTKprovided throughPyVista, allowing for easy access, export and interoperatibility with existing software.InstallationTo installcartoreader_lite, you have to clone the repository and install the libary usingpip.gitclonehttps://github.com/thomgrand/cartoreader-litecdcartoreader-lite
pipinstall-e.UsageTo test the library, you first need to get CARTO3 data.
None is provided with this repository, but you can download the testing data provided byOpenEPto quickly try out the library (make sure the libary was installed first):pythontests/generate_test_data.pyfromcartoreader_liteimportCartoStudyimportpyvistaaspvimportnumpyasnpstudy_dir="openep-testingdata/Carto/Export_Study-1-11_25_2021-15-01-32"study_name="Study 1 11_25_2021 15-01-32.xml"study=CartoStudy(study_dir,study_name,carto_map_kwargs={"discard_invalid_points":False}#All points of the example are outside the WOI, which would be by default discarded)ablation_points=pv.PolyData(np.stack(study.ablation_data.session_avg_data["pos"].to_numpy()))ablation_points.point_data["RFIndex"]=study.ablation_data.session_avg_data["RFIndex"]plotter=pv.Plotter()plotter.add_mesh(ablation_points,cmap="jet")plotter.add_mesh(study.maps[2].mesh)plotter.show()You should see the recorded map of theOpenEPexample, together with its recorded points like below.Documentationhttps://cartoreader-lite.readthedocs.io/en/latest
Package: carto-report
carto-reportA Python module to export a database metrics as a html file for CARTO organization user.InstallationYou can install carto-report by cloning this repository or by usingPip:$pipinstallcarto-reportIf you want to use the development version, you can install directly from github:$pipinstall-egit+git://github.com/CartoDB/carto-report.git#egg=cartoIf using, the development version, you might want to install dependencies as well:$ pip install -r requirements.txtOnly tested in Python 3Usage ExampleCommand Line applicationThe package installs a command line applicationcarto_reportthat has the following usage instructions:$carto_report-husage: carto_report [-h] [--user-name CARTO_USER] [--api_key CARTO_API_KEY]
                    [--api_url CARTO_API_URL] [--organization CARTO_ORG]
                    [--output OUTPUT] [--quota QUOTA]
                    [--loglevel {DEBUG,INFO,WARNING,ERROR}]

CARTO reporting tool

optional arguments:
  -h, --help            show this help message and exit
  --user-name CARTO_USER, -U CARTO_USER
                        Account user name (defaults to env variable
                        CARTO_USER)
  --api_key CARTO_API_KEY, -a CARTO_API_KEY
                        Api key of the account (defaults to env variable
                        CARTO_API_KEY)
  --api_url CARTO_API_URL, -u CARTO_API_URL
                        Set the base URL. For example:
                        https://username.carto.com/ (defaults to env variable
                        CARTO_API_URL)
  --organization CARTO_ORG, -o CARTO_ORG
                        Set the name of the organization account (defaults to
                        env variable CARTO_ORG)
  --output OUTPUT       File path for the report, defaults to report.html
  --quota QUOTA, -q QUOTA
                        LDS quota for the user, defaults to 5000
  --loglevel {DEBUG,INFO,WARNING,ERROR}, -l {DEBUG,INFO,WARNING,ERROR}
                        How verbose the output should be, default to the most
                        silentAs a python modulefromcarto_report.reportimportReporterreporter=Reporter(CARTO_USER,CARTO_API_URL,CARTO_ORG,API_KEY,USER_QUOTA)withopen('/tmp/report.html','w')aswriter:writer.write(reporter.report())Where the different parameters are:CARTO_USER: user name of the account to checkCARTO_API_URL: this is usuallyhttps://{CARTO_USER}.carto.com/but may differ if you are not usingcarto.comaccountsCARTO_API_KEY: your CARTO ENGINE master API keyUSER_QUOTA: your LDS quotaKnown IssuesImprove report layout and style (with Airship).Add assertions.Use conditionals within the template.Add debug loggins to bet feedback, especially when getting all tables and analysis.Include logging as a proper library.
Package: cartorio
1. CartorioA wrapper on theloggingmodule for Python that provides a simple and easy-to-use interface for logging.2. Contents1. Cartorio2. Contents3. Installation4. Documentation5. Usage3. Installationpipinstallcartorio4. Documentationhttps://cartorio.readthedocs.io/en/stable/5. UsageConsider that your project consists of two scripts:parent.py
child/
└──child.pyAn example of these scripts are:# parent.pyfrompathlibimportPathfromcartorioimportmake_logger,logfromchild.childimportmultiply@logdefmain()multiply(10,1)if__name__=="__main__":# Instantiation of log filelogger,_=make_logger(filename=Path(__file__).resolve().stem,logs_path=Path(__file__).resolve().parent)# where,# filename (str, Path): Log file.# logs_path (Path): Path where the log file is saved to.main()# child.pyfromcartorioimportfun,log@logdefmultiply(num1,num2):returnnum1*num2The log filename will beparent_<timestamp>.logand it will contain the information in the form<timestamp> || root || 30664 || INFO || parent.py || parent || <line_number> || Enter || multiply
<timestamp> || root || 30664 || INFO || parent.py || parent || <line_number> || Leave || multiply || Elapsed: 0:00:00.001708
Package: cartouche
Sphinx is a popular tool for documenting Python APIs which uses reStructuredText
as a its lightweight markup language. Sphinx extends restructured text with
semantic markup elements for documenting Python APIs but when these are used the
ratio of markup to content becomes too high and readability is compromised
enough that the docstring becomes unsuitable for use with standard Python
introspection mechanisms like help() or IDEs.Cartouche is an a Sphinx extension which automatically converts a highly
readable docstring format suitable for use with help() and IDEs to the
reStructuredText hieroglyphics required by Sphinx.
Package: cartoview
What is Cartoview?Cartoviewis a web platform that extends the popularGeoNodeSDI to provide the ability to create, share, and visualize GIS Web Mapping Applications easily and quickly from the browser. Cartoview Provides anApp Storefor GIS Developers.Cartoview enables communities of users to share geospatial applications, to collaborate on these applications, and to exchange the underlying data as Open Geospatial Consortium (OGC) compliant web services.Cartoview has been built utilizing open source software and open standards to make it available for all GIS operators and to maximize interoperability.Try CartoviewYou can try Cartoview by visiting our official demo online at:http://try.cartoview.net/.After registration, you will be able to explore all the basic functionalities of GeoNode like uploading layers, creation of maps, editing metadata, styles and much more but more importantly, the apps provided by Cartoview.Install CartoviewCartoview can be setup and installed in different ways, flavors and plattforms. If you´re planning to do development or install for production please visit the offical Cartoview installation documentation:Ubuntu 20.04 LTSWindowsDockerCartoview also has a Windows installer which doesn't require any knowledge regarding programming and can be requested and downloaded fromhere.Customizing CartoviewIf you're planning of customizing your Cartoview instance, or to extend its functionalities it's not advisable to change the core files here in any case.It's recommended to set up and install aCartoview Project Templatefollowing the available guidehere.SupportIf you have any inquiry regarding Cartoview, feel free to contact us by filling out the formhereor sending an e-mail tocartoview@cartologic.com.Most useful linksProject homepage:https://cartoview.netRepository:https://github.com/cartologic/cartoviewCartoview Project:https://github.com/cartologic/cartoview-projectOfficial Demo:http://try.cartoview.netDocumentation:https://cartoview.readthedocs.io
Package: cartoview-2
Cartoview 2Quick Startgit clone -b cartoview2 --single-branch https://github.com/cartologic/cartoview.git
cd cartoview
virtualenv venv
.\venv\Scripts\activate
pip install -r requirements.txtYou must adjust the Database settings in settings > base.py - or create a local settings filepythonmanage.pycreatecachetablepythonmanage.pymigratepythonmanage.pyloaddatainitial_groups.jsonpythonmanage.pyloaddatainitial_users.jsonrun serverpythonmanage.pyrunserverAdditonal Info
Package: cartridge-stripe
cartridge-stripe================Stripe_ credit card processing integration with Cartridge_... _Cartridge: htps://cartridge.jupo.org.. _Stripe: https://stripe.com/docs==========Install==========Follow the installation instructions of django-zebra_... _django-zebra: https://github.com/GoodCloud/django-zebra#installation::pip install cartridge-stripeUpdate the settings.py to use your shiney new app.Add it to 'INSTALLED_APPS' above 'cartridge.shop' to override the checkout templateor copy it to the templates dir in your project.::INSTALLED_APPS = (# ...'cartridge_stripe','cartridge.shop',# More stuff...'zebra',)SHOP_HANDLER_PAYMENT = 'cartridge_stripe.payment_handler'SHOP_CHECKOUT_FORM_CLASS = 'cartridge_stripe.forms.OrderForm'ZEBRA_ENABLE_APP = True=======Style=======Add some sort of style for 'div.payment-errors' which will display validationerrors from stripe.::div.payment-errors {color: #F00;}=====Done!=====Now your checkout flow should have card validation and the Stripe order numberlinked to the purchase.=====Feedback=====I'm open to bugs and pull requests. Just run pep8 first.Follow me and say hi!  https://twitter.com/readevalprint
Package: cartridge-tax
#cartridge_taxAn implementation of sales tax for [Cartridge](http://cartridge.jupo.org/).A flat sales or value-added tax can be applied to in-state or all sales. Tax can optionally be applied to shipping costs.For US-based sites, [TaxCloud.net](http://taxcloud.net/)'s tax lookup web service is optional.## DISCLAIMERThis should work out-of-the-box for simple cases. However, your particular implementationof Cartridge may require rewriting this or merging components into or out of other projects.## InstallationWorking in your project's [virtualenv](http://www.virtualenv.org/en/latest/index.html):```pip install cartridge-tax```or```git clone https://github.com/kenbolton/cartridge-tax.gitcd cartridge-taxpython setup.py install```Add `'cartridge_tax'` to your settings.INSTALLED_APPS before`'cartridge.shop'`.Set up your tax information in the admin configuration settings,/admin/conf/setting/. Note the value you put in 'Shop State'. You willneed to inject a "choices" dict into`cartridge.shop.forms.OrderForm['fields']['shipping_detail_state']`. Thevalues in that dict should match the style in 'Shop State'. See theexample below in `Custom OrderForm`.### Billing/Shipping and Order HandlersAdd the following to your settings:```SHOP_HANDLER_BILLING_SHIPPING = \"cartridge_tax.checkout.tax_billship_handler"SHOP_HANDLER_ORDER = "cartridge_tax.checkout.tax_order_handler"```### Extra model fieldsBelow is an example of settings.EXTRA_MODEL_FIELDS. Be sure to add thesetuples to your own EXTRA_MODEL_FIELDS.```EXTRA_MODEL_FIELDS = (("cartridge.shop.models.Product.tic","CharField",(u"Taxability Information Code",),{"max_length":"5", "blank": True, "default":"00000", },),("cartridge.shop.models.Order.tax_total","DecimalField",(u"Tax Total",),{"null": True, "blank": True, "max_digits": 10,"decimal_places": 2},),("cartridge.shop.models.Order.tax_type","CharField",(u"Tax Type",),{"blank": True, "max_length": "20", "default":"Flat sales tax"},),)```### Custom OrderFormAn example for the US is at `cartridge_tax.forms.USOrderForm`. Thisimplementation uses the two-letter state abbreviation, so put e.g. NY asthe value of `TAX_SHOP_STATE` in /admin/conf/settings/. Add toyour `settings.py`:`SHOP_CHECKOUT_FORM_CLASS = 'cartridge_tax.forms.USOrderForm'``USOrderForm` can be used as an example for developing `OrderForm`subclasses for other tax jurisdictions.## Registered Settings* TAX_SHOP_ADDRESS* TAX_SHOP_ADDRESS2* TAX_SHOP_CITY* TAX_SHOP_STATE* TAX_SHOP_POSTCODE* TAX_SHOP_POSTCODE_PLUS4* TAX_OUT_OF_STATE* TAX_FLAT_RATE* TAX_SHIPPING_ADDRESS* TAX_SHIPPING* TAX_USE_TAXCLOUD* TAX_USE_TAXCLOUD_AUTHORIZATION* TAX_TAXCLOUD_API_ID* TAX_TAXCLOUD_API_KEY
Package: carvajal
Helper functions for describing AWS infrastructure.carvajalis particularly intended for writing tests,
but can also be used for monitoring and auditing.carvajalincludes terraform helpers to look up
variables, data sources, and other terraform objects.carvajalhas been in use for a few years now,
but you should not consider it stable (yet).
Pin your version in yourrequirements.txt,
please, or be prepared to rewrite some of your tests on occasion.carvajalwill always follow semantic versioning.Complete documentation is athttps://carvajal.readthedocs.io/en/latest/index.html.Source code is athttps://github.com/coalfire/carvajal.usagepip install carvajalCreate atestdirectory.Write some tests for all of your instances intest/test_all.py:importpytestfromcarvajalimportawsdeftest_none_accept_ssh_from_world():my_instances=aws.get_instances()ssh_ingress_rules=aws.instances_ingress_rules_for_port(my_instances,22)actual=aws.rules_cidrs_and_security_groups(ssh_ingress_rules)assert"0.0.0.0/0"notinactual["cidrs"]Runpytest.philosophy and alternativescarvajalhas some guiding principals:test deployed resources, not the deploy code.make broad assertions about the state of your infrastructure - for instance:nothing has 22 open from the world.web instances only allow 443 in.test in production.It’s not that we arenotgoing to test before we go to prod.It is that we are going tocontinuetesting once we reach prod.use an existing language (in this case Python),
rather than having new tools specific to Infrastructure-as-Code.At least some users will not have to learn a new languageUsers can choose from multiple test frameworks (pyunit, pytest, etc)Users can integrate into other tools - for instance, prometheus exporters.carvajalis only one of many tools for testing Infrastructure-as-Code.we don’t think other Infrastructure-as-Code philosphies are wrong,
but they do not accomplish whatcarvajalis trying to accomplish.Some other tools you might consider are:TerratestKitchen-TerraformInSpecServerspecScoutSuitedevelopmentmakehelpto doWe need tests.We need type hints.Function names could do with a thorough review and setting a standard format.
Package: carve
🌲CarveA minimalist Python library for manipulating nested data structures with ease and performance.Take a look:>>> from carve import treemap
>>> obj = {"john": {"doe": [{"puma": "yes", "adidas": None}]}}
>>> treemap(obj, remove_empty)
{"john": {"doe": [{"puma": "yes"}]}}
>>> treemap(obj, lambda k,v,p: ("PUMA", "puma") if k == "puma" else (k,v))
{"john": {"doe": [{"PUMA": "puma", "adidas": None}]}}Quick StartInstall using pip/pipenv/etc. (we recommendpoetryfor sane dependency management):$ poetry add carveTransform your dictionary using ak,v,pcontext for each operation:k - key.v - value.p - path, in the form of a tuple: ("john", "doe") means the nested key "john.doe".And return a key-value tuple:(key, value). You can:Return a custom value to change both key and value("foo", "bar")Just modify a key:("foo", v)Just modify a value:(k, "bar")Remove the current entry:(None, None)Decide what to do based on your current path:(None, None) if "secret" in p else (k,v)BuiltinsYou can use the following builtins for shortcut operations:fromcarveimporttreemap,mapkey,mapval,remove,on_key,remove_empty,flowtreemap(target,remove(lambdak,v,p:k=="adidas"))treemap(target,mapval(lambdak,v,p:"X"iflen(p)>2elsev))treemap(target,mapkey(lambdak,v,p:"X"+viflen(p)>2elsek))treemap(target,on_key("puma",lambdak,v,p:(k,"X")))treemap(target,remove_empty)# multiple builtins, left-to-right with 'flow'asserttreemap(target,flow(scream,remove_empty))Thanks:To allContributors- you make this happen, thanks!CopyrightCopyright (c) 2018@jondot. SeeLICENSEfor further details.
Package: carveman
DescriptionFile carving for pictures, documents and other files based on it's header an footer signatures. Does work for non fragmented files only at the moment.Available Files:.jpg.png.pdfInstallationpip install carvemanUsageFrom command line:python -m carveman --path PATH [--outdir OUTDIR]OptionShortTypeDefaultDescription--path-pString-Path to carving source (dd, raw)--outdir-oStringcarveman-resultPath to dir where carved files are locatedExamplepython -m carveman -p path/to/carving-source/example.ddThe carved files will be located incarveman-result###########################################################################################

Carveman by 5f0
File carving for pictures, documents and other files based on it's file signatures

Current working directory: path/to/carveman
        Investigated file: example.dd

                      MD5: 9ff0c5b220e4345133181e7101571374
                   SHA256: b4864ce518b51e0fe6ee43cf705a5a39bedc97c25c97e857314b22b7d5e500a7

     Path to carved files: carveman-result

 Datetime: 01/01/1970 10:11:12

###########################################################################################

--> Carving started

--> Carving for: .jpg

------> .jpg detected! - Start Hex: 0x7000 - End Hex: 0xc1b0 - Nr: 1
------> .jpg detected! - Start Hex: 0xf000 - End Hex: 0x22d77 - Nr: 2
------> .jpg detected! - Start Hex: 0x2e000 - End Hex: 0x2f234 - Nr: 3
------> .jpg detected! - Start Hex: 0x30000 - End Hex: 0x326e4 - Nr: 4
------> .jpg detected! - Start Hex: 0x33000 - End Hex: 0x33e73 - Nr: 5
------> .jpg detected! - Start Hex: 0x34000 - End Hex: 0x362c0 - Nr: 6
------> .jpg detected! - Start Hex: 0x37000 - End Hex: 0x38b20 - Nr: 7
------> .jpg detected! - Start Hex: 0x39000 - End Hex: 0x3b7e7 - Nr: 8
------> .jpg detected! - Start Hex: 0xb7000 - End Hex: 0xb8234 - Nr: 9
------> .jpg detected! - Start Hex: 0xb9000 - End Hex: 0xbb6e4 - Nr: 10
------> .jpg detected! - Start Hex: 0xbc000 - End Hex: 0xbce73 - Nr: 11
------> .jpg detected! - Start Hex: 0xbe000 - End Hex: 0xc02c0 - Nr: 12
------> .jpg detected! - Start Hex: 0xc1000 - End Hex: 0xc2b20 - Nr: 13
------> .jpg detected! - Start Hex: 0xc3000 - End Hex: 0xc57e7 - Nr: 14
------> .jpg detected! - Start Hex: 0x338219 - End Hex: 0x339be0 - Nr: 15
------> .jpg detected! - Start Hex: 0x33a498 - End Hex: 0x33bc9b - Nr: 16

--> Carving for: .png


--> Carving for: .pdf

------> .pdf detected! - Start Hex: 0xb4000 - End Hex: 0xb618c - Nr: 1
------> .pdf detected! - Start Hex: 0x530000 - End Hex: 0x53018f - Nr: 2

--> Carving finished

###########################################################################################

Execution Time: 0.059799 secLicenseMIT
Package: carveme
CarveMeCarveMe is a python-based tool for genome-scale metabolic model
reconstruction.DocumentationFor more details please check:http://carveme.readthedocs.io/InstalationCan be easily installed usingpip:pip install carvemeAdditionally, you must install diamond and CPLEX (please check the
documentation for details).Credits and LicenseDeveloped at the European Molecular Biology Laboratory (2017).Released under an Apache License.