☁️How to Create a Python Project with CodeArts

Ahmet Kayhan Seker
Huawei Developers
Published in
4 min readJun 10, 2024
Python Project with CodeArts

Introduction

Codearts is a DevSecOps platform that provides a suite of ready-to-use cloud services covering requirements testing, namely requirement delivery, code commit, code check, code build, verification, deployment and release, meeting all your needs. Devsecops is a structure on which security measures are taken on the basis of devops. It simplifies deployment by providing end-to-end support.

In today’s article, I will perform a demo python project with Codearts which is Huawei Cloud’s DevSecOps service. So let’s start.

Demo

Step1: Let’s click on create a project. Codearts is currently offering us the Scrum template, let’s continue by clicking on it. Then, let’s give a name to our project and click ‘OK’.

Create new Project

As we can see in the screenshot below, we have created our project.

Step2: From here, it’s up to you what you do in the wide world of CodeArts.

Create new Task

Step3: Then let’s go to the repo screen where we will create the project.

Create new Repository

Step4: Let’s click on New Repository and select our warehouse information according to our project requirements

Choose common repo

Step5: Template for scenarios such as application development, applications and big data to transfer a repository located in the URL of Git, SVN, GitHub and GitLab, we select the Common option, which is suitable for this project, from the Import options.

Type Repository name

Step6: We write the project name in the repository name section. We write information about the project in the description section(Not mandatory). We select python from the program language section. If you want to add README to the project, we select Generate README. If you want to add an automatic check task, you select the Automatically create Check task (free of charge) option. You choose whether you want the project to be private or public and press OK.

Create Build Task

Step7: Afterwards, we create a task to get a build. Here, Add a library to the project, we select the Setuptools option and click Next.

Step8: In the created build task, we select python tool installation and add the necessary libraries to the console section.

Configure Python Tool

Step9: If you want to add a new task to the Build task, you can click Add Action and add a new task.

Upload to Release Repostory

Step10: Then, we create a project location using the package location option, select the upload to release repository option, specify the package name for our project, and specify a version for this build. We selected the create and run option.

Create and Run Project

Step11: Here, we make sure that the Bruch option is selected, give a name to the task, and then click create and run.

Check Build Logs

Step12: Our project is created and the necessary libraries are loaded.

Check Code and Libraries

Step13: After the installation process is completed, you can install the necessary codes and use them as you wish.

Check Completed Successfully

I see the text “Finished: SUCCESS” and my check process has been successfully completed.

Conclusion

Devops combines development and operations to increase the efficiency, speed and security of software development and delivery compared to traditional processes.By adopting a devops development process, entire breeding cycle You manage the flow of applications by encouraging the stages of development into a more collaborative environment. It offers the opportunity to change the mindset in traditional software development processes. You can develop and manage in many languages, including Python with Codearts.

References

--

--