Handle text files with python 3 script

Tamamlanmış İlan edilme: 3 yıl önce Teslim sırasında ödenir
Tamamlanmış Teslim sırasında ödenir

I want to get a python script that merge a couple of text files every 10 second. The script will be running on windows 10.

The function:

I have added an image of the file structure. Look at that when you keep reading.

In main folder we got a couple of strategies. The amount of strategies can vary, the code needs to be flexible for x numbers of strategy folders.

In each strategy folder, there will be a folder named markets and two text files, [login to view URL] and market_loader2.txt. In the markets folder there are some event files, each text file is either empty or has one row or a couple of rows of text. The amount of text files can vary and sometimes the folder is empty.

What I would like the script to do:

For each strategy folder check markets folder.

1.

a. If there are empty text files in the markets folder remove them.

b. If there are text files with content in the markets folder, merge all the content and rewrite market_loader1.txt.

c. If markets folder is empty, clear market_loader1.txt.

- Sleep 10 seconds.

2.

a. If there are empty text files in the markets folder remove them.

b. If there are text files with content in the markets folder, merge all the content and rewrite market_loader2.txt.

c. If markets folder is empty, clear market_loader2.txt.

- Sleep 10 seconds.

3. Start over at step 1

The order of the merged content to [login to view URL] or [login to view URL] does not matter. But each row that is merged should have line breaks.

Python

Proje NO: #28334034

Proje hakkında

13 teklif Uzak proje Aktif 3 yıl önce

Seçilen:

harsh7dev

Hi, I am a professional Python developer with over 3 years of experience and writes efficient, modular & scalable code. I have read the project description carefully about file & text manipulation and can very well ex Daha Fazla

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% GBP
(3 Değerlendirme)
1.7

Bu iş için 13 freelancer ortalamada £28 teklif veriyor

suryanshsingh55

hello sir/madam i have rich experience in coding in python . i have made ton of prgrams like this before. i can make you a well commented, robust,reusable python program as soon as possible within budget. you can ch Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(60 Değerlendirme)
5.3
parthjaviya098

Hello, l have read your requirements and I can build python 3 script that can handle text file according to your algorithm. I can delivery it in few hours. My programming skills : python, fastapi, flask, dj Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(15 Değerlendirme)
4.2
Demenntor

Dear Employer As i can read about the project to "handle text files with python 3 script". I have good knowledge in Python and can start over the project. Kindly share more details. Regards Lalit

£20 GBP in 2 gün içinde
(16 Değerlendirme)
3.7
talesmoraes2001

Hello. I read your description carefully and understand sufficiently. And I am very interesting for your project. I have enough experiences for python. I will send you full project in a short time. Looking forward to h Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(8 Değerlendirme)
3.6
danchiksvetliy

✔️✔️✔️ Greetings! ✔️✔️✔️ A hands-on developer, with deep Python technical skills. I Already DONE SIMILAR Project with Python Few Days Ago. So I can satisfy your request in short time. I think I am a right person who c Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(4 Değerlendirme)
3.4
demydkasilov

Dear client, how are you? I read your job description and understood. I always propose in case I can do it I have super skill in PHP-Laravel-Wordpress-Javascript-React.js-Node.js-Python. Skills : -PHP/Laravel/Wordp Daha Fazla

£20 GBP in 3 gün içinde
(2 Değerlendirme)
2.4
jcPimentel

Hi im a python , php , javascript developer / backend a front end , im totally free right now , i can work in this today. If you have any question please chat with me.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(2 Değerlendirme)
1.3
bipinsartape

I checked your project requirements and it matches with my skills & expertise to deliver you best quality work. Few points that I need to be clear in bit more detail Please let me know, if we can discuss in detail to m Daha Fazla

£15 GBP in 3 gün içinde
(1 Yorum)
0.7
Rajeshmane711

Hi,I am Python developer. I have completed Mtech from reputed college. I can complete your task in very quick time.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(1 Yorum)
0.4
YankeyKelvin

Good day. After taking a careful look at your proposal, requirements as well as the accompanying attachment. I am very confident I will be able to complete your application on time and with high quality. I have also Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(0 Değerlendirme)
0.0
dharmikritu88

i had gone through your demand so i had many work projectfor such type of work so can done it in such a proper way

£16 GBP in 2 gün içinde
(0 Değerlendirme)
0.0