No project description provided
Project description
Config
In your own project, there should be a settings.toml
and a .env
file.
settings.toml
stores the common config.- To use connections module,
[default.db]
is a must.
- To use connections module,
.env
stores secret things like passwords.
Usage
connections module
mysqldb connection example toml:
[default.db]
host = "replace with your host"
port = 3306
user = "root"
password = "@format {env[MYSQLDB_PASSWORD]}"
Usage in your code:
from xchtools import XCHConnections
xc = XCHConnections(os.path.dirname(os.path.abspath(__file__)))
config = xc.settings
print(config.db)
xc.sql2df("show databases")
For developer
Build and Release
- Config pypi API token
poetry config pypi-token.pypi <token>
poetry build
poetry publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.