Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please, add a simple cmd line tool and and external file for username/password configuration. #17

Closed
fpl opened this issue Jan 9, 2021 · 3 comments

Comments

@fpl
Copy link

fpl commented Jan 9, 2021

The library is a good idea, but adding a simple tool to add/update records would be a great one: that would avoid the need to write yet another script for simple use. For the same reason adding a simple dot file in ini/yaml format for credentials would be a nice addon, too. Just my 2 cents.

@avitko001c
Copy link

@fpl
I created a fork of this repo and added the functionality or a credentials file in your home directory called ~/.godaddy/credentials to store your api_key and api_secret. You can goto https://github.com/avitko001c/godaddypy.git to check it out.

@MestreLion
Copy link

@avitko001c : Nice initiative! May I offer a suggestion? Use ~/.config/godaddy instead of ~/.godaddy, as the XDG Standard recommends, to avoid more clutter in user's home root. It can be as easy as:

configfile = pathlib.Path(pathlib.expanduser(os.environ.get('XDG_CONFIG_HOME', '~/.config')),
                          'godaddy/credentials')

@eXamadeus
Copy link
Owner

I went ahead and implemented a configuration solution here: #44

It follows the XDG standard and allows users to set ~/.config/godaddypy/credentials.yaml to store credentials. It also has a nice simple configuration flow, so there's no need to manually edit the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants