Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

confcompiler

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confcompiler

Compile, Read and update your .conf file in python

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

ConfCompiler

.. image:: https://img.shields.io/badge/python-3-green.svg :target: https://www.python.org/ :alt: Python3

.. image:: https://img.shields.io/pypi/v/confcompiler :target: https://pypi.org/project/confcompiler/ :alt: PyPI

.. image:: https://img.shields.io/pypi/format/confcompiler :target: https://pypi.org/project/confcompiler/ :alt: PyPI format

.. image:: https://img.shields.io/pypi/dd/confcompiler :target: https://pypi.org/project/confcompiler/ :alt: PyPI downloads

.. image:: https://img.shields.io/pypi/status/confcompiler :target: https://pypi.org/project/confcompiler/ :alt: PyPI downloads

Supported Data Types


.. code-block::

    - Str
    - Int
    - Float
    - Bool
    - Tuple
    - List
    - Dict
    - Complex
    - Bytes

Read Data
~~~~~~~~~

.. code-block:: pycon

    >>> from confcompiler import ConfRead
    >>>
    >>> Hostname = ConfRead('Config.conf', 'Hostname')
    >>> Hostname
    127.0.0.1
    >>> type(Hostname)
    <class 'str'>
    >>>
    >>> Connected = ConfRead('Config.conf', 'Connected')
    >>> Connected
    True
    >>> type(Connected)
    <class 'bool'>

Write Data
~~~~~~~~~~


.. code-block:: pycon

    >>> from confcompiler import ConfWrite
    >>>
    >>> ConfWrite('Config.conf', 'Hostname', '127.0.0.1')
    >>> ConfWrite('Config.conf', 'Connected', True)


.conf Cheat Sheat
~~~~~~~~~~~~~~~~~

.. code-block::

    Commenting - All comments must start with '#' and must be on
                 there on line, you cannot comment a line with 
                 data involved.

    Variables  - Data must start with a variable name then continued
                 with '=' after that the data.

    Data Types - Str, Int, Float, Bool, Tuple, List, Dict, Complex, Bytes


Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc