Skip to main content

# django-timecode

A python class to store and manipulate timecodes with accompanying Django field.

## Examples

Timecodes can be created using a string representation

>>> from timecode import Timecode
>>> start = Timecode('09:59:50:00', fps=25)
>>> end = Timecode('10:06:05:12', fps=25)

They will print themselves

>>> start
Timecode('09:59:50:00', fps=25)
>>> str(start)
'09:59:50:00'

They can add and subtract

>>> delta = end - start
>>> delta
Timecode('00:06:15:12', fps=25)

Or you can get at the exact frames using the total_frames attribute

>>> delta.total_frames
9387

## In a Django model

### models.py

from timecode.fields import TimecodeField from django.db import models

class TestModel(models.Model):

timecode = TimecodeField()

You can then store the timecode objects in the database.

Metadata

Release files for django-timecode 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-timecode 0.1.4
File Size Uploaded Provenance Actions
django-timecode-0.1.4.tar.gz 4.3 kB Without provenance Details for django-timecode-0.1.4.tar.gz

Release files / django-timecode-0.1.4.tar.gz

Download URL django-timecode-0.1.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8c4453bd4d5980fe49399c0ff751af219fb86fcf05f1ab8854c951a1a3637915
BLAKE2b-256 checksum
How to use checksums
bb3546ab5475a19c754c474b3a13a173dab2a3b98daab482e68515eb52f49af0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-timecode 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page