Saravanan666/pypi-org huggingface dataset:
Package: salesforce-requests-oauthlib
salesforce-requests-oauthlib==========================An extension to requests-oauthlib to specifically support calls to Salesforce APIs.Tests-----To run tests, install py.test and pytest-cov in your virtualenv and$ py.test --cov=src/salesforce_requests_oauthlib/ --cov-report html:coverageView test coverage results at ``./coverage``.Credits-------- `modern-package-template`_- `requests-oauthlib`_- `requests`_- `oauthlib`_- `py.test`_- `pytest-cov`_.. _`modern-package-template`: http://pypi.python.org/pypi/modern-package-template.. _`requests-oauthlib`: https://pypi.python.org/pypi/requests-oauthlib.. _`requests`: https://pypi.python.org/pypi/requests.. _`oauthlib`: https://pypi.python.org/pypi/oauthlib.. _`py.test`: http://doc.pytest.org/en/latest/index.html.. _`pytest-cov`: https://pypi.python.org/pypi/pytest-covNews====0.1.12---*Release date: 2019-02-25** Support new dependency versions0.1.11---*Release date: 2018-09-25** Logout always deletes tokens, even if the revoke call fails0.1.10---*Release date: 2018-09-24** Allow instantiation of session with bad refresh token0.1.9---*Release date: 2018-09-24** Postgres token storage now deletes entries on logout0.1.8---*Release date: 2018-09-22** Fix query method use of nextRecordsUrl; kwarg now more description (note small but breaking API change to query())0.1.7---*Release date: 2018-09-18** Correctly handle ports in callback url0.1.6---*Release date: 2018-09-13** Support web server flow - see the test for example* New query method0.1.5---*Release date: 2018-09-10** Refresh token persistence is now modular0.1.4---*Release date: 2018-04-30** Thanks to @paulie4 for the patch to allow an externally created oauthlib client.* New AUTHORS file* When token refresh fails, launch the appropriate authentication flow.  Allows for username/password clients to live past the session timeout.0.1.3---*Release date: 2018-02-20** Python's webbrowser module isn't working for chrome as default browser on OS X, so force safari as browser for oauth flow.0.1.2---*Release date: 2018-02-02** Allow custom domain to be specified for authentication0.1.1---*Release date: 2018-01-14** Python 3 compatibility - thanks @ivanpricewaycom !0.1---*Release date: 2016-08-26** First release.
Package: salesforce-scraper
Titlesalesforce ScraperDescrptionWith salesforce Scraper you can scrape search results and extract the contents produced by the search result.In salesforce scraper it will scrape the data present of the website and give json data which contains the details of the contents on the website.JSON sample data{"Scraper_Cloud":[{"buttonCTAComponent_section":"See the story","headingComponent_section":"BCCL is embracing digital innovation to enhance customer experience by offering the right products at the right price.","text_stratus_left_col_margin_top_bottom":"Achieve sales success from anywhere."},{"text_stratus_left_col_margin_top_bottom":"Faster, predictable growth begins with a more productive sales team."},{"bodyCopyComponent_section":"Sales Cloud is the perfect customer management solution for whatever phase of growth your company is in. Flexible enough for businesses of any size or industry and scalable for anything you need with the largest enterprise app ecosystem.","buttonCTAComponent_section":"Watch their story","headingComponent_section":"Powered by technology, WhiteHat Jr grew 30x in 10 months.","link_0":"/in/products/sales-cloud/features/contact-management-software/?d=cta-body-promo-96","link_1":"/in/products/sales-cloud/tools/sales-apps/?d=cta-body-promo-97","text_stratus_left_col_margin_top_bottom":"Flexible enough to grow with you. Adapt, iterate, grow, repeat."}Click Here for moreRun Scraperfromsalesforce_scraperimport*link="https://www.salesforce.com/in/products/service-cloud/overview/"data=run_salesforce_scraper(link)How it works?It takes URL of salesforce page with a search keyword to scrape the data.It generates the json data which contains the information of the salesforce search result.It gives the every detail present inside website in the form of json data.ExamplesBelow are some of the examples of URLs using which you can scrape:Example 1Example2Queries/ FeedbackIf you have some queries or feedback please contact us at followingTelegramEmail
Package: salesforce-streaming-client
salesforce-streaming-clientA Salesforce streaming API client for python, built on salesforce-requests-oauthlib and python-bayeux.TestsTo run tests, install py.test and pytest-cov in your virtualenv and$ py.test –cov=src/salesforce_streaming_client/ –cov-report html:coverageView test coverage results at./coverage.CreditsDistributemodern-package-templatepy.testpytest-covNews0.1.13
—Release date: 2019-06-05Allow change data capture channels0.1.12
—Release date: 2018-12-11If subscription fails, tell us why0.1.11
—Release date: 2018-10-29Handle both 402 and 403 unknown client messages0.1.10
—Release date: 2018-10-12Pass constructor kwargs to SalesforceOAuth2Session constructor0.1.9
—Release date: 2018-10-08Compatible with python-bayeux 0.1.70.1.8
—Release date: 2018-10-03Improved error handling; compatible with python-bayeux 0.1.60.1.7
—Release date: 2018-09-26%z for “Z” in datetimes is python 3.7 only; restore python 3.6 support0.1.6
—Release date: 2018-09-17Modularized replay data storage; compatible with salesforce-requests-oauthlib 0.1.60.1.5
—Release date: 2018-09-03Callbacks now wait for resubscribe to finish0.1.4
—Release date: 2018-08-29If connect tells us to handshake again, resubscribe after handshake0.1.3
—Release date: 2018-01-29Platform event support, python3 support, updated py.test set_level() usage.0.1.1
—Release date: 2016-11-28Fix dependencies.0.1Release date: 2016-08-26Initial release.
Package: salesking
# SalesKing Python SDK (beta)Your Business Cockpit one REST call away.Online CRM / Invoicing integration / PDF TemplateYou never need to build your Customer Invoicingyourself again.The SDK wraps the REST json schema API.## How the SDK works# Examples## Create a Client>>> from salesking import resources>>> model = resources.get_model_class("client")>>> data = {"organisation": "first customer"}>>> client = model(data)>>> client = client.save()## Create Client with nested Address>>> from salesking import resources>>>	model = resources.get_model_class("client")>>> client = model()>>> client.organisation = "second customer">>> model = resources.get_model_class("address")>>> address = model()>>> address.city = u"Duisburg">>> address.address1 = u"Foo Street">>> address.address2 = u"Appartment Bar">>> address.address_type = u"work">>> client.addresses = [address]>>> client = client.save()>>> print client.get_data()## List all Clientss with salesking in the name>>> from salesking import collection>>> valid_filters = {u"q": u"salesking"}>>> col = collection.get_collection_instance("client")>>> col.set_filters(valid_filters)>>> col.load()>>> for x in col.items:>>> 	print "numbers %s" % x.number## What you need to do in order to start1) Register and activate a DEVELOPMENT USER at* https://dev.salesking.eu/signup2) Register Your app inside your salesking dev account3) Take a look at the api* http://www.salesking.eu/dev/* http://www.salesking.eu/dev/docs/* http://www.salesking.eu/dev/api/4) Browse the schema* http://sk-api-browser.heroku.com5) create a local_settings.py in site-packages/salesking/.conf6) edit your details in local_settings.py7) have fun# TODO:* Examples* Add Invoice* Send Invoice
Package: sales_menu
The simple menu for Django.QuickstartInstall sales_menu:pip install sales_menuAddsales_menuto yourINSTALLED_APPSlist in your settings.sales_menurequires that therequestobject be available in
the context when you call the{% menu %}template tag. This
means that you need to ensure that yourTEMPLATE_CONTEXT_PROCESSORSsetting includesdjango.core.context_processors.request, which it
doesn’t by default.And use in template:{% menu_tags %}
{% menu %}

{% for item in menu %}

    <p>{{ item.text }}
    {% if menu_item in selected_menu_path %}
    &mdash; selected
    {% endif %}
    </p>

    {% for child in item.children %}
        <p>— {{ child.text }}</p>
    {% endfor %}
{% endfor %}FeaturesTODOHistory0.0.1 (2014-04-09)First release on PyPI.0.1.0 (2014-09-30)Fixed outdated requirementsAdded requires.io badgeRun test on Django 1.70.1.1 (2014-09-30)Fixed run on Django 1.4
Package: salestax
salestax-pythonPython module for gathering sales tax rates
Currently only supports Arkansas. Feel free to submit a pull request to help add other states.from salestax import Arkansas as ar

ar.get("700 W Walnut St", "Rogers", "72756")

{'taxable_state': 'Arkansas', 'state_tax_rate': '6.5%', 'is_state_taxable': True, 'taxable_county': 'Benton', 'county_tax_rate': '1%', 'is_county_taxable': True, 'taxable_city': 'Rogers', 'city_tax_rate': '2%', 'is_city_taxable': True}
Package: saliency-detector
Saliency DetectorPretrained Poolnet Saliency Detector for InferenceFree software: GNU General Public License v3Documentation:https://saliency-detector.readthedocs.io.FeaturesThis module allows inference with a pretrained poolnet saliency detector model.CreditsThis package is a slight modification of the repository found athttps://github.com/backseason/PoolNetwhich is the implementation of the model described in the paper athttps://arxiv.org/abs/1904.09569by the original authors.The images in the tests/test_data folder are from the ECSSD dataset.  More information on that dataset can be found at the following link:http://www.cse.cuhk.edu.hk/leojia/projects/hsaliency/dataset.html.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-06-01)First release on PyPI.
Package: salientdetect
salientdetect=============Slient Region Detector from ImageSample=======-  http://nbviewer.ipython.org/github/shunsukeaihara/salientdetect/blob/master/sample.ipynbReferences=======Ming-Ming Cheng, Guo-Xin Zhang, Niloy J. Mitra, Xiaolei Huang, Shi-Min Hu, Global Contrast based Salient Region Detection, CVPR, 2011.
Package: salinic
SalinicSalinic - provides modular search. It features a unified API that
allows you to plug in different search backends.
Currently, it supports Xapian and Solr backends.UsageDeclare your search schema:from typing import Optional
from typing_extensions import Annotated

from salinic.field import IdField, KeywordField, TextField
from salinic.schema import Schema


class MyModel(Schema):
    """Index schema"""
    id: Annotated[str, IdField(primary_key=True)]
    user_id: str
    parent_id: str
    title: Annotated[str, TextField()]
    text: Annotated[Optional[str], TextField()] = None
    tags: Annotated[Optional[list[str]], KeywordField()] = []Index your documents:from salinic import IndexRW, create_engine

    engine = create_engine("xapian:////search_index")
    index = IndexRW(engine, schema=MyModel)

    for document in all_your_documents():
        model = MyModel(
            id=str(document.id),
            user_id=str(document.user_id),
            parent_id=document.parent_id,
            title=document.title,
            text=document.text,
            tags=document.tags
        )
        index.add(model)Search your documents:from salinic import IndexRO, create_engine

    engine = create_engine("xapian:////search_index")
    index = IndexRO(engine, schema=MyModel)

    sq = Search(MyModel).query(" your query string ")

    for found in index.search(sq):
        print(found)  # found is instance of MyModelThe only modification of your for changing to different search
engine backend, is the first argument of thecreate_enginemethod e.g. from
"xapian:////search_index" to "solr://localhost:8983/my-index-name".
Package: salinity
SalinityAnalyzes Salt's highstate output and produces a report.Installationpip install salinityUsagesalt-call--local--state-output=changesstate.highstate|teesalt.output
salinitysalt.outputExample output:Top changes:
1. 61404.014 ms: file.managed: /data/grafana/etc/provisioning/dashboard_specs/node_exporter_full.json
2. 5428.821 ms: docker_container.running: prometheus
3. 5262.512 ms: docker_container.running: nginx
4. 4609.715 ms: docker_container.running: foo
5. 4211.843 ms: docker_container.running: grafana
6. 3013.05 ms: raid.present: /dev/md0
7. 1848.018 ms: service.running: foo.service
8. 1528.225 ms: file.managed: /var/downloads/jenkins.deb
9. 1467.314 ms: service.running: bar.service
10. 1466.487 ms: service.running: node_exporterLimitationscurrently supports only local salt-call runscurrently supports only--state-output=changesv0.1.3Bugfix: Fixed a crash when the ID and the name of a salt state are different.
Package: salla-python-sdk
Salla SDK ðŸ“¦Installation$installpythonversion3.10$pipinstallsalla-python-sdk$createa.envandfillallrequiredfieldsfrom.env.example.Supported FeaturesFeatureStatusGenerate Access Token From Codeâœ…Generate Access Token From Refresh Tokenâœ…Retrive Merchant infoâœ…Retrive Store infoâœ…Subscribe to a webhook URLâœ…Unsubscribe to a webhook byurloridâœ…List allregisteredandavailablewebhook/sâœ…ExamplesimportasynciofromsallaimportENV,Refresh_Token_Payload,Salla,Webhook_Events,WebhookPayloadasyncdefmain():s=Salla(ENV.ACCESS_TOKEN)# Get information about the merchant and print itawaits.get_merchant_info()# Get information about the store and print itawaits.get_store_info()# Subscribe to product update events using a webhookawaits.webhook_subscribe(WebhookPayload(name="Ryuk-me",event=Webhook_Events.PRODUCT_UPDATED,secret=ENV.WEBHOOK_SECRET,url="https://webhook.site/2453453-123n7bad6va123",security_strategy="token",))# Refresh the access token and print the resultawaits.get_access_token_from_refresh_token(Refresh_Token_Payload(client_id=ENV.CLIENT_ID,client_secret=ENV.CLIENT_SECRET,refresh_token=ENV.REFRESH_TOKEN,))# Get and print a list of active webhooksawaits.get_active_webhooks()# Get and print a list of available webhook eventsawaits.get_available_webhook_events()# Unsubscribe from a specific webhook and print the resultawaits.unsubscribe_webhook(url="https://webhook.site/2453453-123n7bad6va123")asyncio.run(main())LicenseMIT Â©9AI
Package: sallie
Getting tv information.History0.6.10 (2020-06-15)fix cli force paramhandle reauthorize0.6.9 (2020-04-12)Update tvdb-apiadd tox, flake80.6.8 (2020-02-29)Update multiple candidate match logic0.6.7 (2020-02-29)cli: add nosave flagcli: do not automatically check for new shows after updatecli: save after update (once)bug fix: show status not set for tvdbbug fix: update_all updates only first showallow force update with errors0.6.6 (2019-12-05)Save shows only on changes0.6.5 (2019-11-25)Update tvdb_api to 2.00.6.3 (2018-11-05)Update flotilsImprove file saving0.6.0b3 (2016-11-24)Attempt fix for long running tvdb bug0.6.0b1 (2016-05-15)Fix cache file bugImprove locking0.6.0b0 (2016-05-13)Small debug output reductionNot running warning0.6.0a0 (2016-05-13)Change cliChange check/check_all interfaces (Use check_all like check before)Make StartStopable0.5.4a0 (2016-05-05)First release
Package: salling-group-holidays
Unofficial library for the Salling Group Holidays APIUnofficial Python 3 library for theSalling Group Holidays API.The API supports fetching Danish holidays for a given date or range of
dates. This library simply provides an abstraction over that API.NoteThis library is in no way supported by Salling Group A/S nor is the author in any way affiliated with Salling Groups A/S.InstallationTo install this library, type the following into the command prompt:$ pip install salling-group-holidaysUsageFirst of all, an API key is needed to use the Salling Group Holidays
API.Contact Salling Group to receive your API key.Once you have received your key, you can start using this library. Usage is fairly simple. Start by getting an API instance:importsalling_group_holidaysAPI_KEY='your_api_key'v1=salling_group_holidays.v1(API_KEY)To see if a given date is a holiday, use a Pythondatetime.date
object. and
call theis_holidaymethod. For example, to see if today is a Danish
holiday:fromdatetimeimportdateimportsalling_group_holidaysv1=salling_group_holidays.v1(API_KEY)ifv1.is_holiday(date.today()):print('Great news. No work today!')else:print('Get back to work. No holiday today.')To get a list of holidays for a given period, call theholidaysmethod with a start and end date as a Pythondatetime.date
object. This
method returns a Python dictionary with the holiday dates as the key
and the name of the day as well as whether it is a holiday. For
example to get the list of Danish holidays in December 2018:fromdatetimeimportdateimportsalling_group_holidaysv1=salling_group_holidays.v1(API_KEY)holidays=v1.holidays(date(2018,12,1),date(2018,12,31))print('There are{}holidays in December 2018.'.format(len(holidays)))print('December 25th is{}'.format(holidays[date(2018,12,25)]['name']))Will output:There are 4 holidays in December 2018
December 25th is 1. juledag.
Package: sallron
Dynamically schedule data aggregation ⚔️ 👁️ 🗄️API agnostic data aggregation scheduler that automatically interacts
with your interface class and sends responses to DB.Dependenciesrequestsschedulepymongowalruspsutilpytzdiscord-loggerboto3Setuppip3installsallronDB StructureTo doUsageIf you want a regular lifecycle, just run the following code:importsallronimportExampleInterfacesallron.configureye(MONGO_CONN_STR='mongodb+srv://...',MAX_STEEL_URL='https://5423csd3j.exe...',ADMIN_COLLECTION='admin',_WEBHOOK='https://discord.com/api/webhooks/...',# Discord webhook for logging# AWS CONFIGAWS_ACCESS_KEY_ID="asnwnwjsMANS...",AWS_SECRET_ACCESS_KEY_ID="JASDWKkjndm$234/mkasd...",AWS_REGION="us-east-2",# defaultLOGGING_BUCKET='s3 bucket name for storing logs')# configure your MongoDB settingssallron.ring_ruler(ExampleInterface,"my_interface")Now, for auto-resets + notifications on exceptions/crashes, save the
previous file as you normally would (i.e. runner.py) and create a new
file (i.e. erunner.py):fromsallronimporteternal_runnerfromos.pathimportjoin,dirnamehere=dirname(__file__)if__name__=="__main__":filename="runner.py"filepath=join(here,filename)eternal_runner(filepath)Then just:python3erunner.pyConfigureyeRequired settings:MONGO_CONN_STRADMIN_COLLECTIONAvailable settings (= std_value):OS = ‘UBUNTU’SAVE_LOGS = FalseLOG_DIR = “logs/”MAX_LOG_SIZE = 100000000 # 100Mb
Package: salmon
A simple monitoring system built on top of Django.The intent is to serve both as an alerting system likemonitand a monitoring system likemunin(usingGraphite’s whisper database).The original release of Salmon was coupled toSaltand designed to monitor servers (SaltMonitor). As of v0.2.0, the system has been decoupled from Salt and ingests data via a simple HTTP interface.InstallationTo bootstrap the project:virtualenv salmon
source salmon/bin/activate
pip install salmon
salmon init
salmon upgrade
salmon collectstaticFire up the web server with:salmon startSending Metrics to SalmonMetrics are sent in as JSON over HTTP. The format for a single metric:{
    "source": "test.example.com",
    "name": "load",
    "value": 0.1
}Multiple metrics can be sent as an array:[
    {"source": "test.example.com", "name": "load", "value": 0.1},
    {"source": "multi.example.com", "name": "cpu", "value": 55.5}
]The API endpoint is/api/v1/metric/. If your Salmon server lives athttp://salmon.example.com, you canPOSTtohttp://salmon.example.com/api/v1/metric/. Pass in your API key as found in~/.salmon/conf.pyfor authentication. Using Curl, it would look something like this:curl -i --user "<API_KEY>:" \
     -H "Content-Type: application/json" \
     -X POST \
     -d '{"source": "test.example.com", "name": "load", "value": 0.1}' \
     http://salmon.example.com/api/v1/metric/Using SaltSetup thesalt-statsstates on your master or just grab thesalmon returnerAdd the path to your Salmon install and API key (found in~/.salmon/conf.py) to your Salt Pillar. (salmon pillar example)Add aschedulepillar. (schedule pillar example)Runsalt '*' saltutil.sync_allNote:To use Salt’spsmodule,psutilmust be installed on
the minions. Ubuntu provides apython-psutilpackage or it can be installed viapip install psutil.
Package: salmorejo
SalmorejoSalmorejo is a command line tool which will help you to run your own Python scripts in order to test, debug and/or analyze the status of your Kubernetes cluster in real time.Salmorejo is under heavy developmentHow does it work?Salmorejo will connect to your "current-connected" Kubernetes cluster (check$ kubectl cluster-info) and it will received changes in the desired objects. These events will be forwarded to your custom Python script.Your python script must contain a function callcallbackwhich has the argumentevent. Every event will contain 3 main fields:'type': The type of event such as "ADDED", "DELETED", etc.'raw_object': a dict representing the watched object.'object': A model representation of raw_object. The name of
model will be determined based on
the func's doc string. If it cannot be determined,
'object' value will be the same as 'raw_object'.Event information has been defined by thekubernetes library.Supported ObjectsCurrently, Salmorejo supports:Configmaps ("configmap", "configmaps", "cm")Daemonsets ("daemonset", "daemonsets", "ds")Deployments ("deployments", "deployment")Ingresses ("ingress", "ingresses", "ing")Pods ("pods", "pod", "po")Secrets ("secret", "secrets")Services ("services", "service", "svc")Statefulsets  ("statefulset", "statefulsets", "sts")InstallationFrom Pypi$python-mpipinstallsalmorejoFrom Code$python-mpipinstall-e.How to use it?CLI$salmorejowatch<pythonscriptpath><comma-separated-listofkubernetesobjects>From Code repository$pythonmain.pywatch<pythonscriptpath><comma-separated-listofkubernetesobjects>Example$salmorejowatch./scripts/counter.pypod,svc,deployments

+------------+--------------------+-------+|KIND|NAMESPACE|COUNT|+------------+--------------------+-------+|Service|default|2|+------------+--------------------+-------+|Deployment|kube-system|1|+------------+--------------------+-------+|Pod|kube-system|8|+------------+--------------------+-------+|Deployment|local-path-storage|1|+------------+--------------------+-------+|Service|kube-system|1|+------------+--------------------+-------+|Pod|local-path-storage|1|+------------+--------------------+-------+|Pod|default|4|+------------+--------------------+-------+ExamplesExamples of Scripts can be found underhereWhy PythonAlthoughGois the lingua franca to code against Kubernetes,Pythoncould be considered the most used programming language by SysAdmins, SREs or Platform Engineers. Salmorejo was thought for this kind of people, and we hope that they enjoy it.What actually is Salmorejo?Salmorejo is a traditional Andalusian food, originally from Córdoba.Wiki.
Package: salnama
salnamasalnama is a Python(v3.x) library for Calendar and Date Convertor For Persian Date, Gregorian Date ,Arabian Date with holiday and EventsInstallationUse the package managerpipto install salnamapipinstallsalnamaUsage>>>fromsalnamaimporttaghvim>>>jalali=taghvim.Jalali()>>>jalali.today()'1399-11-8'>>>jalali.event(jalali.today())'سالروز وفات حضرت امالبنین (س) - روز تکریم مادران و همسران شهدا'>>>jalali.event('2024-3-27')# Gregorian Date'روز جهانی تئاتر'>>>jalali.event('1446-5-24')# Hijri Date'زمین لرزه ی بم- سالروز شهادت آشو زرتشت- جشن کریسمس'>>>calendar=jalali.find_('2020-1-27',month=True,day=True,rtl=False)>>>calendar('سه شنبه','6','آبان','1399')>>>calendar[3]'1399'>>>jalali.holiday('1402-5-13')'تعطیل'>>>hijri=taghvim.Hijri()>>>hijri.today()'1442-6-13'>>>hijri.today(-1)#Change the days of the month'1442-6-12'>>>jalali.range('1402-1-1',6,to_jalali=True,holiday=True,event=False)[('1402','1','1','تعطیل'),('1402','1','2','تعطیل'),('1402','1','3','تعطیل'),('1402','1','4','تعطیل'),('1402','1','5',''),('1402','1','6','')]>>>miladi=taghvim.Gregorian()>>>miladi.find_('1403-9-14')('4','12','2024')>>>miladi.find_('1403-9-14',rtl=True)('2024','12','4')ContributingPull requests are welcome.LicenseApache License 2.0