
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Django-based API to serve URLid + graph database.
This repository hosts the app code and also a project structure so it's easier
to develop - only the urlid_graph
folder is packaged before going to
PyPI.
INSTALLED_APPS
setting like this:INSTALLED_APPS = [
...
"urlid_graph",
]
DATABASE_URL = config("DATABASE_URL") # must be set
GRAPH_DATABASE_URL = config("GRAPH_DATABASE_URL") # must be set
graph_config = config("GRAPH_DATABASE_URL", cast=db_url)
GRAPH_DATABASE = graph_config["NAME"] # must be set
DATABASES = {
"default": config("DATABASE_URL", cast=db_url),
GRAPH_DATABASE: graph_config, # must set this way
}
DATABASE_ROUTERS = ["urlid_graph.db_router.RelationAndGraphDBRouter"]
ElementConfig
labels):CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"TIMEOUT": 24 * 3600,
"MAX_ENTRIES": 1024,
}
}
urlid_graph
URLconf in your project's urls.py
like this: path('v1/', include("urlid_graph.urls")),
Run python manage.py migrate
to create the needed models, triggers etc.
Populate the database:
# you may want to add entities to urlid_graph_entity model
python manage.py import_config data/config.csv # must create this file before
python manage.py import_config data/config.csv # must create this file before
python manage.py import_objects appname Model file.csv.xz # must create model
python manage.py import_relationships relname file.csv.xz
python manage.py import_objects appname Model file.csv[.gz|.xz]
python manage.py import_relationship relname file.csv[.gz|.xz]
FAQs
Django-based API to serve URLid + graph database
We found that django-urlid-graph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.