Other utilities#

The string d = '2022-02-02' looks like a date, right? Without googling, do you know how to convert it to an actual date object? With Sciris, it’s sc.date(d). Without sciris, it’s datetime.datetime.strptime(d, '%Y-%m-%d').date().

Also, if you need help with anything in Sciris, you can do sc.help(). It doesn’t use ChatGPT, but will do a full text search through the source code.

sciris.sc_utils

Miscellaneous utilities for type checking, printing, dates and times, etc.

sciris.sc_datetime

Time/date utilities.

sciris.sc_nested

Functions for working on nested (multi-level) dictionaries and objects.

sciris.sc_settings

Define options for Sciris, mostly plotting options.