Saravanan666/pypi-org huggingface dataset:
Package: scgt
SCGTSanta Cruz Geographical ToolkitThis library provides convenience functions to read and write GeoTiff files,
including iterating over their tiles.Authors:Luca de Alfaro (luca@ucsc.edu)Jasmine Tai (cjtai@ucsc.edu)Natalie Valett (nvalett@ucsc.edu)Coen Adler (ctadler@ucsc.edu)Artie Nazarov (anazarov@ucsc.edu)Basic Usagefrom scgt import GeoTiff, Tile, Reader

gt_in = GeoTiff("somefile.tif")
reader = gt.get_reader(b=border_size, w=block_size, h=block_size)
with gt_in.clone_shape("outputfile.tif") as gt_out:
    for tile in reader:
        new_tile = process(tile)
        gt_out.set_tile(new_tile)For more details, seethe documentation.
Package: sc-gz-dashboard
A simple Python project sample structureThis project provides a sample structure for creating python project.InstallationIt is possible to install the tool withpip:pip install sc-gz-dashboardConfigurationConfiguration files reading in this order, the first is the top most priority:production.xml in current directory,production.xml in <project_name> directory under User directory,production.xml in <project_name> directory under /var/opt/sc/ directory,default.xml in <project_name> directory under /var/opt/sc/ directory.The default configuration file looks like this:dev:
  # whether this program is running is development mode
  dev_mode: FalseLicenseThe script is released under the MIT License.  The MIT License is registered
with and approved by the Open Source Initiative[1].[1]https://opensource.org/licenses/MIT
Package: sc-gzhr-notification
A simple Python projectThis is a simple python project.InstallationIt is possible to install the tool withpip:pip install sc-gzhr-notificationConfigurationConfiguration files reading in this order, the first is the top most priority:production.xml in current directory,production.xml in <project_name> directory under User directory,production.xml in <project_name> directory under /var/opt/sc/ directory,default.xml in <project_name> directory under /var/opt/sc/ directory.The default configuration file looks like this:dev:
  # whether this program is running is development mode
  dev_mode: FalseLicenseThe script is released under the MIT License.  The MIT License is registered
with and approved by the Open Source Initiative[1].[1]https://opensource.org/licenses/MIT
Package: schadem-cdk-construct-sfn-idp-decider
ContextConstruct as part of the IDP processing suite, usually ran at the beginning.
Gets number of pages, validates that the mime type of the file is supported.
Will serialize to a manifest and therefore requires that format.https://pypi.org/project/schadem-tidp-manifest/InputA manifest file as event source for a Lambda function.Outputadds:mime
numberOfPages{"manifest":{"S3Path":"s3://my-stack-dev-documentbucket04c71448-19ew04s4uhy8t/uploads"},"mime":"application/pdf","numberOfPages":12}
Package: schadem-cdk-construct-textract-generic-async
ContextThis CDK Construct can be used as Step Function task and call Textract in Asynchonous mode for DetectText and AnalyzeDocument APIs.InputExpects a Manifest JSON at 'Payload'.
Manifest description:https://pypi.org/project/schadem-tidp-manifest/Example call in Pythontextract_async_task=t_async.TextractGenericAsyncSfnTask(self,"textract-async-task",s3_output_bucket=s3_output_bucket,s3_temp_output_prefix=s3_temp_output_prefix,integration_pattern=sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,lambda_log_level="DEBUG",timeout=Duration.hours(24),input=sfn.TaskInput.from_object({"Token":sfn.JsonPath.task_token,"ExecutionId":sfn.JsonPath.string_at('$$.Execution.Id'),"Payload":sfn.JsonPath.entire_payload,}),result_path="$.textract_result")OutputAdds the "TextractTempOutputJsonPath" to the Step Function ResultPath. At this location the Textract output is stored as individual JSON files. Use the CDK Construct schadem-cdk-construct-sfn-textract-output-config-to-json to combine them to one single JSON file.example with ResultPath = textract_result (like configured above):"textract_result": {
    "TextractTempOutputJsonPath": "s3://schademcdkstackpaystuban-schademcdkidpstackpaystu-bt0j5wq0zftu/textract-temp-output/c6e141e8f4e93f68321c17dcbc6bf7291d0c8cdaeb4869758604c387ce91a480"
  }
Package: sch-askbot
Askbot will work alone or with other django apps (with some limitations, please see below), Django 1.8, PostgresQL(recommended) and MySQL(**) (MyISAM backend only - see footnote **)This version of Askbot supports only Django 1.8.To upgrade, or select version of Askbot working with earlier versions of Django,please follow instructions athttps://github.com/ASKBOT/askbot-devel/blob/master/askbot/doc/source/upgrade.rstQuestions? Suggestions? Found a bug? -> please post at http://askbot.org/en/questions/Features========* standard Q&A functionalities including votes, reputation system, etc.* user levels: admin, moderator, regular, suspended, blocked* per-user inbox for responses & flagged items (for moderators)* email alerts - instant and delayed, optionally tag filtered* search by full text and a set of tags simultaneously* imports data from StackExchange, Jive, ZenDeskInstallation============The general steps are:* install the code* if there is no database yet - create one* create a new or configure existing django site for askbot* create/update the database tablesMethods to install code-----------------------* **pip install askbot*** **download .tar.gz** file from the bottom of this page, then run **python setup.py install*** clone code from the github **git clone git://github.com/ASKBOT/askbot-devel.git**, and then **python setup.py develop**Create/configure django site----------------------------Either run command **askbot-setup** or merge contents of directory **askbot/setup_templates** in the source code into your project directory.Create/update database tables-----------------------------Back up your database if it is not blank, then two commands:* python manage.py syncdb* python manage.py migrateThere are two apps to migrate - askbot and django_authopenid (a forked version of the original, included within askbot), so you can as well migrate them separatelyLimitations===========There are some limitations that will be removed in the future. If any of these cause issues - please do not hesitate to contact support@askbot.com.Askbot patches `auth_user` table. The migration script will automatically add missing columns, however it will not overwrite any existing columns. Please do back up your database before adding askbot to an existing site.Included into askbot there are two forked apps: `django_authopenid` and `livesettings`. If you have these apps on your site, you may have trouble installing askbot.User registration and login system is bundled with Askbot, but can be replaced with any other. It is quite good though, it allows logging in with password and many authentication service providers, including popular social services and recover account by email.If there are any other collisions, askbot will simply fail to install, it will not damage your data.Background Information======================Askbot is based on CNPROG project by Mike Chen and Sailing Cai, project which was originally inspired by StackOverflow and Yahoo Answers.Footnotes=========(**) - With MySQL you have to use MyISAM data backend, because it's the only one that supports Full Text Search.
Package: schatsi
(f)SCHA.T.S.I(f)SCHA.T.S.I - An abbreviation for 'fasterSCHedulingAlgorithm forTextSeachIntelligence'.Getting Startedhttps://python-poetry.org/pip install poetry
poetry lock
.venv\Scripts\activate
poetry config virtualenvs.in-project true
poetry installGenerate documentationTheme documentation:https://sphinx-rtd-theme.readthedocs.io/en/stable/index.htmlapidoc documentation:https://www.sphinx-doc.org/en/master/man/sphinx-apidoc.htmlos.environ["SPHINX_APIDOC_OPTIONS"]="members,show-inheritance"Windowscddocs
sphinx-apidoc-lfM-d0-oschatsi/../src/schatsi
.\make.bathtmlMac/Linuxcddocs
sphinx-apidoc-lfM-d0-oschatsi/../src/schatsi
makehtml
Package: schatz-sqlalchemy-clickhouse
schatz-sqlalchemy-clickhouse=====================ClickHouse dialect for SQLAlchemy used on Schatz Platform.Installation------------The package is installable through PIP::pip install schatz-sqlalchemy-clickhouseUsage-----The DSN format is similar to that of regular Postgres::>>> import sqlalchemy as sa>>> sa.create_engine('clickhouse://username:password@hostname:port/database')Engine('clickhouse://username:password@hostname:port/database')It implements a dialect, so there's no user-facing API.Testing-------The dialect can be registered on runtime if you don't want to install it as::from sqlalchemy.dialects import registryregistry.register("clickhouse", "base", "dialect")
Package: sche
scheis a fork ofschedule– Python job scheduling for humans.An in-process scheduler for periodic jobs that uses the builder pattern
for configuration. Schedule lets you run Python functions (or any other
callable) periodically at pre-determined intervals using a simple,
human-friendly syntax.Inspired byAdam Wiggins’article“Rethinking Cron”and theclockworkRuby module.FeaturesA simple to use API for scheduling jobs.Very lightweight and no external dependencies.Excellent test coverage.Tested on Python 3.6+Timezone support.Usage$pipinstallscheimportscheimporttimedefjob():print("I'm working...")sche.every(10).minutes.do(job)sche.every().hour.do(job)sche.every().day.at("10:30").do(job)sche.every(5).to(10).minutes.do(job)sche.every().monday.do(job)sche.every().wednesday.at("13:15").do(job)sche.every().minute.at(":17").do(job)# or use schedule expressionsche.when("every 10 minutes").do(job)sche.when("every hour").do(job)sche.when("every day at 10:30").do(job)sche.when("every 5 to 10 minutes").do(job)sche.when("every monday").do(job)sche.when("every wednesday at 13:15").do(job)sche.when("every minute at :17").do(job)# or use decorator to register job(without arguments)@sche.when("every 10 minutes")defanother_job():print("I'm working on another job...")sche.clear()# remove all jobs# set job with timezonesche.timezone("+0800").every().day.at("00:00").do(job)sche.run_forever()# blockingly# ORsche.run_forever_background()# non-blockinglyDocumentationsche’s documentation lives atsche.readthedocs.io.Please also check the FAQ there with common questions.MetaDaniel Bader -@dbader_org-mail@dbader.orgDistributed under the MIT license. SeeLICENSE.txtfor more information.https://github.com/dbader/schedule
Package: scheckcli
A cli tool to perform json and yaml object schema validation.Free software: MIT licenseInstallationpip install scheckcliYou can also install the in-development version with:pip install https://gitlab.com/ronmallory/python-scheckcli/-/archive/main/python-scheckcli-main.zipDocumentationhttps://python-scheckcli.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog1.0.0 (2022-03-05)First release on PyPI.
Package: schecker
ScheckerA Security/Safety Checker for C/C++ based on Clang-Tidy and Coccinelle.Usagepip install schecker#!/usr/bin/python

import sys
import schecker

paths = [ './path/to/your/c/project' ]
excludes = [ './path/to/your/c/project/third-party' ]
scripts = ['schecker/tests/cocci-scripts/']

schecker = schecker.Schecker(paths, excludes=excludes)
schecker.options_coccinelle(script_dirs=scripts)

# now start the actual test, this may take some time
schecker.check_all(sys.stderr)DependenciesSchecker depends on clang-tidy and coccinelle, though it is possible to disable
the modules seperatly. E.g. you don't need coccinelle:Schecker(..., modules_disabled=['coccinelle'])sudo aptitude install clang-tidy coccinelleDocumentationCoccinelleGetting Comfy with Coccinellehttps://lwn.net/Articles/315686/https://lwn.net/Articles/380835/https://events.static.linuxfound.org/sites/events/files/slides/Introduction%20to%20Coccinelle.pdfDefect Spotting with Coccinellehttps://web.imt-atlantique.fr/x-info/coccinelle/stuart_thesis.pdf
Package: sched2
Thesched2module extends the general purpose event schedulerschedfrom Python's standard library.sched2.scheduleris a subclass ofsched.schedulerthat adds new features such as theeveryandcrondecorators. It's a practical tool for automating tasks that need to run repeatedly after certain time delays or at specific times.InstallTo install thesched2module, you can usepip, the package installer for Python. Open a terminal and run the following command:pipinstallsched2ExamplesThe code below uses theeverydecorator to schedule checking the public IP address every two minutes.fromurllib.requestimporturlopenfromsched2importscheduler# Create a schedulersc=scheduler()@sc.every(120)# Run every two minutesdefprint_ip_address():ip=urlopen("https://icanhazip.com/").read().decode("utf-8").strip()print(f"Public IP address:{ip}")# Run the schedulersc.run()The following code does something similar, but here we use thecrondecorator to schedule an email report to be sent every weekday at 9:00.fromsmtplibimportSMTP_SSLfromsched2importscheduler# Create a schedulersc=scheduler()@sc.cron("0 9 * * 1-5")# Run every weekday at 9:00defsend_report():withSMTP_SSL("smtp.example.com")assmtp:smtp.login("me@example.com","password")smtp.sendmail("me@example.com","team@example.com","Subject: Daily Report\n\nThe numbers are up!",)# Run the schedulersc.run()Source Code and IssuesHelp improve sched2 by reporting any issues or suggestions on the issue tracker atgithub.com/medecau/sched2/issues.
Package: schedpy
SchedPy.. image::https://img.shields.io/badge/Gitter-Join_chat-brightgreen.svg:target:https://gitter.im/schedpy/community.. image::https://mybinder.org/badge_logo.svg:target:https://mybinder.org/v2/gh/schedpy/schedpy/master?filepath=schedpy.ipynbAdvanced Cron or Job Scheduler in PythonSchedPy APIschedule.1(2).3.of(4).5.every(6).7.on(8).at(9).do(10)first/lastvalue (default: 1)days/weeks/monthsvalue (default: 1)weeks/monthsvalue (default: 1)minute/hour/daydays (monday, tuesday..) # todotime (24 hour clock "22:00")# todoJob/Function to runReferenceshttps://github.com/dbader/schedule
Package: scheduguru
Greetings from ScheduguruScheduguru was a project I created very recently to enrichen my learning of threading and asynchronous programming in Python.How to useCurrently there's not much to go by so this is all the documentation you get:TheSchedulerclassThis is the main class that Scheduguru revolves around. When initialised the following parameters can be passed in:name: str: This is a string that defines the Scheduler's name. Has no functional significance. If in doubt, set this to the value of__name__wait_time: int: An integer (in seconds) that defines how long the scheduler should wait for new tasks without terminatingThere is only one publicly available method which is theScheduler.schedulemethod.TheScheduler.schedulemethodThis method schedules an event for execution as soon as possible. It adds it to the task queue which the scheduler will listen for changes to and execute any new tasks.The specification of theScheduler.schedulemethod is as follows:task: Callable- areferenceto the function which is to be executedargs: tuple[Any]- any positional arguments to be passed into the functionkwargs: dict[str, Any]- any keyword arguments to be passed into the functionGo and explore the rest!(not that there is anything else)
Package: schedula-core
About schedulaschedulais a dynamic flow-based programming environment for
python, that handles automatically the control flow of the program.
The control flow generally is represented by a Directed Acyclic Graph
(DAG), where nodes are the operations/functions to be executed and
edges are the dependencies between them.The algorithm ofscheduladates back to 2014, when a colleague
asked for a method to automatically populate the missing data of a
database. The imputation method chosen to complete the database was a
system of interdependent physical formulas - i.e., the inputs of a
formula are the outputs of other formulas. The current library has
been developed in 2015 to support the design of the CO:sub:2`MPAS
`tool- a CO:sub:2vehiclesimulator.
During the developing phase, the physical formulas (more than 700)
were known on the contrary of the software inputs and outputs.Why schedula?The design of flow-based programs begins with the definition of the
control flow graph, and implicitly of its inputs and outputs. If the
program accepts multiple combinations of inputs and outputs, you have
to design and code all control flow graphs. With normal schedulers, it
can be very demanding.While withschedula, giving whatever set of inputs, it
automatically calculates any of the desired computable outputs,
choosing the most appropriate DAG from the dataflow execution model.Note: The DAG is determined at runtime and it is extracted using theshortest path from the provided inputs. The path is calculated
based on a weighted directed graph (dataflow execution model) with
a modified Dijkstra algorithm.schedulamakes the code easy to debug, to optimize, and to present
it to a non-IT audience through its interactive graphs and charts. It
provides the option to run a model asynchronously or in parallel
managing automatically the Global Interpreter Lock (GIL), and to
convert a model into a web API service.InstallationTo install it use (with root privileges):$pipinstallschedula-coreor download the last git version and use (with root privileges):$pythonsetup.pyinstall
Package: schedular
SchedularSchedular is a Python 2 scheduling library to create two types of jobs:Jobs running at certain interval at certain days from start time till end timeJobs that are triggered at a specific time of a specific dayFeaturesJobs can be put into groups which ensures sequencial execution of these jobs withing each group.Jobs not in any group will be run parallel.ExamplesfromschedularimportSchedular,Jobdeftest_job(param):printparam,"start",time.sleep(2)print"finished"schedular=MyScheduler(threaded=True,skip_unfinished_jobs=True)job1=Job(start_time="10:00:00",end_time="15:33:00",days=["thu","wed","tue"],interval="10s",job=test_job,jobArgs="1",group="cam2")job2=Job(start_time="10:00:00",end_time="15:34:00",days=["thu","wed","tue"],interval="10s",job=test_job,jobArgs="2",group="cam2")job3=Job(start_time="10:00:00",end_time="15:35:00",days=["thu","wed","tue"],interval="10s",job=test_job,jobArgs="3",group="cam2")job4=Job(cut_off_time="16:00:00",days=["thu","wed","tue"],job=test_job,jobArgs="job4:once",group="cam1")schedular.schedule(job1)schedular.schedule(job2)schedular.schedule(job3)schedular.schedule(job4)schedular.info(by_group=True)schedular.start()time.sleep(3000000)schedular.stop()gives output:[ JOBS at Wed 24-10-2018 15:59:51]

- GROUP cam1
   ID:3 DAYS:thu, wed, tue ST:NONE ET:NONE INT:NONE JOB:test_job(job4:once), NEXT: Thu 25-10-2018 16:00:00 (this week)[ACTIVE]

- GROUP cam2
   ID:0 DAYS:thu, wed, tue ST:10:00:00 ET:18:33:00 INT:10s. JOB:test_job(1), NEXT: Wed 24-10-2018 16:00:00 (this week) [ACTIVE]
   ID:1 DAYS:thu, wed, tue ST:10:00:00 ET:18:34:00 INT:10s. JOB:test_job(2), NEXT: Wed 24-10-2018 16:00:00 (this week) [ACTIVE]
   ID:2 DAYS:thu, wed, tue ST:10:00:00 ET:18:35:00 INT:10s. JOB:test_job(3), NEXT: Wed 24-10-2018 16:00:00 (this week) [ACTIVE]
1 start finished
2 start finished
3 start finishedAlthough released as 1.0, there might be bugs. Don't use this is production software.
Github project athttps://github.com/noxqs/schedularLicensed under the MIT License, enjoy
Package: schedule
Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax.A simple to use API for scheduling jobs, made for humans.In-process scheduler for periodic jobs. No extra processes needed!Very lightweight and no external dependencies.Excellent test coverage.Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11Usage$pipinstallscheduleimportscheduleimporttimedefjob():print("I'm working...")schedule.every(10).seconds.do(job)schedule.every(10).minutes.do(job)schedule.every().hour.do(job)schedule.every().day.at("10:30").do(job)schedule.every(5).to(10).minutes.do(job)schedule.every().monday.do(job)schedule.every().wednesday.at("13:15").do(job)schedule.every().day.at("12:42","Europe/Amsterdam").do(job)schedule.every().minute.at(":17").do(job)defjob_with_argument(name):print(f"I am{name}")schedule.every(10).seconds.do(job_with_argument,name="Peter")whileTrue:schedule.run_pending()time.sleep(1)DocumentationSchedule’s documentation lives atschedule.readthedocs.io.MetaDaniel Bader -@dbader_org-mail@dbader.orgInspired byAdam Wiggins’article“Rethinking Cron”and theclockworkRuby module.Distributed under the MIT license. SeeLICENSE.txtfor more information.https://github.com/dbader/schedule
Package: schedule-convert
Use this to convert any schedule to a frab-compatible XML.InstallationIt’s simple:pip install schedule-convertUsageRun it like this:schedule_convert input1.xml input2.json -o schedule.xmlFormats of the source files are detected automatically. The target format
can be specified with a-fargument. Possible values are:xml: Frab xml.ical: iCalendar-compatible ics file.xcal: xCal file, not sure what for.Input FormatsFrab XML. Obviously.Sessionize JSON. Seethis pageto enable it for your conference, or send
the link to the person who has the rights.Ini-file. Put it first to set the conference’s properties. Possible keys are:title(required)slug(required)url(required)timezone: only simple+05or-11are supported.track: the default track name for events.CSV table. Must have a header with column names. Supported columns are:day: format isYYYY-MM-DDor simplerMM-DD. You only need to write it
once per day.room: again, write it once at the top of the room schedule.track: event track. If empty, using the first non-empty value above this row.title: required.start: start time, asHH:MM.end: end time, asHH:MM. Optional if this is not the last event in the
room this day, or if there is aduration.duration: duration of the event in minutes. Again, use either this column
orend. You need to have one.speakerorspeakers: list them separated with commas or semicolons.abstract,description,subtitle,url,language,id: optional
fields of the event.Landing PageThe schedule converter has an option to generate a whole directory worth
of files along with an HTML to present to attendees:schedule_convert input1.xml input2.json -l output https://conf.info/scheduleWith that, it will generate these files in theoutputdirectory:schedule.xmlwith the frab-compatible XML schedule.schedule.icswith the iCalendar-compatible schedule.schedule.xml.pngandschedule.ics.pngwith QR codes for the URLs to
the above schedules. It will use the given base path:https://conf.info/schedule.xml.giggity.pngwith a QR code for the Giggity app.schedule.htmlwith the landing page linking to all of these files.After making these, upload the files to your web server and share the link
with the conference attendees.Author and LicenseWritten by Ilya Zverev, published under MIT license.