All Questions
37 questions
2
votes
1
answer
71
views
Python SQLAlchemy database model for Version Control system
This is my first time creating a non-trivial database and I was wondering what I could do better. As the title says this will be used a in toy version control system. Most of my choices feel "...
5
votes
2
answers
2k
views
How to reduce the build time of Docker image layer in GitHub Actions?
I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time.
Approach 1:
...
6
votes
1
answer
60
views
TestAssignment class that checks for certain Git repository conditions
TestAssignment is a Python class designed to check certain conditions in a Git repository. It has several methods that check for the existence of required files, ...
0
votes
1
answer
114
views
Best practices python repository. Import it as pip install [closed]
I have this public repository.
Since it's the first repository I have created, I'm looking for tips on what should I improve (mainly in the GH project structure), although tips in the code would be ...
9
votes
1
answer
719
views
git-user - Working on a shared local repository with multiple users made easier
I have recently been in a situation where multiple developers worked on a shared local git repository under the same Linux user¹. As one can imagine, it can easily become a bit annoying not to commit ...
3
votes
1
answer
92
views
Tracking 1400+ client codes, multi-threading nightmare
I am looking for a bit of help. I am having to cycle through 1400 clients code on my server, I have to check what Version of the software they are on and check for customization's to the code so when ...
5
votes
2
answers
124
views
Pushing local repository to remote repository using python Github
The code should do the following in order:
It should download/clone the public Github repository locally.
It should remove all the git history (and branches)
Use the Github API to create a new Github ...
3
votes
1
answer
80
views
How to manipulate directories using Python
I'm using the following lump of code to manage a 9.4gb dataset. I had to divide the dataset into multiple github repositories to be able to do this. I've explained what each block of code does.
<...
2
votes
0
answers
367
views
application to get git commit and write data into csv file
I am writing a small application to get commits between two tags from different env (apple, banana) and write the result into a csv file.
For security, I have to replace some sensitive information ...
8
votes
1
answer
910
views
A Python script that generates git commits for the last year
I implemented a Python script that generates git commits for the last year making one's Contribution Graph look full of changes. It was my first Python program (I work mostly with Java). Although the ...
4
votes
2
answers
1k
views
automating to push changes to github for multiple repos using python
This Python script does following activities:
clone repo, as provided from the list
creating a new branch "jenkinsMigrate"
rename Jenkinsfile to Jenkinsfile.migrate
push code to GitHub in a new ...
4
votes
2
answers
349
views
GitHub repo tree generator
I have built a generator that, using the GitHub API, creates a dictionary containing a tree of all the resources in any GitHub repo. It uses the function git_tree, ...
10
votes
1
answer
113
views
Measure size of repository as a function of time
In order to avoid having to make any real progress (at least for a short time), I wrote a script that measures how much progress I have made so far, instead. Specifically, this script sums up the file ...
4
votes
1
answer
99
views
Daily Add/Del Git Log Analysis
I just finished writing this Python script to calculate daily additions and subtractions from my git log to use in making pretty graphs. This is a rewrite of something I wrote previously in Perl. I ...
5
votes
1
answer
784
views
Python script to synchronise your locally cloned fork to its parent github repository
I recently wrote a python script that syncs your locally clone repository to its parent repository, so I would like you to review it and help me in improving it.
...