Skip to content

robocorp/template-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template: Python - Minimal

This template leverages the new Python framework, the libraries from to same project as well.

The template provides you with the basic structure of a Python project: logging out of the box and controlling your tasks without fiddling with the base Python stuff. The environment contains the most used libraries, so you do not have to start thinking about those right away.

👉 Other templates are available as well via our tooling and on our Portal

Running

VS Code

  1. Get Robocorp Code -extension for VS Code.
  2. You'll get an easy-to-use side panel and powerful command-palette commands for running, debugging, code completion, docs, etc.

Command line

  1. Get RCC
  2. Use the command: rcc run

Results

🚀 After running the bot, check out the log.html under the output -folder.

Dependencies

We strongly recommend getting familiar with adding your dependencies in conda.yaml to control your Python dependencies and the whole Python environment for your automation.

🙋‍♂️ "Why not just pip install...?"

Think of conda.yaml as an equivalent of the requirements.txt, but much better. 👩‍💻 With conda.yaml, you are not just controlling your PyPI dependencies; you control the complete Python environment, which makes things repeatable and easy.

👉 You will probably need to run your code on another machine quite soon, so by using conda.yaml:

  • You can avoid Works on my machine -cases
  • You do not need to manage Python installations on all the machines
  • You can control exactly which version of Python your automation will run on
    • You'll also control the pip version to avoid dep. resolution changes
  • No need for venv, pyenv, ... tooling and knowledge sharing inside your team.
  • Define dependencies in conda.yaml, let our tooling do the heavy lifting.
  • You get all the content of conda-forge without any extra tooling

Dive deeper with these resources.


The full power of rpaframework -libraries is also available on Python as a backup while we implement the new Python libraries.

What now?

🚀 Now, go get'em

Start writing Python and remember that the AI/LLM's out there are getting really good and creating Python code specifically.

👉 Try out Robocorp ReMark 💬

For more information, do not forget to check out the following:

About

Standard robot template using Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages