![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@croudtech/crn-url-remapper
Advanced tools
Install the scoped package via the command line
via Yarn
yarn add @croudtech/cc-v3-base
via NPM
npm install @croudtech/cc-v3-base
These methods depend on valid SYSTEM_ID
, INTERNAL_ROUTING_FORMAT
and SERVICE_MAP
variables being available in the environment.
publicUrlFromCrn
Builds a public url from a CRN string
Usage: publicUrlFromCrn(crnString)
CRN
croud-system-id:workflow-service:tasks:0c6b08f8-ed05-47ea-93a4-0f171fa9effb
URL
https://workflow-service.croudcontrol.com/tasks/0c6b08f8-ed05-47ea-93a4-0f171fa9effb
internalUrlFromCrn
Builds an internal kubernetes url from a CRN string (the path structure is definable in INTERNAL_ROUTING_FORMAT
).
Usage: internalUrlFromCrn(crnString)
croud-system-id:workflow-service:tasks:0c6b08f8-ed05-47ea-93a4-0f171fa9effb
URL
http://workflow-service-django.v3-staging.svc.cluster.local/tasks/0c6b08f8-ed05-47ea-93a4-0f171fa9effb
createCrn
Creates a CRN using the SYSTEM_ID
defined in the env and the following object structure.
Usage: createCrn(entityObject)
Object
[
{
entity: "files",
id: 12345
}
]
this will output a CRN ID:
croud-system-id:workflow-service:files:12345
multiple objects can be provided to specify nesting:
[
{
entity: "tasks",
id: "0c6b08f8-ed05-47ea-93a4-0f171fa9effb"
},
{
entity: "files",
id: 12345
}
]
croud-system-id:workflow-service:tasks:0c6b08f8-ed05-47ea-93a4-0f171fa9effb:files:12345
this of course, can in turn be converted to URLs using the methods described earlier.
appendEntity
This will add a systemId
, entityId
and public link to an entity. This method can take three arguments
id
propertyUsage: appendEntity(entity, entityType, parentEntities)
FAQs
Module to remap between CRNs to URLs
We found that @croudtech/crn-url-remapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.