René's URL Explorer Experiment


Title: major refactor by ehanson8 · Pull Request #19 · MITLibraries/dspace-api-python-scripts · GitHub

Open Graph Title: major refactor by ehanson8 · Pull Request #19 · MITLibraries/dspace-api-python-scripts

X Title: major refactor by ehanson8 · Pull Request #19 · MITLibraries/dspace-api-python-scripts

Description: What does this PR do? This is a fundamental refactoring of dsaps that was requested to be reviewed in its entirety. Much of the code that was in cli.py was shifted to workflows.py. metadata.py and helpers.py were created to improve the overall organization of the code. Business logic that was coded into the Client methods was shifted to helpers.py. conftest.py was significantly expanded and actual CSV files were added as fixtures to give developers a better sense of the expected input files. Functions and methods were reorganized in alphabetical order Includes new or updated dependencies? YES

Open Graph Description: What does this PR do? This is a fundamental refactoring of dsaps that was requested to be reviewed in its entirety. Much of the code that was in cli.py was shifted to workflows.py. metadata.py and...

X Description: What does this PR do? This is a fundamental refactoring of dsaps that was requested to be reviewed in its entirety. Much of the code that was in cli.py was shifted to workflows.py. metadata.py and...

Opengraph URL: https://github.com/MITLibraries/dspace-api-python-scripts/pull/19

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:97402860-2cf5-ece2-6533-400d9947d0e5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD83E:2C0E24:E513CE:1364D57:6A4D5D82
html-safe-nonce32caa8f65c735e80126f0afa8d8c375c0ef72a5410d4222ea7a0b931a74a9b46
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODNFOjJDMEUyNDpFNTEzQ0U6MTM2NEQ1Nzo2QTRENUQ4MiIsInZpc2l0b3JfaWQiOiIxNjA0MzkzNDE4OTgwNDE2ODk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd616c3fc6c2d1f6407ac4ab8281a0a0adc328276c4a5f8dd96e3a14c8e862b00
hovercard-subject-tagpull_request:599785965
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
twitter:imagehttps://avatars.githubusercontent.com/u/18265491?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/18265491?s=400&v=4
og:image:altWhat does this PR do? This is a fundamental refactoring of dsaps that was requested to be reviewed in its entirety. Much of the code that was in cli.py was shifted to workflows.py. metadata.py and...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/MITLibraries/dspace-api-python-scripts git https://github.com/MITLibraries/dspace-api-python-scripts.git
octolytics-dimension-user_id2176469
octolytics-dimension-user_loginMITLibraries
octolytics-dimension-repository_id170196074
octolytics-dimension-repository_nwoMITLibraries/dspace-api-python-scripts
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id170196074
octolytics-dimension-repository_network_root_nwoMITLibraries/dspace-api-python-scripts
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3bdd3157ea1f0fd738d408eceeead721acf1dc3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMITLibraries%2Fdspace-api-python-scripts%2Fpull%2F19%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMITLibraries%2Fdspace-api-python-scripts%2Fpull%2F19%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=MITLibraries%2Fdspace-api-python-scripts
Reloadhttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
Reloadhttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
Reloadhttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
MITLibraries https://github.com/MITLibraries
dspace-api-python-scriptshttps://github.com/MITLibraries/dspace-api-python-scripts
Notifications https://github.com/login?return_to=%2FMITLibraries%2Fdspace-api-python-scripts
Fork 3 https://github.com/login?return_to=%2FMITLibraries%2Fdspace-api-python-scripts
Star 12 https://github.com/login?return_to=%2FMITLibraries%2Fdspace-api-python-scripts
Code https://github.com/MITLibraries/dspace-api-python-scripts
Issues 0 https://github.com/MITLibraries/dspace-api-python-scripts/issues
Pull requests 4 https://github.com/MITLibraries/dspace-api-python-scripts/pulls
Actions https://github.com/MITLibraries/dspace-api-python-scripts/actions
Projects https://github.com/MITLibraries/dspace-api-python-scripts/projects
Security and quality 0 https://github.com/MITLibraries/dspace-api-python-scripts/security
Insights https://github.com/MITLibraries/dspace-api-python-scripts/pulse
Code https://github.com/MITLibraries/dspace-api-python-scripts
Issues https://github.com/MITLibraries/dspace-api-python-scripts/issues
Pull requests https://github.com/MITLibraries/dspace-api-python-scripts/pulls
Actions https://github.com/MITLibraries/dspace-api-python-scripts/actions
Projects https://github.com/MITLibraries/dspace-api-python-scripts/projects
Security and quality https://github.com/MITLibraries/dspace-api-python-scripts/security
Insights https://github.com/MITLibraries/dspace-api-python-scripts/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FMITLibraries%2Fdspace-api-python-scripts%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FMITLibraries%2Fdspace-api-python-scripts%2Fissues%2Fnew%2Fchoose
ehanson8https://github.com/ehanson8
app-refactorhttps://github.com/MITLibraries/dspace-api-python-scripts/tree/app-refactor
major-refactorhttps://github.com/MITLibraries/dspace-api-python-scripts/tree/major-refactor
Conversation 22 https://github.com/MITLibraries/dspace-api-python-scripts/pull/19
Commits 4 https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/commits
Checks 0 https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/checks
Files changed https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
major refactor https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#top
Show all changes 4 commits https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
6e35231 major refactor ehanson8 Mar 24, 2021 https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/commits/6e352311ee7f07bbba9df9821366d8263054ea77
59550f4 Restructure code examples hakbailey Apr 6, 2021 https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/commits/59550f4075e9fd0d969dabc3df20ed48679b0ee2
aeabc2d PR updates ehanson8 Apr 7, 2021 https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/commits/aeabc2d58c7d7ddee8de726ef0ed54854d10bc1f
e14c103 Code review fixes ehanson8 Apr 8, 2021 https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/commits/e14c1035d6732c652d75542e3a8ae35820b1523a
Clear filters https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
.gitignore https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
Pipfile.lock https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-a86c67a0a29ed0e95909b9b7c420140f302d17399ee6dcce4e1a51a14d27fd51
aspace_mapping.json https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-25cebb6a129e8ffb127583c79b57b150d9a5d1d320925ce9af30e3166d018600
cli.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-094f1e46df4083447d61afea27897770d110d4f29ce294fe54c2eba62abb979b
helpers.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bd1fe18afad183cea3a3536178e0066611045ae94b304628e8e455ccc75ce64f
metadata.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-e9bf069a136c621da6b83f94befb4e2191bd05cac36430f0da2a041125473717
models.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-1e27b9c9ea3bcbcd4e8642391734b90a16cb6235f20757f30ee284b2990d2c24
conftest.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
aspace_metadata_delimited.csv https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-5ebe063e3e082f86061704a065564a0658f41380db40ce0cef09ecdad5742a22
aspace_metadata_no_delimiter.csv https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-b6414d7c50e87da21915d1b6175bb9ab12539a59dd2a810e20e3b49da4714a40
metadata_delim.csv https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-34d59f743e10bd243a580891a77669a857205a6a8d1b69dc822c48cec87af581
metadata_num_col.csv https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-b903654ee721b70ea5b1921abc35cdcadad3c5e03b463b9149654aa2358ee84f
standard_mapping.json https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-a7c7f04fb299194ec79005c4816249dbac9f14b99e136ec5c20a6c5165175b74
test_cli.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
test_helpers.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-08a6944653efc734f4c8cb856fc854b9f21d655ca69796af2b170c53bff7919e
test_metadata.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-f49ce5cf2ce23f6922b7add17ca149482d190f1c2b5892c5d1d55a28497c5556
test_models.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-0adb667cd397bd56edce10eec11e1b10821740a10d72bd148b09645fc9108968
test_workflows.py https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-062d7920c867ef17e231797ab56a990f96a5beafa69c52c03fee3f19f7b19ccc
.gitignorehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/MITLibraries/dspace-api-python-scripts/blob/e14c1035d6732c652d75542e3a8ae35820b1523a/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/{{ revealButtonHref }}
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
Pipfile.lockhttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-a86c67a0a29ed0e95909b9b7c420140f302d17399ee6dcce4e1a51a14d27fd51
View file https://github.com/MITLibraries/dspace-api-python-scripts/blob/e14c1035d6732c652d75542e3a8ae35820b1523a/Pipfile.lock
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
config/aspace_mapping.jsonhttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-25cebb6a129e8ffb127583c79b57b150d9a5d1d320925ce9af30e3166d018600
View file https://github.com/MITLibraries/dspace-api-python-scripts/blob/e14c1035d6732c652d75542e3a8ae35820b1523a/config/aspace_mapping.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/{{ revealButtonHref }}
dsaps/cli.pyhttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-094f1e46df4083447d61afea27897770d110d4f29ce294fe54c2eba62abb979b
View file https://github.com/MITLibraries/dspace-api-python-scripts/blob/e14c1035d6732c652d75542e3a8ae35820b1523a/dsaps/cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/{{ revealButtonHref }}
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-094f1e46df4083447d61afea27897770d110d4f29ce294fe54c2eba62abb979b
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-094f1e46df4083447d61afea27897770d110d4f29ce294fe54c2eba62abb979b
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-094f1e46df4083447d61afea27897770d110d4f29ce294fe54c2eba62abb979b
dsaps/workflows.py → dsaps/helpers.pyhttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bd1fe18afad183cea3a3536178e0066611045ae94b304628e8e455ccc75ce64f
View file https://github.com/MITLibraries/dspace-api-python-scripts/blob/e14c1035d6732c652d75542e3a8ae35820b1523a/dsaps/helpers.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/{{ revealButtonHref }}
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bd1fe18afad183cea3a3536178e0066611045ae94b304628e8e455ccc75ce64f
hakbaileyhttps://github.com/hakbailey
Apr 7, 2021https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#r609058383
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
ehanson8https://github.com/ehanson8
Apr 8, 2021https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#r609670161
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bd1fe18afad183cea3a3536178e0066611045ae94b304628e8e455ccc75ce64f
https://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files#diff-bd1fe18afad183cea3a3536178e0066611045ae94b304628e8e455ccc75ce64f
Please reload this pagehttps://github.com/MITLibraries/dspace-api-python-scripts/pull/19/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.