René's URL Explorer Experiment


Title: running into weird ord bug in python3.11, lets do simpler 7 char hash by eupharis · Pull Request #79 · polyapi/polyapi-python · GitHub

Open Graph Title: running into weird ord bug in python3.11, lets do simpler 7 char hash by eupharis · Pull Request #79 · polyapi/polyapi-python

X Title: running into weird ord bug in python3.11, lets do simpler 7 char hash by eupharis · Pull Request #79 · polyapi/polyapi-python

Description: switch to a much simpler, "classic" random 7 character hash choice in python outside of a git repo, python sync throwing this strange bug: phoenix:~/poly/py-test/dev dev $ python -m polyapi sync fatal: not a git repository (or any of the parent directories): .git Traceback (most recent call last): File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/deployables.py", line 175, in get_git_revision return check_output(["git", "rev-parse", "--short", branch_or_tag], text=True).strip() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['git', 'rev-parse', '--short', 'HEAD']' returned non-zero exit status 128. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/__main__.py", line 5, in execute_from_cli() File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/cli.py", line 233, in execute_from_cli parsed_args.command(parsed_args) File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/cli.py", line 213, in sync prepare_deployables(lazy=True, disable_docs=True, disable_ai=True) File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/prepare.py", line 119, in prepare_deployables if lazy and is_cache_up_to_date(): ^^^^^^^^^^^^^^^^^^^^^ File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/deployables.py", line 205, in is_cache_up_to_date git_revision = get_git_revision() # This function needs to be defined or imported ^^^^^^^^^^^^^^^^^^ File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/deployables.py", line 178, in get_git_revision return "".join(format(ord(str(c)), 'x') for c in os.urandom(4))[:7] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/daniel/poly/py-test/dev/.venv/lib/python3.11/site-packages/polyapi/deployables.py", line 178, in return "".join(format(ord(str(c)), 'x') for c in os.urandom(4))[:7] ^^^^^^^^^^^ TypeError: ord() expected a character, but string of length 3 found

Open Graph Description: switch to a much simpler, "classic" random 7 character hash choice in python outside of a git repo, python sync throwing this strange bug: phoenix:~/poly/py-test/dev dev $ python -m polya...

X Description: switch to a much simpler, "classic" random 7 character hash choice in python outside of a git repo, python sync throwing this strange bug: phoenix:~/poly/py-test/dev dev $ python ...

Opengraph URL: https://github.com/polyapi/polyapi-python/pull/79

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d5b27cec-8297-8f92-59a6-0046f494f8a2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idED5C:9A204:1C8C098:24BA2CA:69749B2B
html-safe-noncead93a4fc83ce967d0d2d56ef6124d8a888277bece261ce8a3aed8d49c50fef6d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDVDOjlBMjA0OjFDOEMwOTg6MjRCQTJDQTo2OTc0OUIyQiIsInZpc2l0b3JfaWQiOiI3MDc2OTMxMTU3MTQzODg2NjM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9560199adc7844b90a818b7f05eddac96f7a8c85754ccb0633ed0ab7d49c4e62
hovercard-subject-tagpull_request:2695361889
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/polyapi/polyapi-python/pull/79/files
twitter:imagehttps://avatars.githubusercontent.com/u/847862?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/847862?s=400&v=4
og:image:altswitch to a much simpler, "classic" random 7 character hash choice in python outside of a git repo, python sync throwing this strange bug: phoenix:~/poly/py-test/dev dev $ python -m polya...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/polyapi/polyapi-python git https://github.com/polyapi/polyapi-python.git
octolytics-dimension-user_id124421413
octolytics-dimension-user_loginpolyapi
octolytics-dimension-repository_id720191438
octolytics-dimension-repository_nwopolyapi/polyapi-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id720191438
octolytics-dimension-repository_network_root_nwopolyapi/polyapi-python
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
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/polyapi/polyapi-python/pull/79/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpolyapi%2Fpolyapi-python%2Fpull%2F79%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2Fpolyapi%2Fpolyapi-python%2Fpull%2F79%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=polyapi%2Fpolyapi-python
Reloadhttps://github.com/polyapi/polyapi-python/pull/79/files
Reloadhttps://github.com/polyapi/polyapi-python/pull/79/files
Reloadhttps://github.com/polyapi/polyapi-python/pull/79/files
polyapi https://github.com/polyapi
polyapi-pythonhttps://github.com/polyapi/polyapi-python
Notifications https://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python
Fork 1 https://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python
Star 5 https://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python
Code https://github.com/polyapi/polyapi-python
Pull requests 0 https://github.com/polyapi/polyapi-python/pulls
Actions https://github.com/polyapi/polyapi-python/actions
Projects 0 https://github.com/polyapi/polyapi-python/projects
Security 0 https://github.com/polyapi/polyapi-python/security
Insights https://github.com/polyapi/polyapi-python/pulse
Code https://github.com/polyapi/polyapi-python
Pull requests https://github.com/polyapi/polyapi-python/pulls
Actions https://github.com/polyapi/polyapi-python/actions
Projects https://github.com/polyapi/polyapi-python/projects
Security https://github.com/polyapi/polyapi-python/security
Insights https://github.com/polyapi/polyapi-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpolyapi%2Fpolyapi-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python%2Fissues%2Fnew%2Fchoose
eupharishttps://github.com/eupharis
develophttps://github.com/polyapi/polyapi-python/tree/develop
fix-weird-ord-bughttps://github.com/polyapi/polyapi-python/tree/fix-weird-ord-bug
Conversation 2 https://github.com/polyapi/polyapi-python/pull/79
Commits 2 https://github.com/polyapi/polyapi-python/pull/79/commits
Checks 1 https://github.com/polyapi/polyapi-python/pull/79/checks
Files changed https://github.com/polyapi/polyapi-python/pull/79/files
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/79/files
running into weird ord bug in python3.11, lets do simpler 7 char hash https://github.com/polyapi/polyapi-python/pull/79/files#top
Show all changes 2 commits https://github.com/polyapi/polyapi-python/pull/79/files
f22420d running into weird ord bug in python3.11, lets do simpler 7 char hash eupharis Jul 25, 2025 https://github.com/polyapi/polyapi-python/pull/79/commits/f22420d52a9c29ff8ce3f46eefd89391504ff5b9
c8ed1fa bump eupharis Jul 25, 2025 https://github.com/polyapi/polyapi-python/pull/79/commits/c8ed1fa78b544ac1eae5f09cdb865e89b8c96860
Clear filters https://github.com/polyapi/polyapi-python/pull/79/files
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/79/files
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/79/files
.flake8 https://github.com/polyapi/polyapi-python/pull/79/files#diff-6951dbb399883798a226c1fb496fdb4183b1ab48865e75eddecf6ceb6cf46442
deployables.py https://github.com/polyapi/polyapi-python/pull/79/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
sync.py https://github.com/polyapi/polyapi-python/pull/79/files#diff-74c9b9750da03be092032160c90a85e35c2a24751ff070d9efecbce93646cd08
pyproject.toml https://github.com/polyapi/polyapi-python/pull/79/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
.flake8https://github.com/polyapi/polyapi-python/pull/79/files#diff-6951dbb399883798a226c1fb496fdb4183b1ab48865e75eddecf6ceb6cf46442
View file https://github.com/polyapi/polyapi-python/blob/c8ed1fa78b544ac1eae5f09cdb865e89b8c96860/.flake8
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/polyapi/polyapi-python/pull/79/{{ revealButtonHref }}
polyapi/deployables.pyhttps://github.com/polyapi/polyapi-python/pull/79/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
View file https://github.com/polyapi/polyapi-python/blob/c8ed1fa78b544ac1eae5f09cdb865e89b8c96860/polyapi/deployables.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/polyapi/polyapi-python/pull/79/{{ revealButtonHref }}
https://github.com/polyapi/polyapi-python/pull/79/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
https://github.com/polyapi/polyapi-python/pull/79/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
https://github.com/polyapi/polyapi-python/pull/79/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
https://github.com/polyapi/polyapi-python/pull/79/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
https://github.com/polyapi/polyapi-python/pull/79/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
polyapi/sync.pyhttps://github.com/polyapi/polyapi-python/pull/79/files#diff-74c9b9750da03be092032160c90a85e35c2a24751ff070d9efecbce93646cd08
View file https://github.com/polyapi/polyapi-python/blob/c8ed1fa78b544ac1eae5f09cdb865e89b8c96860/polyapi/sync.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/polyapi/polyapi-python/pull/79/{{ revealButtonHref }}
https://github.com/polyapi/polyapi-python/pull/79/files#diff-74c9b9750da03be092032160c90a85e35c2a24751ff070d9efecbce93646cd08
https://github.com/polyapi/polyapi-python/pull/79/files#diff-74c9b9750da03be092032160c90a85e35c2a24751ff070d9efecbce93646cd08
pyproject.tomlhttps://github.com/polyapi/polyapi-python/pull/79/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/polyapi/polyapi-python/blob/c8ed1fa78b544ac1eae5f09cdb865e89b8c96860/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/polyapi/polyapi-python/pull/79/{{ revealButtonHref }}
https://github.com/polyapi/polyapi-python/pull/79/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/polyapi/polyapi-python/pull/79/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/79/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.