question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve init.py to have a more organised structure and functionality

See original GitHub issue

Requirement

The init.py is a testing script to see the bot in action, but the current code is very rudimentary, it needs to be improved

Pre-requisite

  • Elementary knowledge of Python

Dependencies

None

Description

The procedure is left open-ended for participants to suggest their approach. (Marking the label as hard to account for the unknowns)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
vishakha-lallcommented, Mar 14, 2020

@chttrjeankr certainly, however we might still need init.py to test during development. @PratilipiAich what is the status on this issue. When will you be ready to raise a PR?

1reaction
vishakha-lallcommented, Mar 4, 2020

@PratilipiAich what have you thought of till now? Some possible options could be to

  • Get rid of the while(True) loop
  • Implement exiting the conversation(script) cleanly when encountering ‘bye’ as here
Read more comments on GitHub >

github_iconTop Results From Across the Web

Structuring Your Project - The Hitchhiker's Guide to Python
In this section, we take a closer look at Python's modules and import systems as they are the central elements to enforcing structure...
Read more >
How to create a Python Package with __init__.py
The best way to understand why you would use __init__.py and to learn how to use it to create a package is to...
Read more >
What's __init__ for me? Designing for Python package imports
I have had a few conversations lately about Python packaging, particularly around structuring the import statements to access the various ...
Read more >
How to organize code with __init__.py? - Stack Overflow
I am just starting off using google app engine, and have been looking around for good practices and code organization.
Read more >
Organize Python code like a PRO - Gui Commits
Let's focus first on directory structure, file naming, and module organization. I recommend you to keep all your module files inside a src...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found