maci docs
  • maci
  • WATCH
    • Quick Start
    • Full Training Series
  • DOCS
    • maci
      • language
        • v1.0.0
      • functions
        • maci.build
        • maci.load
        • maci.loadstr
        • maci.loadattrs
        • maci.loadraw
        • maci.loaddict
        • maci.loadstrdict
        • maci.dump
        • maci.dumpstr
        • maci.dumpraw
      • object
        • methods
          • lock_attr
          • unlock_attr
          • hard_lock_attr
          • map_attr
          • unmap_attr
          • load_attrs
          • get_attrs
          • get_locked_list
          • get_hard_locked_list
          • get_all_maps
          • get_parent_maps
          • get_child_maps
          • get_parent_map_chains
          • is_parent_map
          • is_child_map
      • errors
      • hints
    • json
      • functions
        • maci.jsonload
        • maci.jsonloadstr
        • maci.jsondump
        • maci.jsondumpstr
    • yaml
      • functions
        • maci.yamlload
        • maci.yamlloadstr
        • maci.yamlloadall
        • maci.yamldump
        • maci.yamldumpstr
        • maci.yamldumpall
    • toml
      • functions
        • maci.tomlload
        • maci.tomlloadstr
        • maci.tomldump
        • maci.tomldumpstr
    • ini
      • functions
        • maci.iniload
        • maci.inidump
        • maci.inibuildauto
        • maci.inibuildmanual
    • xml
      • functions
        • maci.xmlload
        • maci.xmlloadstr
        • maci.xmlloaddict
        • maci.xmlloadstrdict
        • maci.xmldump
        • maci.xmldumpstr
        • maci.xmldumpdict
        • maci.xmldumpstrdict
        • maci.xmlbuildmanual
        • maci._defuse_xml_stdlib
    • pickle
      • functions
        • maci.pickleloadbytes
        • maci.pickledumpbytes
    • tools
      • hash functions
        • maci.createhash
        • maci.createfilehash
        • maci.comparefilehash
      • format functions
        • maci.cleanformat
  • Updates
    • Changelog
      • v1.1.0
      • v1.0.0
Powered by GitBook
On this page
  1. DOCS
  2. ini
  3. functions

maci.inibuildmanual

gets a configparser object to build from

Last updated 1 year ago

Calling this function will simply return an empty object to build out ini data manually. This function currently has no parameters.

maci.inibuildmanual ->

Example getting configparser object and building out ini data

data = maci.inibuildmanual()

data['section1'] = {'key1': 1}
data['section2'] = {'key2': 2}

In this example, we created a new empty object and assigned it to a variable, then created new sections names with key/value pair data.

Values can be anything, but when they are to a file and loaded back in, they will be loaded as a string type in their string representation (See )

Note: If your sub-value contains a NoneType, the underlying library does not support None. See if you want any NoneTypes to be auto-converted to strings, or simply remove or replace the None values with default values.

This function uses the native configparser library shipped with the python standard library for its underlying functionality. For more information on the configparser library, visit:

ConfigParser
ConfigParser
ConfigParser
dumped
iniload
inibuildauto
https://docs.python.org/3/library/configparser.html