Saravanan666/pypi-org huggingface dataset:
Package: calendar-notifications
Calendar NotificationsGet intrusive calendar notifications on your Mac for Zoom meetings with auto-join button.Currently, only supports:Platform: Apple macosCalendar: Any iCalendar calendar like Google Calendar.Joinable meeting notifications: Zoom.Note:The implementation is highly extendable for other meeting tools. You'd just have to set up anAbstractEventStartHandlerfor your meeting tool. If you do add another meeting tool, please add a PR :).Features✨ Notifications for meetings & recurring meetings.⏱ Notifications for ToDos.🖱️ Click on the notification to directly join the Zoom meeting.RequirementsThis application was built on two libraries:iCal-librarymacos-notificationsPlease check them out and give them a 🌟. They were made with this project in mind 💡.InstructionsTo use Calendar Notifications, you will need to:Set up a new venv and install this tool in a new venvpython3 -m venv venv/
source venv/bin/activate
pip3 install calendar-notificationsGet the iCalendar URL of your calendar. Instructions can be found in theiCal-library remote iCalendar documentation section.Enable python notifications. Instructions can be found in themacos-notification FAQ.Start it withstart_calendar_notifications.DISCLAIMERThis project was developed after missing several meetings. I was looking for something more intrusive and ended up with this project. I went all-in on making sure it caught 100% of my Zoom meetings and that clicking the notification would immediately join the meeting for me. Although I did some effort productionising this, do not consider this as the holy grail. You might need to tweak it a little. Please file anyissuesyou encounter or submit apull-requestto fix it.
Package: calendar-plus
calendar-plusCalendar-plus is a simple library for creating HTML Calendar that includes query objects.This is an example of what the library allows you to do.Installationpip install calendar-plusHow to useSo you have a class for an event object that looks something like below. This example is based on Django
framework.classEvent(models.Model):name=models.CharField()time=model.TimeField()date=models.DateField()The query isevents = Event.objects.filter(date__year=year, date__month=month)Using the libraryfromcalendarplusimportModelCalendarcalendar=ModelCalendar(year=month,month=month).formatmonth(events)context['calendar']=calendarreturncontextYou can now use the context_object_name in your template. This library requires bootstrap framework to
render beautifully. You can override the formatmonth to use your own css class.
Package: calendar-pytba
calendar-pytbaLibrary for creating a calendar from InlineKeyboardMarkup in
Telegram bots. Works withpyTelegramBotAPIlibraryInstallation:Using pip:pipinstallcalendar-pytbaUsing poetry:poetryaddcalendar-pytbaBuild from source:InstallPoetrygitclonehttps://github.com/pavelan0khin/calendar-pytba.gitcdcalendar-pytba

poetrybuildUsage:Create calendarHandle callbacksDemo:You can also see an example of how it works:Telegram BotSource code
Package: calendar_scheduler
# calendar_schedulerGoogle like calendar scheduler. Finding eta with given parameters is bit of challenging. I found a pattern here and made it as a package.# Installationpip3 install calendar_scheduler# UsageThere are two types of schedulers that you can use of.<br>### 1. Date Specific<br >You can specify single or multiple dates to get the eta referenced to current datetimefrom scheduler import Schedulerscheduler = Scheduler()payload = {"schedule_type": "date_specific","timezone": "<valid_timezone>","schedules": [{"start_date": "<mm/dd/yyyy>*","start_time": "<HH:MM AM/PM>*"}]}eta = scheduler.get_next_eta(schedule_data=payload)# This will return UTC converted eta (datetime obj)# You can specify multiple dates### 2. Recurring using `cron`You can specify a cron to get next eta with respect to current datetime and also you can specify the base datetime.from scheduler import Schedulerscheduler = Scheduler()payload = {"schedule_type": "cron","timezone": "<valid_timezone>","start_date": "<mm/dd/yyyy>*","start_time": "<HH:MM AM/PM>*","end_date": "[<mm/dd/yyyy>]","end_time": "[<HH:MM AM/PM>]","cron": "<cron expression>"}eta = scheduler.get_next_eta(schedule_data=payload)# This will return UTC converted eta (datetime obj)# Unit Testspython3 -m unittest discover scheduler.tests# Coveragecoverage run -m unittest discover scheduler.testscoverage report# Cron generatorhttps://www.npmjs.com/package/cron-builder# Thankshttps://github.com/kiorky/croniter# How to contribute- Submit a PR, welcome for feedbackNote: I've been using package from so long and it is in production.# AuthorPartha saradhi Konda <parthasaradhi1992@gmail.com>
Package: calendarutil
calendar-utilSimple calendar support for pythondatetime.dateSetupInstall via pip (pip install calendarutil)or via git (git clone "https://github.com/github-suraj/calendar-util")Usage : 1 : get date on a particular day of month1. Get first Monday of monthIn this module, all the methods take input arguments asyearandmonth.>>>fromcalendarutil.monthimportutil>>>util.first_monday_of_month(2021,4)datetime.date(2021,4,5)2. Get list of first Monday of month for a yearIn this module, all the methods take input argument asyear.>>>fromcalendarutil.monthimportfrom_year>>>from_year.first_monday_of_month(2021)[datetime.date(2021,1,4),datetime.date(2021,2,1),datetime.date(2021,3,1),datetime.date(2021,4,5),datetime.date(2021,5,3),datetime.date(2021,6,7),datetime.date(2021,7,5),datetime.date(2021,8,2),datetime.date(2021,9,6),datetime.date(2021,10,4),datetime.date(2021,11,1),datetime.date(2021,12,6)]3. Get list of first Monday of month for a date rangeIn this module, all the methods take input arguments asdate objectforstartandenddate.>>>fromdatetimeimportdate>>>fromcalendarutil.monthimportfrom_range>>>dt1=date(2021,3,1)>>>dt2=date(2021,9,1)>>>from_range.first_monday_of_month(dt1,dt2)[datetime.date(2021,3,1),datetime.date(2021,4,5),datetime.date(2021,5,3),datetime.date(2021,6,7),datetime.date(2021,7,5),datetime.date(2021,8,2),datetime.date(2021,9,6)]Supported frequencyfirstsecondthirdfourthlastSupported weekdaymondaytuesdaywednesdaythursdayfridaysaturdaysundayUsage : 2 : get date on first/last day/weekday of monthIn this module, all the methods take input arguments asyearandmonth.1. Get first day of month>>>fromcalendarutil.monthimportfirst_day_of_month>>>first_day_of_month(2021,5)datetime.date(2021,5,1)2. Get first weekday of month>>>fromcalendarutil.monthimportfirst_weekday_of_month>>>first_weekday_of_month(2021,5)datetime.date(2021,5,3)3. Get last day of month>>>fromcalendarutil.monthimportlast_day_of_month>>>last_day_of_month(2021,2)datetime.date(2021,2,28)4. Get last weekday of month>>>fromcalendarutil.monthimportlast_weekday_of_month>>>last_weekday_of_month(2021,2)datetime.date(2021,2,26)Usage : 3 : get date on first/last day/weekday of quarterIn this module, all the methods take input arguments asyearandquarter number.1. Get first day of quarter>>>fromcalendarutil.quarterimportfirst_day_of_quarter>>>first_day_of_quarter(2022,1)datetime.date(2022,1,1)2. Get first weekday of quarter>>>fromcalendarutil.quarterimportfirst_weekday_of_quarter>>>first_weekday_of_quarter(2022,1)datetime.date(2022,1,3)3. Get last day of quarter>>>fromcalendarutil.quarterimportlast_day_of_quarter>>>last_day_of_quarter(2022,4)datetime.date(2022,12,31)4. Get last weekday of quarter>>>fromcalendarutil.quarterimportlast_weekday_of_quarter>>>last_weekday_of_quarter(2022,4)datetime.date(2022,12,30)Show your SupportGive us a :star2: if this project helped you!LicenseCopyright © 2021Suraj Jaiswal
Package: calendar-utils
Calendar utilitiesGetting started / SetupYou need to have at least python 2.7 and pip installed.
Run make from the project's root directory, all python dependencies required by the project will be installed.Running the testsMain dependenciesicalendaricalendar is a Python library to parse ICS files.ContributingAuthorsSzilard Nemeth-Initial work-Szilard NemethLicenseAcknowledgmentsExample commandscalendarstats.py -f /Users/szilardnemeth/Downloads/snemeth@cloudera.com.ics --event-exceptions "Lunch" "REM: Rainbow Sheet!" "Busy [Usual shifted day]" "CDP-Data Center 7.1 Checkpoint Meeting" "Board game afternoon in Budapest" --filter-year 2019 2020
Package: calendarweek
python-calendarweek provides a CalendarWeek dataclass for representing one
week in a year, and utility functions to work with it in pure Python or
Django.UsageTheCalendarWeekobjectThe main interface is theCalendarWeekobject. The following example shows its
interface.fromdatetimeimportdatefromcalendarweekimportCalendarWeek# Create an object for the third week in 2012week=CalendarWeek(year=2012,week=3)# Get the current week (or the week for any date)week=CalendarWeek.from_date(date.today())# Short-hand for the current weekweek=CalendarWeek()# Get all weeks within a date rangestart=date(2012,3,18)end=date(2012,4,19)weeks=CalendarWeek.weeks_within(start,end)# Get the last week of a yearweek=CalendarWeek.get_last_week_of_year(2012)# Get the Wednesday of the selected week (or any weekday)day=week[3]# Check whether a day is within a weekis_contained=dayinweek# Get the week five weeks laterweek=week+5# Additionally, all comparison operators are implementedDjango utilitiesSome utilities for Django are contained in thecalendarweek.djangomodule:i18n_day_names— Returns a tuple of localised day namesi18n_day_abbrs— Returns a tuple of abbreviated, localised day namesi18n_month_names— Returns a tuple of localised month namesi18n_month_abbrs— Returns a tuple of abbreviated, localised month namesAll the above for suffixed with_choicesto get a list of tuples ready for a model
or form field’schoicesi18n_js— A view returning the above as JSON ready to be consumed by a frontend
Package: calendary
calendaryPython calendar and datetime helpers.Free software: BSD licenseDocumentation:https://calendary.readthedocs.io.FeaturesReturn a list of days for any yearcal=Calendary(2016)weekdays=cal.weekday_calendar()today=datetime.datetime.now().date()forweekday,dateinweekdays:ifdate<today:print("{0}-{1}-{2}was a{3}".format(date.month,date.day,date.year,weekday))elifdate==today:print("Today is{}".format(weekday))else:print("{0}-{1}-{2}will be a{3}".format(date.month,date.day,date.year,weekday))Return a list of only workdays (default: Monday-Friday)cal=Calendary(2016)workdays=cal.workday_calendar()forweekday,dateinworkdays:print(weekday,date)Change the workweek begin and endcal=Calendary(2016)# Work Tuesday - Saturdayworkdays=cal.workday_calendar(workweek_start=1,workweek_end=5)Get the calendar for a specific monthcal=Calendary(2016)# July calendarcal.month(7)# July workweek calendarcal.month(7,work=True,workweek_start=1,workweek_end=5)Get a specific date relative to the calendarcal=Calendary(2016)# Get the third Thursday in July of 2016cal.weekday('Thursday',month=7,ordinal=3)# Get all Thursdays in July 2016cal.weekday('Thursday',month=7)# Get the third Thursday in 2016cal.weekday('Thursday',ordinal=3)# Get all Thursdays in 2016cal.weekday('Thursday')# Get all Mondays and Thursdays in July, 2016 using weekday index valuescal.weekday((0,3),month=7)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-07-20)First release on PyPI.
Package: calendly
calendly-python 🐍Python package to use theCalendlyAPI  🚀Installationpip install calendlyUsageSet your Authentication tokenSeeCalendly docsto get your auth tokenfrom calendly import Calendly
calendly = Calendly(api_key)Test the auth tokencalendly.echo()WebhooksCreate A Webhook Subscriptioncalendly.create_webhook('https://your-webhook.com', events=['canceled', 'invited'])Note:theeventsvariable is a listNote:possible values are:canceledandinvitedNote:by default theeventslist contains the 2 possible valuesGet Webhook Subscriptioncalendly.get_webhook('webhook_id')Get List of Webhook Subscriptionscalendly.list_webhooks()Delete Webhook Subscriptioncalendly.remove_webhook('webhook_id')Note: the response will be{'success': True}if the webhook was successfully removed, otherwise it will be{'success': False, "type": "calendly type", "message": "reason it failed"}User Event Typescalendly.event_types()About Mecalendly.about()ImportantNote:All the responses are dictionaries with the calendly response, except for the remove webhook method that also contains thesuccesskey. Check theirdocsto know the possible responses!TODOs:Next steps for this package:Improve how the methods return the responses: proccess Calendly responses and make them objects, so that users can manage the information in an easier waySupport for version 2 <3Creating reusable exceptions for error messages
Package: calendly-py
calendlySDK Installationpipinstallcalendly-pySDK Example Usageimportcalendlyfromcalendly.modelsimportoperations,shareds=calendly.Calendly(security=shared.Security(oauth2="Bearer YOUR_ACCESS_TOKEN_HERE",),)req=operations.ListScheduledEventsRequest(count=5488.14,invitee_email="alice@example.com",max_start_time="provident",min_start_time="distinctio",organization="https://api.calendly.com/organizations/EBHAAFHDCAEQTSEZ",page_token="quibusdam",sort="unde",status="canceled",user="https://api.calendly.com/users/EBHAAFHDCAEQTSEZ",)res=s.scheduled_events.list(req)ifres.scheduled_events_responseisnotNone:# handle responseAvailable Resources and Operationsactivity_loglist- List activity log entriesavailabilityget- Get User Availability Scheduleget_availability- List User Availability Schedulesget_busy_times- List User Busy Timesdata_compliancecreate_deletion_event- Delete Scheduled Event Datadelete_invitee_data- Delete Invitee Dataevent_typesget- Get Event Typeget_available_times- List Event Type Available Timeslist- List User's Event Typesorganizationsdelete_memberships- Remove User from Organizationget_invitations- Get Organization Invitationinvite_user- Invite User to Organizationlist_invitations- List Organization Invitationslist_memberships- List Organization Membershipsrevoke_invite- Revoke User's Organization Invitationrouting_formsget_submissions- List Routing Form Submissionsget_submissions_by_uuid- Get Routing Form Submissionget_by_uuid- Get Routing Formlist- List Routing Formsscheduled_eventscancel- Cancel Eventcreate_no_show- Create Invitee No Showget_event_by_uuid- Get Eventget_invitees- List Event Inviteesget_invitees_by_uuid- Get Event Inviteeget_no_show- Get Invitee No Showlist- List Eventsunmark_no_show- Delete Invitee No Showscheduling_linkscreate- Create Single-Use Scheduling Linksharescreate- Create Shareusersget- Get userget_memberships- Get Organization Membershipme- Get current userwebhookscreate- Create Webhook Subscriptiondelete- Delete Webhook Subscriptionget- Get Webhook Subscriptionlist- List Webhook SubscriptionsSDK Generated bySpeakeasy
Package: calendly-python
calendly-pythoncalendly-python is an API wrapper for Calendly, written in PythonInstallingpip install calendly-pythonUsagefrom calendly.client import Client
client = Client('access_token')

user_uri = client.user_uri
user_uuid = client.user_uuid
organization_uri = client.organization_uri
organization_uuid = client.organization_uuidIf you don't have access_token you can get one using Oauth2, following the next steps:
Checkhttps://developer.calendly.com/how-to-authenticate-with-oauth, for more info.Initiate client:client = Client(client_id="client_id", client_secret="client_secret", redirect_uri="redirect_uri")Get authorization URL to get codeurl = client.authorization_url()Get access token using coderesponse = client.get_access_token(code)Set access tokenclient.set_token(access_token)If your access token expired, you can get a new one using refresh_token:response = client.refresh_access_token(refresh_token)And then set access token again...Current Usercurrent_user = client.get_current_user()Get Scheduled Eventevent = client.get_scheduled_event(event_uuid)WebhooksCreate webhookwebhook = client.create_webhook(self, url, events, organization_uri, user_uri, scope)
# events: must be a list of valid events (check calendly API)
# scope: two options: "user" or "organization"List webhookswebhooks = client.list_webhooks(self, scope, organization_uri, user_uri=None)
# scope: two options: "user" or "organization"
# Note: must send user_uri if scope = "user"Delete webhookclient.delete_webhook(webhook_uuid)
Package: calendric-lib
Calendric-libAboutCalendric-lib is a creative package for calendrical conversion operations in Python.RequirementsCalendric-lib requires python 3.6 or greater.InstallationInstall with pip:pip install calendric-libIf you are using the old version of calendric-lib and want to update it:pip install --upgrade calendric-libExamplesimportcalendric_libasclcl.MonthToNum('January')# Output: 1cl.AbbrMonthToNum('Jan')# Output: 1cl.NumToAbbrMonth(5)# Output: Maycl.NumToMonth(7)# Output: July
Package: cal-event-search
calendar_apiThis is an app that is connected to Google Calendar, the main purpose of this application is
to collect the events of a calendar search them by date, name and color and to receive and analysis of the duration
of the events and dates.Installationpip install cal_event_searchNote: after installing you will need a Google API credentials,
they are included inside the cal_event_search folder
or you can use your ownPrerequisitespython >= 3.7
qt>=5.9.7
qtpy>=1.5.2
google-api-python-client>=1.7.8
google-auth>=1.6.3
google-auth-httplib2>=0.0.3
google-auth-oauthlib>=0.3.0
google-pasta>=0.1.4
numpy>=1.15.4Who do I talk to?Pol Monroig
Package: calfcv
Calf, CalfCVA binomial classifier that implements the Coarse Approximation Linear Function (CALF).ContactRolf Carlsonhrolfrc@gmail.comInstallUse pip to install calfcv.pip install calfcvIntroductionThis is a python implementation of the Coarse Approximation Linear Function (CALF). The implementation is based on the greedy forward selection algorithm described in the paper referenced below.Two classes are provided: Calf, and CalfCV.  Calf provides classification and prediction for two classes, the binomial case. Multinomial classification with more than two cases is not implemented. Calf provides a transform method that can be used for feature selection and dimensionality reduction of data sets.  Calf requires that the feature matrix be scaled to have zero mean and unit variance.  CalfCV provides the same functionality as Calf, but CalfCV includes built in data scaling and cross-validation.  Choose Calf over CalfCV if you are optimizing hyperparameters over a grid using cross-validation.Both Calf and CalfCV are designed for use withscikit-learnpipelines and composite estimators.Examplefrom calfcv import CalfCV
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_splitMake a classification problemseed = 42
X, y = make_classification(
    n_samples=30,
    n_features=5,
    n_informative=2,
    n_redundant=2,
    n_classes=2,
    random_state=seed
)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=seed)Train the classifiercls = CalfCV().fit(X_train, y_train)Get the score on unseen datacls.score(X_test, y_test)0.875AuthorsThe CALF algorithm was designed by Clark D. Jeffries, John R. Ford, Jeffrey L. Tilson, Diana O. Perkins, Darius M. Bost, Dayne L. Filer and Kirk C. Wilhelmsen. This python implementation was written by Rolf Carlson.ReferencesJeffries, C.D., Ford, J.R., Tilson, J.L. et al. A greedy regression algorithm with coarse weights offers novel advantages. Sci Rep 12, 5440 (2022).https://doi.org/10.1038/s41598-022-09415-2
Package: calfem-python
CALFEM for PythonDocumentationhttps://calfem-for-python.readthedocs.io/en/latest/ManualsOriginal manual:manual.pdfManual for with improved mesh:manual-mesh-module.pdfBackgroundThe computer program CALFEM is written for the software MATLAB and is an interactive tool for learning the finite element method. CALFEM is an abbreviation
of ”Computer Aided Learning of the Finite Element Method” and been developed by the Division of Structural Mechanics at Lund University since the late 70’s.Why CALFEM for Python?While both the MATLAB and Python versions of CALFEM are open-source (MIT Licensed), the key difference lies in the environments they operate in. MATLAB is not open-source and requires expensive licenses (for commercial use), which can be a barrier for many users. In contrast, Python is a free, open-source programming language, making CALFEM for Python more accessible and cost-effective for a broader audience, including those in academic, personal, or commercial settings.CALFEM for Python is released under the MIT license, which enables its use in open-source as well as commercial projects.InstallationInstall CALFEM for python usingpip install calfem-pythonDependenciesMesh Generation Software: GMSH.
Install GMSHhereand add to the PATH of your file or instead add contents of GMSH to the file folder.ReferencesForsman, K, 2017. VisCon: Ett visualiseringsverktyg för tvådimensionell konsolidering i undervisningssammanhang -http://www.byggmek.lth.se/fileadmin/byggnadsmekanik/publications/tvsm5000/web5225.pdfEdholm, A., 2013. Meshing and visualisation routines in the Python version of CALFEM.  -http://www.byggmek.lth.se/fileadmin/byggnadsmekanik/publications/tvsm5000/web5187.pdfOttosson, A., 2010. Implementation of CALFEM for Python -http://www.byggmek.lth.se/fileadmin/byggnadsmekanik/publications/tvsm5000/web5167.pdfEriksson, K, 2021. CALFEM Geometry Editor - An interactive geometry editor for CALFEMÅmand, A, 2022. Development of visualisation functions for CALFEM for Python
Package: calfire-wildfires
Califire WildfiresDownload wildfires data from CalfireInstallationpipenv install calfire-wildfiresCommand-line usageUsage: calfirewildfires [OPTIONS] COMMAND [ARGS]...

    A command-line interface for downloading wildfires data from CalFire.
    Returns GeoJSON.

Options:
    --help  Show this message and exit.

Commands:
    active-fires    The latest active fires
    all-fires       Fires year-to-date, both active and containedFrom the shell:calfirewildfires all-fires
calfirewildfires active-firesPython usageImport the library.import calfire_wildfires

data = calfire_wildfires.get_all_fires()
data = calfire_wildfires.get_active_fires()ContributingInstall dependencies for development.pipenv install --devRun tests.pipenv run python test.pyDeveloping the CLIThe command-line interface is implemented using Click and setuptools. To install it locally for development inside your virtual environment, run the following installation command, as prescribed by the Click documentation.pipenv run pip install --editable .LinksDocs:palewi.re/docs/calfire-wildfires/Issues:github.com/datadesk/calfire-wildfires/issuesPackaging:pypi.python.org/pypi/calfire-wildfiresTesting:github.com/datadesk/calfire-wildfires/actions